* gcc-3.3.1-glibc-2.3.2-binutils-2.14 cross compile kernel problems
@ 2003-12-02 7:21 hyding
2003-12-02 16:18 ` Roland Dreier
0 siblings, 1 reply; 2+ messages in thread
From: hyding @ 2003-12-02 7:21 UTC (permalink / raw)
To: linuxppc-embed
hi,
I have built cross-toolchain with gcc-3.3.1, binutils-2.14,
glibc-2.3.2 and linux-2.4.18 header files. I have succeeded in compiling
a test program with gcc into a static app. This test program runs well
in the target. But i failed to build kernel with gcc. The info is as
follow:
powerpc-ml300-linux-gnu-gcc -D__KERNEL__ -I/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -I/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h: In function `init':
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:413: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:413: error: asm-specifier for variable `__sc_5' conflicts with asm clobber list
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:412: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:412: error: asm-specifier for variable `__sc_5'
...
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h: In function `write':
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:408: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list
....
/home/user/embedded-linux/src/crosstool-0.25/build/powerpc-ml300-linux-gnu/gcc-3.3.1-glibc-2.3.2/linux-2.4.18/include/asm/unistd.h:416: confused by earlier errors, bailing out
make: *** [init/main.o] Error 1
Thanks.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc-3.3.1-glibc-2.3.2-binutils-2.14 cross compile kernel problems
2003-12-02 7:21 gcc-3.3.1-glibc-2.3.2-binutils-2.14 cross compile kernel problems hyding
@ 2003-12-02 16:18 ` Roland Dreier
0 siblings, 0 replies; 2+ messages in thread
From: Roland Dreier @ 2003-12-02 16:18 UTC (permalink / raw)
To: hyding; +Cc: linuxppc-embed
hyding> hi, I have built cross-toolchain with gcc-3.3.1,
hyding> binutils-2.14, glibc-2.3.2 and linux-2.4.18 header files. I
hyding> have succeeded in compiling a test program with gcc into a
hyding> static app. This test program runs well in the target. But i
hyding> failed to build kernel with gcc. The info is as follow:
unistd.h does have precisely the right clobber lists for its syscall
macros. This patch from Ed Swarthout should help:
http://www.geocrawler.com/archives/3/3/2002/10/0/9962740/
- Roland
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-02 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-02 7:21 gcc-3.3.1-glibc-2.3.2-binutils-2.14 cross compile kernel problems hyding
2003-12-02 16:18 ` Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).