Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2016 09:41:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-testing@freebsd.org
Subject:   [Bug 203094] Unable to make installworld without disabling tests and setting COMPILER_TYPE=clang
Message-ID:  <bug-203094-32464-w4Q7NdL795@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203094-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203094-32464@https.bugs.freebsd.org/bugzilla/>

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

Pierre Kraschinski <p.kraschinski@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.kraschinski@gmail.com

--- Comment #13 from Pierre Kraschinski <p.kraschinski@gmail.com> ---
I'm able to confirm and reproduce (a similar/this) problem during the
build-/installworld process in combination with ccache.=20

1. TEST-ENV
- ThinkPad X220 (4290-DD1)
- Fresh installed FreeBSD 11.0-CURRENT amd64 r296485

2. WORKING REFERENCE
- check out freebsd-current (r297375)
  # svnlite co -r 297375 https://svn.freebsd.org/base/head/ /usr/src
- modify /etc/make.conf
  # vi /etc/make.conf

<--
MALLOC_PRODUCTION=3DYES
-->

- start build and install process
  # make -j16 buildworld
  # make -j16 buildkernel KERNCONF=3DGENERIC-NODEBUG
  <reboot in s.u. mode>=20
  # mergemaster -Fp
  # make installworld
  # mergemaster -Fi
  # make delete-old
  <reboot>
- Everything works as usual

2. NON-WORKING EXAMPLE
- install ccache version 3.2.4
  # pkg install ccache
- modify /etc/make.conf
  # vi /etc/make.conf

<--
MALLOC_PRODUCTION=3DYES
WITH_CCACHE_BUILD=3DYES

.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc)
CC:=3D${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=3D${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.endif
-->

- modify /etc/csh.cshrc
  # vi /etc/csh.cshrc

<--
setenv PATH /usr/local/libexec/ccache:$PATH
setenv CCACHE_PATH /usr/bin:/usr/local/bin
-->

- check out freebsd-current (r297375)
  # svnlite co -r 297375 https://svn.freebsd.org/base/head/ /usr/src
- start build and install process
  # make -j16 buildworld
  # make -j16 buildkernel KERNCONF=3DGENERIC-NODEBUG
  <reboot in s.u. mode>=20
  # mergemaster -Fp
  # make installworld

- the problem occurs
<--
mkdir -p /tmp/install.KI6wjBV6
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.KI6wjB=
V6
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.KI6wjBV6/locale
cd /usr/src; MAKEOBJDIRPREFIX=3D/usr/obj MACHINE_ARCH=3Damd64 MACHINE=3Damd=
64
CPUTYPE=3D GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac
CC=3D"/usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd11.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin"
CXX=3D"/usr/local/libexec/ccache/world/c++ -target x86_64-unknown-freebsd11=
.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin " DEPFLAGS=
=3D""
CPP=3D"cpp -target x86_64-unknown-freebsd11.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 OBJDU=
MP=3Dobjdump
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.KI6wjBV6
 LD_LIBRARY_PATH=3D/tmp/install.KI6wjBV6=20
PATH_LOCALE=3D/tmp/install.KI6wjBV6/locale /usr/obj/usr/src/make.amd64/bmak=
e -f
Makefile.inc1    __MAKE_SHELL=3D/tmp/install.KI6wjBV6/sh reinstall;=20
MAKEOBJDIRPREFIX=3D/usr/obj MACHINE_ARCH=3Damd64 MACHINE=3Damd64 CPUTYPE=3D
GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac
CC=3D"/usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd11.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin"
CXX=3D"/usr/local/libexec/ccache/world/c++ -target x86_64-unknown-freebsd11=
.0
--sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin " DEPFLAGS=
=3D""
CPP=3D"cpp -target x86_64-unknown-freebsd11.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 OBJDU=
MP=3Dobjdump
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.KI6wjBV6
 LD_LIBRARY_PATH=3D/tmp/install.KI6wjBV6=20
PATH_LOCALE=3D/tmp/install.KI6wjBV6/locale rm -rf /tmp/install.KI6wjBV6
ccache: error: Could not find compiler "cc" in PATH
bmake[2]: "/usr/src/share/mk/bsd.compiler.mk" line 141: Unable to determine
compiler type for /usr/local/libexec/ccache/world/cc -target
x86_64-unknown-freebsd11.0 --sysroot=3D/usr/obj/usr/src/tmp
-B/usr/obj/usr/src/tmp/usr/bin.  Consider setting COMPILER_TYPE.
*** Error code 1

Stop.
bmake[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
-->

- NOTE: to proceed at this step it is necessary to set "COMPILER_TYPE=3Dcla=
ng
-DWITHOUT_TESTS" as Juan wrote before.
  # make COMPILER_TYPE=3Dclang -DWITHOUT_TESTS installworld
  ...

--=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-203094-32464-w4Q7NdL795>