Re: [ccache] amd64 buildworld (FreeBSD 8.0p2) consistently fails with ccache

2010-05-12 Thread Joel Rosdahl
On 2010-05-11 01:38, Christer Edwards wrote:
 I've got another failure (same place) on 3.0pre1.Below are the details:
 
 I executed 'ccache make buildworld' at /usr/src.

Putting ccache before make doesn't gain anything (but doesn't do any
harm either, except that an error counter in ccache's statistics will be
increased).

 [...]
 [2010-05-10T17:30:38.825974 53291] Running preprocessor
 [2010-05-10T17:30:38.827775 53292] Executing
 /usr/obj/usr/src/tmp/usr/bin/cc -O2 -pipe
 -I/usr/src/lib/csu/i386-elf/../common
 -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
 -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
 -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
 -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
 -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c -E
 /usr/src/lib/csu/i386-elf/crt1.c
 [...]
 [2010-05-10T17:30:38.853797 53291] Running real compiler
 [2010-05-10T17:30:38.855228 53294] Executing
 /usr/obj/usr/src/tmp/usr/bin/cc -O2 -pipe
 -I/usr/src/lib/csu/i386-elf/../common
 -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
 -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
 -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
 -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
 -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c -o
 /usr/.ccache/7/e/00e1bb753cccab0b3367e6287435a8-23935.o.tmp.mouzone.part.net.53291
 /usr/.ccache/tmp/crt1.tmp.mouzone.part.net.53291.i
 [2010-05-10T17:30:38.903089 53291] Compiler gave exit status 1
 [2010-05-10T17:30:38.903377 53291] Copying
 /usr/.ccache/7/e/00e1bb753cccab0b3367e6287435a8-23935.o.tmp.mouzone.part.net.53291
 to crt1.o (uncompressed)
 [2010-05-10T17:30:38.906771 53291] open error: No such file or directory

Nothing strange there, I'm afraid.

Just to make it clear: The build works without ccache, right?

Does it work to run the first command in the log above (after
Executing), redirect the output to crt1.i and then run the second
command with -o crt1.o crt1.i? If it doesn't work, it's probably a
compiler problem since it can't compile its own preprocessed output. A
workaround for that is to set CCACHE_CPP2 (preferably only when building
the troublesome file). If it works when you run the two commands
manually but not when ccache runs them, then I'm out of guesses.

By the way, I found another thread about the same problem here:
http://www.pubbs.net/200912/freebsd/12812-8-stable-broken-on-amd64.html

-- Joel
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] amd64 buildworld (FreeBSD 8.0p2) consistently fails with ccache [SOLVED]

2010-05-12 Thread Christer Edwards
On Wed, May 12, 2010 at 12:25 AM, Joel Rosdahl j...@rosdahl.net wrote:
 Just to make it clear: The build works without ccache, right?

It has always worked without ccache, yes.

I have solved the issue now. It was on my end. Generally when I
install FreeBSD I select the 'minimal' option and nothing more. Today,
in testing this, I looked more closely at what I could/should be
installing. One of the possible items is the '32bit runtime
compatibility libraries'. After ensuring this was installed I tried my
builds again. I have now successfully completed three builds and
recorded their results. I don't understand why the inclusion/exclusion
of this would cause the difference when building with ccache, but it
does work now. Below are the speed improvements (first pass, second
pass), using ccache 3.0pre1 on FreeBSD 8.0. 4cpu, 4G RAM:

--
 World build completed on Wed May 12 12:04:26 MDT 2010
--
real44m2.754s
user80m5.733s
sys 55m59.135s
--
 Kernel build for MOUZONE completed on Wed May 12 12:19:54 MDT 2010
--
real13m31.544s
user18m38.484s
sys 11m38.547s
--
 World build completed on Wed May 12 12:41:39 MDT 2010
--
real7m0.725s
user10m1.925s
sys 9m56.014s
--
 Kernel build for MOUZONE completed on Wed May 12 12:44:00 MDT 2010
--
real1m34.594s
user1m1.464s
sys 0m57.740s

(after two passes)
[r...@mouzone /usr/src]# ccache -s
cache directory /usr/.ccache
cache hit (direct)  1890
cache hit (preprocessed) 652
cache miss 27492
called for link  918
multiple source files  2
compile failed   300
preprocessor error   111
bad compiler arguments37
not a C/C++ file2284
autoconf compile/link   1547
unsupported compiler option4
no input file182
files in cache 27492
cache size 407.3 Mbytes
max cache size   1.0 Gbytes

Thank you for your help.

-- 
Christer Edwards
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache