RTAI+ELDK Compile Problems

Björn Östby Bjorn.Ostby at combitechsystems.com
Tue Feb 8 22:09:07 EST 2005


I've got a major problem trying to compile RTAI using the ELDK cross compiler.
I'm using ELDK version 3.1, and my target is ppc_8xx (823). I have followed the instructions given at ftp://ftp.denx.de/pub/RTAI/24.1.12/README.install, using the
linuxppc_2_4_devel kernel (2004_04_30_1320) and rtai-24.1.12-denx. 

Now, the rtai patch works fine, and the kernel compiles, but when I try to compile rtai
The following error occurs:

/opt/eldk-3.1/ppc_8xx/usr/src/rtai-24.1.12/include/asm/rtai_srq.h: 
In function `rtai_srq':
/opt/eldk-3.1/ppc_8xx/usr/src/rtai-24.1.12/include/asm/rtai_srq.h:32: 
error: asm-specifier for variable `__sc_3' conflicts with asm clobber list

I have also tried other versions of rtai (3.0 and 3.1) but these give the same result.

I may also mention that when trying to compile any kernel except the one shipped with eldk and ppc_devel label_2004_04_30_1320, similar errors occur:

compile example from ppc_2_4_devel (label_2003_10_11_0005) 
using "make ARCH=ppc CROSS_COMPILE=ppc_8xx- uImage"

/opt/eldk-3.1/ppc_8xx/usr/src/linuxppc_2_4_devel/include/asm/unistd.h: In function `init':
/opt/eldk-3.1/ppc_8xx/usr/src/linuxppc_2_4_devel/include/asm/unistd.h:439: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list

I have exported the CROSS_COMPILE variable and added the eldk-3.1/usr/bin and eldk-3.1/bin
directories to the path.

Can anyone tell me what's going on here or, better yet, how to solve it?.


Best regards,
Bjorn Ostby


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050208/b8f21271/attachment.htm 


More information about the Linuxppc-embedded mailing list