Anyone having ccache errors?

From: Beeblebrox <zaphod_at_berentweb.com>
Date: Mon, 15 May 2017 11:20:03 +0300
I have been getting ccache errors during buildworld. Ports for example does not have this problem. I compleely reset the cache data some 2 months ago and ccache seemed to play with that much more nicely.

Apart from the error below, I'm also getting some "cc not found" errors when doing src stuff, whether ccache is enabled or not. For example installworld (no ccache) broke with that message so I decided to re-build.

uname: 12.0-CURRENT 1200028 bedc15ffb71(drm-next)-dirty: Thu Apr 20 2017

/etc/make.conf
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1}
CXX:=${cxx:c,^C\+\+,/usr/local/libexec/ccache/world/clang++,1}

ls /usr/local/libexec/ccache/world/
c++       CC        clang     clang++40 g++5
cc        ccache    clang++   clang40   gcc5

# make buildworld =>
make: Unknown modifier 'c'
make: Unknown modifier 'c'
make[1]: Unknown modifier 'c'
make[1]: Unknown modifier 'c'
make[2]: Unknown modifier 'c'
make[2]: Unknown modifier 'c'
make[2]: Unknown modifier 'c'
make[2]: Unknown modifier 'c'
--------------------------------------------------------------
>>> World build started
.....
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /asp/git/src; MAKEOBJDIRPREFIX=/asp/obj/asp/git/src/tmp  INSTALL="sh /asp/git/src/tools/install.sh"  TOOLS_PREFIX=/asp/obj/asp/git/src/tmp  PATH=/asp/obj/asp/git/src/tmp/legacy/usr/sbin:/asp/obj/asp/git/src/tmp/legacy/usr/bin:/asp/obj/asp/git/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/asp/obj/asp/git/src/tmp  MAKEFLAGS="-m /asp/git/src/tools/build/mk  -m /asp/git/src/share/mk" make  -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=1200030  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FULL=no  MK_LLDB=no MK_TESTS=no  MK_INCLUDES=yes bootstrap-tools
make[2]: Unknown modifier 'c'
make[2]: Unknown modifier 'c'
===> lib/clang/libllvmminimal (obj,all,install)
make[3]: Unknown modifier 'c'
make[3]: Unknown modifier 'c'
make[3]: Unknown modifier 'c'
make[3]: Unknown modifier 'c'
make[3]: Unknown modifier 'c'
-O2 -pipe -I/asp/git/src/lib/clang/include -I/asp/git/src/contrib/llvm/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DDEFAULT_SYSROOT=\"/asp/obj/asp/git/src/tmp\" -ffunction-sections -fdata-sections -DNDEBUG -MD -MF.depend.Support_APInt.o -MTSupport/APInt.o -Qunused-arguments -I/asp/obj/asp/git/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti  -stdlib=libc++ -Wno-c++11-extensions  -c /asp/git/src/contrib/llvm/lib/Support/APInt.cpp -o Support/APInt.o
/bin/sh: -O2: not found
*** Error code 127

Stop.
make[3]: stopped in /asp/git/src/lib/clang/libllvmminimal



* I had asked this before, but got no answer. I assume it's not possible then?
> 1. For buildworld, my /etc/src.conf uses default CROSS_COMPILER,
> CLANG_BOOTSTRAP, CLANG_FULL  for amd64, but I would like clang to
> xbuild only for target i386 as I do not need the others (like
> Target/arm). Is there a knob for this?

-- 
FreeBSD_amd64_12-Current_RadeonKMS
Please CC my email when responding, mail from list is not delivered.
Received on Mon May 15 2017 - 06:20:29 UTC

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