gcc error on freebsd 12

deng daya deng.dayat at gmail.com
Sat Nov 30 21:50:35 UTC 2019

Hi all

I tried to install daemontools and got this error

Linking ./src/* into ./compile...
Compiling everything in ./compile...
sh find-systype.sh > systype
rm -f compile
sh print-cc.sh > compile
chmod 555 compile
./compile byte_chr.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
*** Error code 1

whereis gcc
gcc: /usr/local/bin/gcc /usr/src/contrib/gcc

gcc -v
Using built-in specs.
Target: x86_64-portbld-freebsd11.1
Configured with: /wrkdirs/usr/ports/lang/gcc6/work/gcc-6.4.0/configure
--with-build-config=bootstrap-debug --disable-nls
--enable-gnu-indirect-function --libdir=/usr/local/lib/gcc6
--libexecdir=/usr/local/libexec/gcc6 --program-suffix=6
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar
--enable-languages=c,c++,objc,fortran,java --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc6
Thread model: posix
gcc version 6.4.0 (FreeBSD Ports Collection)

  how to fix this?

More information about the freebsd-questions mailing list