Date: Mon, 22 Aug 2005 17:18:10 +0100 From: Steve Hodgson <steve@acidy.com> To: Kevin Oberman <oberman@es.net> Cc: current@freebsd.org Subject: Re: buildworld not using proper build environment Message-ID: <4309FAC2.2040305@acidy.com> In-Reply-To: <20050822155243.8BF6F5D07@ptavv.es.net> References: <20050822155243.8BF6F5D07@ptavv.es.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>ARGH! It was ccache that did me in! Even though I expressly typed "make >-DNOCCACHE", ccache was sneaking in somewhere. I commented out all of >the ccache section of make.conf and it fixed the problem. > >Sorry for the wasted bandwidth. If I get a little time, I may try to >figure out why ccache did this, but it's not a high priority. > >Thanks very much for your time! > > I thought I read earlier in this thread that ccache wasn't being used - my apologies for not butting in. I have the same problem, which is that the example ccache make.conf states that: .if !defined(NOCCACHE) .if ${.CURDIR:M/usr/src*} CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .else CC=cc CXX=c++ .endif .else CC=/usr/bin/cc CXX=/usr/bin/c++ .endif This means if you specify NOCCACHE you get the system gcc rather than the /usr/src gcc (since cc=/usr/bin/cc ignores the build environment PATH), hence the problem. What I've never figured out is why the check on line 2 doesn't work, because it doesn't for me - I always have to specify NOCCACHE to not use ccache, even when building world. I've changed the bottom of that section to read... .else CC=cc CXX=c++ .endif which means that specifying NOCCACHE still honours the mangled PATH from the build enviroment, and all works ok. Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4309FAC2.2040305>