# make -j4 buildworld --- buildworld --- clang35: not found make[2]: "/usr/share/mk/bsd.compiler.mk" line 9: warning: "clang35 --version" returned non-zero status make[2]: "/usr/share/mk/bsd.compiler.mk" line 17: Unable to determine compiler type for clang35. Consider setting COMPILER_TYPE. make[1]: "/usr/src/Makefile.inc1" line 136: warning: "make -C /usr/src/release -V REVISION" returned non-zero status clang35: not found make[2]: "/usr/share/mk/bsd.compiler.mk" line 9: warning: "clang35 --version" returned non-zero status make[2]: "/usr/share/mk/bsd.compiler.mk" line 17: Unable to determine compiler type for clang35. Consider setting COMPILER_TYPE. make[1]: "/usr/src/Makefile.inc1" line 137: warning: "make -C /usr/src/release -V BRANCH" returned non-zero status --- buildworld_prologue --- -------------------------------------------------------------- >>> World build started on Mon Mar 30 04:37:48 2015 -------------------------------------------------------------- --- _worldtmp --- -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- rm -rf /usr/obj/usr/src/tmp mkdir -p /usr/obj/usr/src/tmp/lib mkdir -p /usr/obj/usr/src/tmp/usr mkdir -p /usr/obj/usr/src/tmp/legacy/bin mkdir -p /usr/obj/usr/src/tmp/legacy/usr mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr/obj/usr/src/tmp/legacy/usr >/dev/null mtree -deU -f /usr/src/etc/mtree/BSD.groff.dist -p /usr/obj/usr/src/tmp/legacy/usr >/dev/null mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr/obj/usr/src/tmp/usr >/dev/null mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/obj/usr/src/tmp/usr/include >/dev/null ln -sf /usr/src/sys /usr/obj/usr/src/tmp --- _legacy --- -------------------------------------------------------------- >>> stage 1.1: legacy release compatibility shims -------------------------------------------------------------- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/tmp VERSION="FreeBSD - i386 1001512" MAKEFLAGS="-m /usr/src/tools/build/mk -j 4 -J 15,16 -m /usr/src/share/mk" COMPILER_TYPE=clang make -f Makefile.inc1 DESTDIR= BOOTSTRAPPING=1001000 SSP_CFLAGS= -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN -DNO_PIC -DNO_PROFILE -DNO_SHARED _BOOTSTRAP_MAKEINFO=yes -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS legacy --- legacy --- ===> tools/build (obj,includes,depend,all,install) --- obj --- /usr/obj/usr/src/tmp/usr/src/tools/build created for /usr/src/tools/build --- includes --- ; cd /usr/src/tools/build; make buildincludes; make installincludes --- .depend --- rm -f .depend CC='clang35' mkdep -f .depend -a -I/usr/src/tools/build/../../contrib/libc-pwcache -I/usr/src/tools/build/../../lib/libc/include -I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99 /usr/src/tools/build/../../contrib/libc-pwcache/pwcache.c /usr/bin/mkdep: clang35: not found mkdep: compile failed *** [.depend] Error code 1 make[3]: stopped in /usr/src/tools/build 1 error make[3]: stopped in /usr/src/tools/build A failure has been detected in another branch of the parallel make make[2]: stopped in /usr/src *** [_legacy] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildworld] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src # clang35 --version clang version 3.5.1 (tags/RELEASE_351/final)
This is an operator error. You need to specify the full path to clang35 in ${CC}, ${CXX} and ${CPP}, as /usr/local/bin is *not* in the PATH during buildworld. E.g, try setting: CC=/usr/local/bin/clang35 CXX=/usr/local/bin/clang++35 CPP=/usr/local/bin/clang-cpp35 Note that you will most likely run into various other issues when building world with an external toolchain, since it does not even always work on head.