Error compiling kernel with crosscompiler (unistd.h:441)
Tue Jun 15 17:51:00 GMT 2004
Martin Egholm Nielsen wrote:
> I've just tried crosscompiling the kernel for my target - PPChameleon
> 405EP - with my crosstool compiler in cygwin (powerpc-405-linux-gnu
> The kernel fails with the following error when I try with crosstool:
> /opt/linux-2.4.20-pelk-1.2.0/include/asm/unistd.h:441: warning:
> conflicting types for built-in function '_exit'
> /opt/linux-2.4.20-pelk-1.2.0/include/asm/unistd.h: In function `init':
> /opt/linux-2.4.20-pelk-1.2.0/include/asm/unistd.h:439: error:
> asm-specifier for variable `__sc_4' conflicts with asm clobber list
> However, when I try with ppc_4xx-gcc from DENX (ELDK 3.0) it runs
> without any problems.
> The kernel-source is one I have got from the board-supplier...
It looks like you may need an update to your kernel source.
See also the crosstool todo, which says
See if we need to patch kernel's asm-ppc/unistd.h
to fix "error: asm-specifier for variable `__sc_4' conflicts with asm clobber list"
I guess I can remove that item, since using vanilla kernel sources works
well now, but I'm glad it was there!
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc