amd64 11.0 -r301139 installworld (WITH_META_MODE=yes) fails for "Unable to determine compiler type"

From: Mark Millard <markmi_at_dsl-only.net>
Date: Wed, 1 Jun 2016 12:35:19 -0700
Context: amd64 building for amd64 starting from:

> # uname -apKU
> FreeBSD FreeBSDx64 11.0-ALPHA1 FreeBSD 11.0-ALPHA1 #29 r300944M: Sun May 29 14:39:47 PDT 2016     markmi_at_FreeBSDx64:/usr/obj/clang/amd64.amd64/usr/src/sys/GENERIC-NODEBUG  amd64 amd64 1100114 1100114


After a successful WITH_META_MODE=yes buildworld buildkernel sequence and then installkernel sequence: installworld then failed with . . .

> # ~/sys_build_scripts.amd64-host/make_amd64_nodebug_clang_bootstrap-amd64-host.sh installworld
> Script started, output file is /root/sys_typescripts/typescript_make_amd64_nodebug_clang_bootstrap-amd64-host-2016-06-01:12:13:05
> mkdir -p /tmp/install.JwZJ3f9P
> progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp  date echo egrep find grep id install   ln make mkdir mtree mv pwd_mkdb  rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup   makewhatis; do  if progpath=`which $prog`; then  echo $progpath;  else  echo "Required tool $prog not found in PATH." >&2;  exit 1;  fi;  done);  libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u |  while read line; do  set -- $line;  if [ "$2 $3" != "not found" ]; then  echo $2;  else  echo "Required library $1 not found." >&2;  exit 1;  fi;  done);  cp $libs $progs /tmp/install.JwZJ3f9P
> cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.JwZJ3f9P/locale
> cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/clang/amd64.amd64  MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE= GROFF_BIN_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/share/tmac CC="cc -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin" CXX="c++  -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin"  CPP="cpp -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin"  AS="as" AR="ar" LD="ld" NM=nm  OBJDUMP=objdump OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size" PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/sbin:/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/bin:/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/bin:/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/sbin:/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin:/tmp/install.JwZJ3f9P  LD_LIBRARY_PATH=/tmp/install.JwZJ3f9P  PATH_LOCALE=/tmp/install.JwZJ3f9P/locale make -f Makefile.inc1    __MAKE_SHELL=/tmp/install.JwZJ3f9P/sh reinstall;  MAKEOBJDIRPREFIX=/usr/obj/clang/amd64.amd64  MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE= GROFF_BIN_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/share/tmac CC="cc -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin" CXX="c++  -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin"  CPP="cpp -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin"  AS="as" AR="ar" LD="ld" NM=nm  OBJDUMP=objdump OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size" PATH=/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/sbin:/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/usr/bin:/usr/obj/clang/amd64.amd64/usr/src/tmp/legacy/bin:/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/sbin:/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin:/tmp/install.JwZJ3f9P  LD_LIBRARY_PATH=/tmp/install.JwZJ3f9P  PATH_LOCALE=/tmp/install.JwZJ3f9P/locale rm -rf /tmp/install.JwZJ3f9P
> sh: cc: not found
> make[2]: "/usr/src/share/mk/bsd.compiler.mk" line 142: Unable to determine compiler type for CC=cc -target x86_64-unknown-freebsd11.0 --sysroot=/usr/obj/clang/amd64.amd64/usr/src/tmp -B/usr/obj/clang/amd64.amd64/usr/src/tmp/usr/bin.  Consider setting COMPILER_TYPE.
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src
> 
> Script done, output file is /root/sys_typescripts/typescript_make_amd64_nodebug_clang_bootstrap-amd64-host-2016-06-01:12:13:05

(I do not know if WITH_META_MODE=yes matters here or not. WITH_META_MODE=yes was supplied the the script that I used.)

make.conf was:

CFLAGS.gcc+= -v

(so effectively empty for clang use).

src.conf was:

TO_TYPE=amd64
#
KERNCONF=GENERIC-NODEBUG
TARGET=${TO_TYPE}
.if ${.MAKE.LEVEL} == 0
TARGET_ARCH=${TO_TYPE}
.export TARGET_ARCH
.endif
#
WITHOUT_CROSS_COMPILER=
WITH_SYSTEM_COMPILER=
#
WITH_LIBCPLUSPLUS=
WITH_BINUTILS_BOOTSTRAP=
#PORTS_MODULES=emulators/virtualbox-ose-additions
#WITHOUT_CLANG_BOOTSTRAP=
WITH_CLANG=
WITH_CLANG_IS_CC=
WITH_CLANG_FULL=
WITH_CLANG_EXTRAS=
WITH_LLDB=
#
WITH_BOOT=
WITH_LIB32=
#
WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=
WITHOUT_GCC_BOOTSTRAP=
WITHOUT_GCC=
WITHOUT_GCC_IS_CC=
WITHOUT_GNUCXX=
#
NO_WERROR=
#WERROR=
MALLOC_PRODUCTION=
#
WITH_DEBUG_FILES=



===
Mark Millard
markmi at dsl-only.net
Received on Wed Jun 01 2016 - 17:35:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC