Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 09:16:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 212877] `make installworld' from r302966 to r306043 fails (bsd.compiler.mk fails to call cc --version)
Message-ID:  <bug-212877-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212877

            Bug ID: 212877
           Summary: `make installworld' from r302966 to r306043 fails
                    (bsd.compiler.mk fails to call cc --version)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: rakuco@FreeBSD.org
                CC: bdrewery@FreeBSD.org, dim@FreeBSD.org,
                    imp@FreeBSD.org, sjg@FreeBSD.org

I have a setup where I build world and kernel on one beefy machine and set =
up
read-only NFS mounts for /usr/src and /usr/obj to install them into my lapt=
op.

This time, I was trying to upgrade from r302966 to r306043. `make
installkernel` worked fine, but `make installworld` did not. The failure
happens right at the beginning:

progs=3D$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp  date e=
cho
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=20
if progpath=3D`which $prog`; then  echo $progpath;  else  echo "Required to=
ol
$prog not found in PATH." >&2;  exit 1;  fi;  done);  libs=3D$(ldd -f "%o %=
p\n"
-f "%o %p\n" $progs 2>/dev/null | sort -u |  while read line; do  set -- $l=
ine;
 if [ "$2 $3" !=3D "not found" ]; then  echo $2;  else  echo "Required libr=
ary $1
not found." >&2;  exit 1;  fi;  done);  cp $libs $progs /tmp/install.3UpJSk=
kF
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.3UpJSkkF/locale
cd /usr/src; MAKEOBJDIRPREFIX=3D/usr/obj  MACHINE_ARCH=3Damd64  MACHINE=3Da=
md64=20
CPUTYPE=3Divybridge GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin=20
GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font=20
GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac CC=3D"cc -targ=
et
x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp
-B/usr/obj/usr/src/tmp/usr/bin" CXX=3D"c++  -target x86_64-unknown-freebsd1=
2.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin"  CPP=3D"cpp
-target x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp
-B/usr/obj/usr/src/tmp/usr/bin"  AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm=20
OBJCOPY=3D"objcopy"  RANLIB=3Dranlib STRINGS=3D  SIZE=3D"size"
PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr=
/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj=
/usr/src/tmp/usr/bin:/tmp/install.3UpJSkkF
 LD_LIBRARY_PATH=3D/tmp/install.3UpJSkkF=20
PATH_LOCALE=3D/tmp/install.3UpJSkkF/locale /usr/obj/usr/src/make.amd64/bmak=
e -f
Makefile.inc1    __MAKE_SHELL=3D/tmp/install.3UpJSkkF/sh reinstall;=20
MAKEOBJDIRPREFIX=3D/usr/obj  MACHINE_ARCH=3Damd64  MACHINE=3Damd64  CPUTYPE=
=3Divybridge
GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin=20
GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font=20
GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac CC=3D"cc -targ=
et
x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp
-B/usr/obj/usr/src/tmp/usr/bin" CXX=3D"c++  -target x86_64-unknown-freebsd1=
2.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin"  CPP=3D"cpp
-target x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp
-B/usr/obj/usr/src/tmp/usr/bin"  AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm=20
OBJCOPY=3D"objcopy"  RANLIB=3Dranlib STRINGS=3D  SIZE=3D"size"
PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr=
/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj=
/usr/src/tmp/usr/bin:/tmp/install.3UpJSkkF
 LD_LIBRARY_PATH=3D/tmp/install.3UpJSkkF=20
PATH_LOCALE=3D/tmp/install.3UpJSkkF/locale rm -rf /tmp/install.3UpJSkkF
sh: cc: not found
bmake[2]: "/usr/src/share/mk/bsd.compiler.mk" line 145: Unable to determine
compiler type for CC=3Dcc -target x86_64-unknown-freebsd12.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin.  Consider
setting COMPILER_TYPE.

Note the "sh: cc: not found" part above -- because I'm moving from
__FreeBSD_cc_version 1200000 to 1200002, Makefile.inc1 is not setting
MK_CLANG_BOOTSTRAP=3Dno, so bsd.compiler.mk is trying to determine the comp=
iler
and its version again, but there's no `cc' in the PATH that's being passed,
only the actual binary (`clang').

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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