Re: freebsd-current compile with clang & ccache

2015-12-01 Thread Juan Ramón Molina Menor

Le 25/11/2015 19:09, Juan Molina a écrit :

On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>/What can I do to eliminate the ccache error during installworld 
apart from not using ccache? /

I would recommend not setting CC or CCACHE_PATH in make.conf and using
the new WITH_CCACHE_BUILD=yes option instead.

--
Regards,
Bryan Drewery


Hi.

I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH 
defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in 
src.conf.


Best regards,
Juan


I have an update on this. In fact, I was wrong concerning the content of 
my src.conf: there was other lines, notably:


WITHOUT_CROSS_COMPILER=

As soon as I commented it out, make installworld stopped emitting the 
ccache errors and requiring COMPILER_TYPE="clang" to work. I made 
another build with the line enabled and again both errors returned. A 
third build without this line confirmed the solution. I will try again 
to ensure I’m not following a false track, after updating sources, as I 
see a lot of recent commits related to the build system.


I hope it rings a bell somewhere…

Best regards,
Juan
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


RE: freebsd-current compile with clang & ccache

2015-11-26 Thread M&S - Krasznai András
Hi

I now modified my setup according to the links you provided I and compile a 
freshly updated base of FreeBSD-Current.

I will report when finshed.

Rgds

András


-Original Message-
From: NGie Cooper [mailto:yaneurab...@gmail.com] 
Sent: 2015. november 26. 8:36
To: M&S - Krasznai András
Cc: Bryan Drewery; freebsd-current@freebsd.org
Subject: Re: freebsd-current compile with clang & ccache


> On Nov 25, 2015, at 23:21, M&S - Krasznai András  
> wrote:
> 
> Thanks, but as far as I know WITH_CCACHE_BUILD is only for ports compilation 
> and novadays I use binary ports wherever I can.

It’s available in recent versions of FreeBSD CURRENT [1], [2] .
Cheers,
-NGie

1. https://lists.freebsd.org/pipermail/freebsd-arch/2015-November/017472.html
2. https://svnweb.freebsd.org/changeset/base/290526
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: freebsd-current compile with clang & ccache

2015-11-26 Thread Juan Ramón Molina Menor

Le 25/11/2015 22:11, Bryan Drewery a écrit :

On 11/25/2015 12:59 PM, Juan Ramón Molina Menor wrote:

Le 25/11/2015 19:50, Bryan Drewery a écrit :

On 11/25/2015 10:09 AM, Juan Molina wrote:

On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:

/What can I do to eliminate the ccache error during installworld

apart from not using ccache? /
I would recommend not setting CC or CCACHE_PATH in make.conf and using
the new WITH_CCACHE_BUILD=yes option instead.

--
Regards,
Bryan Drewery

Hi.

I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in
src.conf.


WITH_FAST_DEPEND is not related.

OK, thanks. I was referring to the content of /etc/src.conf. By the way,
there is no /etc/make.conf in this system.


Are you building and installing as a different user? Using a different
MAKEOBJDIRPREFIX in build and install?

Not at all, just following the /etc/src/UPDATING instructions, as root:

# cd /usr/src
# svn up
# make -j2 buildworld
# make -j2 kernel

# mergemaster -Fp
# make installworld COMPILER_TYPE="clang"

# mergemaster -Fi
# make delete-old


Do you have CCACHE_PATH in your environment?

Yes, it is set in /etc/csh.cshrc as indicate the ccache instructions:

# echo $CCACHE_PATH
/usr/bin:/usr/local/bin


Run 'make ccache-print-options|grep path'. It should have no value.

# make ccache-print-options | grep path
(environment) path =



Which branch and revision is this?


 11.0-CURRENT r291280 (yesterday).
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


RE: freebsd-current compile with clang & ccache

2015-11-26 Thread M&S - Krasznai András
Hi

I am now reading the manual pages for src.conf. 

Src.conf should only be used to specify variables for make, e.g. 
WITHOUT_PROFILE, or WITH_CCACHE_BUILD. Man src.conf does not say much more 
about ccache, but ccache-howto-freebsd says that WITH_CCACHE_BUILD is only for 
building ports with ccache; for world and kernel you should set CC and CXX 
variables within make.conf following the advice in ccache-howto 

("To use ccache for ports, just add WITH_CCACHE_BUILD=yes to /etc/make.conf.

To use ccache for base add the following to /etc/make.conf:

.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc)
CC:=${CC...

")

I do not copy here the full howto

My problem is that after a successful compile of base - world and kernel - 
using ccache I run make installkernel correctly, but after reboot and 
mergemaster -p I got a lot of ccache error messages during make installworld. 
They complain ebout not finding compiler cc in path although cc -v gives the 
clang version number, so cc IS on the path.

Best regards

András Krasznai





-Original Message-
From: owner-freebsd-curr...@freebsd.org 
[mailto:owner-freebsd-curr...@freebsd.org] On Behalf Of Rainer Hurling
Sent: 2015. november 25. 20:48
To: Bryan Drewery; FreeBSD-Current
Subject: Re: freebsd-current compile with clang & ccache

Am 25.11.15 um 20:37 schrieb Bryan Drewery:
> On 11/25/2015 11:34 AM, Rainer Hurling wrote:
>> Am 25.11.15 um 19:50 schrieb Bryan Drewery:
>>> On 11/25/2015 10:09 AM, Juan Molina wrote:
>>>>> On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>>>>>> /What can I do to eliminate the ccache error during installworld
>>>>> apart from not using ccache? /
>>>>> I would recommend not setting CC or CCACHE_PATH in make.conf and 
>>>>> using the new WITH_CCACHE_BUILD=yes option instead.
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Bryan Drewery
>>>>
>>>> Hi.
>>>>
>>>> I'm seeing the same ccache errors and I do not have CC or 
>>>> CCACHE_PATH defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND 
>>>> in src.conf.
>>>>
>>>
>>> WITH_FAST_DEPEND is not related.
>>>
>>> Are you building and installing as a different user? Using a 
>>> different MAKEOBJDIRPREFIX in build and install?
>>>
>>> Do you have CCACHE_PATH in your environment?
>>>
>>> Run 'make ccache-print-options|grep path'. It should have no value.
>>>
>>
>> Is there any possibility to redirect the .ccache directory, something 
>> like CCACHE_PATH for userland?
>>
>> I am asking, because in my attempts to build base with 
>> WITH_CCACHE_BUILD and WITH_FAST_DEPEND enabled, it breaks with error 
>> message 'file system full'. My root partition has only 1GB and ccache 
>> itself seems to need more than 800MB in /root/.ccache.
>>
> 
> You want to modify CCACHE_DIR. You can do this in make.conf or the 
> environment.
> 
> I tend to just symlink /root/.ccache to somewhere else though and let 
> the default work via the symlink.
> 
> Also see 'man src.conf' (WITH_CCACHE_BUILD section) and 'man ccache'.
> 

Oops, I should have looked into man src.conf before asking here, sorry.

And many thanks for the quick and helpful answer.
___
freebsd-current@freebsd.org mailing list 
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread NGie Cooper

> On Nov 25, 2015, at 23:21, M&S - Krasznai András  
> wrote:
> 
> Thanks, but as far as I know WITH_CCACHE_BUILD is only for ports compilation 
> and novadays I use binary ports wherever I can.

It’s available in recent versions of FreeBSD CURRENT [1], [2] .
Cheers,
-NGie

1. https://lists.freebsd.org/pipermail/freebsd-arch/2015-November/017472.html
2. https://svnweb.freebsd.org/changeset/base/290526
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

RE: freebsd-current compile with clang & ccache

2015-11-25 Thread M&S - Krasznai András
Thanks, but as far as I know WITH_CCACHE_BUILD is only for ports compilation 
and novadays I use binary ports wherever I can.

rgds

András



-Original Message-
From: Bryan Drewery [mailto:bdrew...@freebsd.org] 
Sent: Wednesday, November 25, 2015 5:35 PM
To: M&S - Krasznai András ; 
freebsd-current@freebsd.org
Subject: Re: freebsd-current compile with clang & ccache

On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
> What can I do to eliminate the ccache error during installworld apart from 
> not using ccache?

I would recommend not setting CC or CCACHE_PATH in make.conf and using the new 
WITH_CCACHE_BUILD=yes option instead.

--
Regards,
Bryan Drewery

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Bryan Drewery
On 11/25/2015 12:59 PM, Juan Ramón Molina Menor wrote:
> Le 25/11/2015 19:50, Bryan Drewery a écrit :
>> On 11/25/2015 10:09 AM, Juan Molina wrote:
 On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
> /What can I do to eliminate the ccache error during installworld
 apart from not using ccache? /
 I would recommend not setting CC or CCACHE_PATH in make.conf and using
 the new WITH_CCACHE_BUILD=yes option instead.

 -- 
 Regards,
 Bryan Drewery
>>> Hi.
>>>
>>> I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
>>> defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in
>>> src.conf.
>>>
>> WITH_FAST_DEPEND is not related.
> OK, thanks. I was referring to the content of /etc/src.conf. By the way,
> there is no /etc/make.conf in this system.
> 
>> Are you building and installing as a different user? Using a different
>> MAKEOBJDIRPREFIX in build and install?
> Not at all, just following the /etc/src/UPDATING instructions, as root:
> 
> # cd /usr/src
> # svn up
> # make -j2 buildworld
> # make -j2 kernel
> 
> # mergemaster -Fp
> # make installworld COMPILER_TYPE="clang"
> 
> # mergemaster -Fi
> # make delete-old
> 
>> Do you have CCACHE_PATH in your environment?
> Yes, it is set in /etc/csh.cshrc as indicate the ccache instructions:
> 
> # echo $CCACHE_PATH
> /usr/bin:/usr/local/bin
> 
>> Run 'make ccache-print-options|grep path'. It should have no value.
> # make ccache-print-options | grep path
> (environment) path =
> 

Which branch and revision is this?


-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Juan Ramón Molina Menor

Le 25/11/2015 19:50, Bryan Drewery a écrit :

On 11/25/2015 10:09 AM, Juan Molina wrote:

On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:

/What can I do to eliminate the ccache error during installworld

apart from not using ccache? /
I would recommend not setting CC or CCACHE_PATH in make.conf and using
the new WITH_CCACHE_BUILD=yes option instead.

--
Regards,
Bryan Drewery

Hi.

I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.


WITH_FAST_DEPEND is not related.
OK, thanks. I was referring to the content of /etc/src.conf. By the way, 
there is no /etc/make.conf in this system.



Are you building and installing as a different user? Using a different
MAKEOBJDIRPREFIX in build and install?

Not at all, just following the /etc/src/UPDATING instructions, as root:

# cd /usr/src
# svn up
# make -j2 buildworld
# make -j2 kernel

# mergemaster -Fp
# make installworld COMPILER_TYPE="clang"

# mergemaster -Fi
# make delete-old


Do you have CCACHE_PATH in your environment?

Yes, it is set in /etc/csh.cshrc as indicate the ccache instructions:

# echo $CCACHE_PATH
/usr/bin:/usr/local/bin


Run 'make ccache-print-options|grep path'. It should have no value.

# make ccache-print-options | grep path
(environment) path =

Best regards,
Juan
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Rainer Hurling
Am 25.11.15 um 20:37 schrieb Bryan Drewery:
> On 11/25/2015 11:34 AM, Rainer Hurling wrote:
>> Am 25.11.15 um 19:50 schrieb Bryan Drewery:
>>> On 11/25/2015 10:09 AM, Juan Molina wrote:
> On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>> /What can I do to eliminate the ccache error during installworld
> apart from not using ccache? /
> I would recommend not setting CC or CCACHE_PATH in make.conf and using
> the new WITH_CCACHE_BUILD=yes option instead.
>
> -- 
> Regards,
> Bryan Drewery

 Hi.

 I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
 defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.

>>>
>>> WITH_FAST_DEPEND is not related.
>>>
>>> Are you building and installing as a different user? Using a different
>>> MAKEOBJDIRPREFIX in build and install?
>>>
>>> Do you have CCACHE_PATH in your environment?
>>>
>>> Run 'make ccache-print-options|grep path'. It should have no value.
>>>
>>
>> Is there any possibility to redirect the .ccache directory, something
>> like CCACHE_PATH for userland?
>>
>> I am asking, because in my attempts to build base with WITH_CCACHE_BUILD
>> and WITH_FAST_DEPEND enabled, it breaks with error message 'file system
>> full'. My root partition has only 1GB and ccache itself seems to need
>> more than 800MB in /root/.ccache.
>>
> 
> You want to modify CCACHE_DIR. You can do this in make.conf or the
> environment.
> 
> I tend to just symlink /root/.ccache to somewhere else though and let
> the default work via the symlink.
> 
> Also see 'man src.conf' (WITH_CCACHE_BUILD section) and 'man ccache'.
> 

Oops, I should have looked into man src.conf before asking here, sorry.

And many thanks for the quick and helpful answer.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Bryan Drewery
On 11/25/2015 11:34 AM, Rainer Hurling wrote:
> Am 25.11.15 um 19:50 schrieb Bryan Drewery:
>> On 11/25/2015 10:09 AM, Juan Molina wrote:
 On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
> /What can I do to eliminate the ccache error during installworld
 apart from not using ccache? /
 I would recommend not setting CC or CCACHE_PATH in make.conf and using
 the new WITH_CCACHE_BUILD=yes option instead.

 -- 
 Regards,
 Bryan Drewery
>>>
>>> Hi.
>>>
>>> I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
>>> defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.
>>>
>>
>> WITH_FAST_DEPEND is not related.
>>
>> Are you building and installing as a different user? Using a different
>> MAKEOBJDIRPREFIX in build and install?
>>
>> Do you have CCACHE_PATH in your environment?
>>
>> Run 'make ccache-print-options|grep path'. It should have no value.
>>
> 
> Is there any possibility to redirect the .ccache directory, something
> like CCACHE_PATH for userland?
> 
> I am asking, because in my attempts to build base with WITH_CCACHE_BUILD
> and WITH_FAST_DEPEND enabled, it breaks with error message 'file system
> full'. My root partition has only 1GB and ccache itself seems to need
> more than 800MB in /root/.ccache.
> 

You want to modify CCACHE_DIR. You can do this in make.conf or the
environment.

I tend to just symlink /root/.ccache to somewhere else though and let
the default work via the symlink.

Also see 'man src.conf' (WITH_CCACHE_BUILD section) and 'man ccache'.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Rainer Hurling
Am 25.11.15 um 19:50 schrieb Bryan Drewery:
> On 11/25/2015 10:09 AM, Juan Molina wrote:
>>> On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
 /What can I do to eliminate the ccache error during installworld
>>> apart from not using ccache? /
>>> I would recommend not setting CC or CCACHE_PATH in make.conf and using
>>> the new WITH_CCACHE_BUILD=yes option instead.
>>>
>>> -- 
>>> Regards,
>>> Bryan Drewery
>>
>> Hi.
>>
>> I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
>> defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.
>>
> 
> WITH_FAST_DEPEND is not related.
> 
> Are you building and installing as a different user? Using a different
> MAKEOBJDIRPREFIX in build and install?
> 
> Do you have CCACHE_PATH in your environment?
> 
> Run 'make ccache-print-options|grep path'. It should have no value.
> 

Is there any possibility to redirect the .ccache directory, something
like CCACHE_PATH for userland?

I am asking, because in my attempts to build base with WITH_CCACHE_BUILD
and WITH_FAST_DEPEND enabled, it breaks with error message 'file system
full'. My root partition has only 1GB and ccache itself seems to need
more than 800MB in /root/.ccache.

Thanks in advance,
Rainer Hurling

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Bryan Drewery
On 11/25/2015 10:09 AM, Juan Molina wrote:
>> On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>> >/What can I do to eliminate the ccache error during installworld
>> apart from not using ccache? /
>> I would recommend not setting CC or CCACHE_PATH in make.conf and using
>> the new WITH_CCACHE_BUILD=yes option instead.
>>
>> -- 
>> Regards,
>> Bryan Drewery
> 
> Hi.
> 
> I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
> defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.
> 

WITH_FAST_DEPEND is not related.

Are you building and installing as a different user? Using a different
MAKEOBJDIRPREFIX in build and install?

Do you have CCACHE_PATH in your environment?

Run 'make ccache-print-options|grep path'. It should have no value.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


freebsd-current compile with clang & ccache

2015-11-25 Thread Juan Molina

On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>/What can I do to eliminate the ccache error during installworld apart 
from not using ccache? /

I would recommend not setting CC or CCACHE_PATH in make.conf and using
the new WITH_CCACHE_BUILD=yes option instead.

--
Regards,
Bryan Drewery


Hi.

I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH 
defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.


Best regards,
Juan
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-current compile with clang & ccache

2015-11-25 Thread Bryan Drewery
On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
> What can I do to eliminate the ccache error during installworld apart from 
> not using ccache?

I would recommend not setting CC or CCACHE_PATH in make.conf and using
the new WITH_CCACHE_BUILD=yes option instead.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: freebsd-current compile with clang & ccache

2015-11-24 Thread Jeffrey Bouquet


On Tue, 24 Nov 2015 10:31:37 +0100, M&S - Krasznai András 
 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
>

Having something similar after an installworld in single user mode, I was 
wondering if
a FLAG 
> 
> 
> András Krasznai
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

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

2015-11-24 Thread Jeffrey Bouquet


On Tue, 24 Nov 2015 10:31:37 +0100, M&S - Krasznai András 
 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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@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... 
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

freebsd-current compile with clang & ccache

2015-11-24 Thread M&S - Krasznai András
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@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"