ccache on amd64

Brian bri at brianwhalen.net
Mon Sep 22 03:46:13 UTC 2008


Brian wrote:
> Has there been any change in the above?  On a single core i386, the 
> documentation described notes work properly.  However, on a AM2 based 
> machine with the amd64 version of freebsd (both 6.4 Beta and 7.0 show 
> this behavior) I consistently get the below error.
>
> ===> lib/csu/i386-elf (obj,depend,all,install)
> rm -f .depend
> CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a    
> -I/usr/src/lib/csu/i386-elf/../common 
> -I/usr/src/lib/csu/i386-elf/../../libc/include 
> /usr/src/lib/csu/i386-elf/crt1.c /usr/src/lib/csu/i386-elf/crti.S 
> /usr/src/lib/csu/i386-elf/crtn.S
> /usr/local/libexec/ccache/world-cc -O2 -fno-strict-aliasing -pipe 
> -I/usr/src/lib/csu/i386-elf/../common  
> -I/usr/src/lib/csu/i386-elf/../../libc/include -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 -c /usr/src/lib/csu/i386-elf/crt1.c
> {standard input}: Assembler messages:
> {standard input}:67: Error: suffix or operands invalid for `mov'
> *** Error code 1
>
> Stop in /usr/src/lib/csu/i386-elf.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> I have followed the listed instructions, and the above persists. 
> [root at amd ~]# more /etc/make.conf
> # added by use.perl 2008-09-20 15:50:41
> PERL_VER=5.8.8
> PERL_VERSION=5.8.8
> .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && 
> !defined(NOCCACHE)
> CC=/usr/local/libexec/ccache/world-cc
> CXX=/usr/local/libexec/ccache/world-c++
> .endif
>
> These are asses to /etc/profile
> export PATH=/usr/local/libexec/ccache:$PATH
> export CCACHE_PATH=/usr/bin:/usr/local/bin
> export CCACHE_DIR=/usr/.ccache
>
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
I found a previous post with /etc/make.conf containing, I am trying this 
now.

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

If this is what amd64 peeps should be using, can the docs be updated?

Brian
.endif





More information about the freebsd-questions mailing list