buildworld + ccache trouble

From: Dmitry Krivenok <krivenok.dmitry_at_gmail.com>
Date: Wed, 15 Sep 2010 16:44:45 +0400
Hello All!
I recently updated to r212634 and tried to build CURRENT tree with ccache.
I added /usr/local/libexec/ccache in my $PATH and added the following
in /etc/make.conf:

.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

Then I set
WITHOUT_BOOT = 'YES'
DEBUG_FLAGS = '-g -O0'
and run
make buildworld buildkernel installkernel

However, I got build 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/crti.S /usr/src/lib/csu/i386-elf/crtn.S
/usr/local/libexec/ccache/world-cc -O2 -pipe
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -O0 -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 -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition
-Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crti.S
/usr/local/libexec/ccache/world-cc -O2 -pipe
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -O0 -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 -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition
-Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crtn.S
/usr/local/libexec/ccache/world-cc -O2 -pipe
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -O0 -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 -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition
-Wno-pointer-sign -DGCRT -c -o gcrt1_c.o
/usr/src/lib/csu/i386-elf/crt1_c.c
/usr/local/libexec/ccache/world-cc -O2 -pipe
-I/usr/src/lib/csu/i386-elf/../common
-I/usr/src/lib/csu/i386-elf/../../libc/include -g -O0 -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 -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition
-Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1_s.S
/usr/src/lib/csu/i386-elf/crt1_s.S: Assembler messages:
/usr/src/lib/csu/i386-elf/crt1_s.S:36: Error: suffix or operands
invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:39: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:40: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid
64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:43: Error: suffix or operands
invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:44: Error: `4(%ebp)' is not a valid
64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:45: Error: suffix or operands
invalid for `push'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Is it a know issue?
Any solutions?

Thanks in advance!

P.S.
Build works fine if I don't use ccache.

-- 
Sincerely yours, Dmitry V. Krivenok
e-mail: krivenok.dmitry_at_gmail.com
skype: krivenok_dmitry
jabber: krivenok_dmitry_at_jabber.ru
icq: 242-526-443
Received on Wed Sep 15 2010 - 11:13:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC