gcc error on freebsd 12

Daniele Mazzotti kappei84 at gmail.com
Mon Dec 2 10:48:55 UTC 2019


Il sab 30 nov 2019, 22:50 deng daya <deng.dayat at gmail.com> ha scritto:

> 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.
> COLLECT_GCC=gcc
> 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-gxx-include-dir=/usr/local/lib/gcc6/include/c++/
> --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
> --build=x86_64-portbld-freebsd11.1
> Thread model: posix
> gcc version 6.4.0 (FreeBSD Ports Collection)
>
>
>   how to fix this?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>

Hi,

can you find cc1 anywhere on your path (e.g. whereis cc1)

>


More information about the freebsd-questions mailing list