Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 2010 16:44:45 +0400
From:      Dmitry Krivenok <krivenok.dmitry@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   buildworld + ccache trouble
Message-ID:  <AANLkTimF79ZPE3MJeHQ=O1ismQCj916Q9kL23SBZOTL9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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@gmail.com
skype: krivenok_dmitry
jabber: krivenok_dmitry@jabber.ru
icq: 242-526-443



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimF79ZPE3MJeHQ=O1ismQCj916Q9kL23SBZOTL9>