[Bug 203094] Unable to make installworld without disabling tests and setting COMPILER_TYPE=clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 8 12:01:58 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203094

Chris Collins <chrysalis at chrysalisnet.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chrysalis at chrysalisnet.org

--- Comment #15 from Chris Collins <chrysalis at chrysalisnet.org> ---
Something is still broken.

Here is my situation.

Base system is 10-STABLE dated Sep 26 2016
New src code is RELENG 11.0 P9

ccache is installed on the system

I first couldnt even get buildworld to complete, very odd error rejecting
cputype of nehalem, this error appeared even with no cputype set in make.conf.
I proceeded to uncomment the CC= lines that set as below

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

After I did this the buildworld proceeded but very slow, I discovered ccache
was operating, as the misses were tallying up and I had disk thrashing from the
cache objects been written.

So I then commented out WITH_CCACHE_BUILD=YES in make.conf, the line is not
present in src.conf at all.

This time buildworld completed and at normal speed.

But now I get the error on make installworld.

So the question is if none of the cache lines are active in either make.conf or
src.conf and one gets this error.

Is it a bug or operator error?  

bmake[2]: "/usr/src/110/share/mk/bsd.compiler.mk" line 132: warning:
"/usr/local/bin/ccache cc  --version || echo 0.0.0" returned non-zero status
bmake[2]: "/usr/src/110/share/mk/bsd.compiler.mk" line 145: Unable to determine
compiler type for CC=/usr/local/bin/ccache cc .  Consider setting
COMPILER_TYPE.

So here is 2 observations.

1 - The compiler used during buildworld was not "/usr/local/bin/ccache cc"it
was just "cc"
2 - Why is it showing "/usr/local/bin/ccache cc" when I have nothing enabling
ccache active in either src.conf or make.conf, is simply having the ccache port
installed enough to make the world tools try to use it?

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


More information about the freebsd-testing mailing list