Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2019 04:50:21 +0700
From:      deng daya <deng.dayat@gmail.com>
To:        freeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   gcc error on freebsd 12
Message-ID:  <CABrMm1UyysUVJUL9eLWOJHmBVd4q7w_TxWHepEmzs9q1Y6aOww@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABrMm1UyysUVJUL9eLWOJHmBVd4q7w_TxWHepEmzs9q1Y6aOww>