Re: freebsd-current compile with clang & ccache [tacking on an idea]

From: Jeffrey Bouquet <jbtakk_at_iherebuywisely.com>
Date: Tue, 24 Nov 2015 03:56:06 -0800 (PST)
On Tue, 24 Nov 2015 10:31:37 +0100, M&S - Krasznai András <Krasznai.Andras_at_mands.hu> wrote:

> Good morning!
> 
> I experience the following errors:
> 
> 
> after setting up ccache according to the howto I tried to compile world and kernel.
> 
> 
> 
> make buildworld
> 
> 
> 
> runs correctly, takes appr. 3 hours to finish for the first run. Repeating it finishes in a little less than 1 hour.
> 
> 
> 
> Make -j5 buildworld
> 
> 
> 
> also finishes correctly and takes about 23 minutes.
> 
> 
> 
> After finishing the kernel compile
> 
> 
> 
> Make installkernel
> 
> Reboot
> 
> 
> 
> Then
> 
> 
> 
> make installworld
> 
> 
> 
> gives a lot of error messages:
> 
> 
> 
> ccache: error: Could not find compiler "cc" in PATH
> 
> 
> 
> but finishes, and the system appears to be working, but I think there must be some problem what I could not find.
> 
> 
> 
> 
> 
> Compilation and installation finishes correctly if i do not use ccache but rather slow.
> 
> 
> 
> The system has been reinstalled from scratch, source tree was downloaded on Friday and updated few minutes before compile on Monday.
> 
> The kernel config is a stripped down GENERAL (I left out those drivers and kernel modules which handle hardware not present in my laptop).
> 
> I use src.conf to eliminate compiling such components which I do not use (BLUETOOTH, IPX/SPX, etc). COMPILER_TYPE is set in my .cshrc to clang.
> 
> 
> 
> What can I do to eliminate the ccache error during installworld apart from not using ccache?
> 
> 
> 
> 
> 
> Best regards
> 
> 
> 
> András Krasznai
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"


[sorry if duplicate, keyboard error... tab key or something with the webmail]

Having experienced similar errors during single user mode installword, I was
wondering if a FLAG or --switch could be added to "make installworld" so that
all the $cc >> actual binary [precheck] and all the expected directories that are destinations
exist and are not files [precheck] , and optionally even a trial-run-install-to-elsewhere "check
for such errors" pre-install runthough, like "-n" in other cli [binaries].

OR a section in UPDATING with a proven [iow, tested on
several and many ... mfsBSD... DESTDIR... cdr... etc ] procedure to accomplish the same...

The lack of which is precluding upgrading very often now, as opposed to other years, 
since CURRENT... 
Received on Tue Nov 24 2015 - 10:56:10 UTC

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