* RTAI+ELDK Compile Problems
@ 2005-02-08 11:09 Björn Östby
2005-02-08 11:35 ` Re : " grave
2005-02-08 21:58 ` Andrew Dennison
0 siblings, 2 replies; 3+ messages in thread
From: Björn Östby @ 2005-02-08 11:09 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2959 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re : RTAI+ELDK Compile Problems
2005-02-08 11:09 RTAI+ELDK Compile Problems Björn Östby
@ 2005-02-08 11:35 ` grave
2005-02-08 21:58 ` Andrew Dennison
1 sibling, 0 replies; 3+ messages in thread
From: grave @ 2005-02-08 11:35 UTC (permalink / raw)
To: Björn Östby; +Cc: linuxppc-embedded
Le 08.02.2005 12:09:07, Bj=F6rn =D6stby a =E9crit=A0:
> 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 =20
> 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.
>=20
> Now, the rtai patch works fine, and the kernel compiles, but when I
> try to compile rtai
> The following error occurs:
>=20
> /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
Hi,
I had a similar problem, can you check your gcc version ?
I had to compile rtai with gcc2.95 if I remember well...
xavier
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: RTAI+ELDK Compile Problems
2005-02-08 11:09 RTAI+ELDK Compile Problems Björn Östby
2005-02-08 11:35 ` Re : " grave
@ 2005-02-08 21:58 ` Andrew Dennison
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Dennison @ 2005-02-08 21:58 UTC (permalink / raw)
To: 'Björn Östby', linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
On Tuesday, 8 February 2005 10:09 PM, linuxppc-embedded-bounces@ozlabs.org
wrote:
> 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
> <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 had a problem like this a while ago with gcc 3.3.2 (see this list from
22 March 2004) - seems later gcc versions are more pedantic about the way
the clobber list is specified, at least that is what some googling seemed
to indicate.
Attached patch worked for me when I was using linuxppc_devel patched with
patch-denx-linuxppc_2_4_devel-LABEL_2003_12_22_1500-ltt and
rtai-24.1.12-denx.tar.bz2.
[-- Attachment #2: rtai-24.1.12-denx.patch --]
[-- Type: application/octet-stream, Size: 547 bytes --]
diff -ur rtai-24.1.12.orig/include/asm-ppc/rtai_srq.h rtai-24.1.12/include/asm-ppc/rtai_srq.h
--- rtai-24.1.12.orig/include/asm-ppc/rtai_srq.h Tue Oct 24 11:32:28 2000
+++ rtai-24.1.12/include/asm-ppc/rtai_srq.h Thu Mar 18 14:38:35 2004
@@ -33,8 +33,7 @@
("trap \n\t"
: "=&r" (__sc_3), "=&r" (__sc_4)
: "0" (__sc_3), "1" (__sc_4),
- "r" (__sc_0)
- : "r0", "r3", "r4" );
+ "r" (__sc_0));
((unsigned long *)&retval)[0] = __sc_3;
((unsigned long *)&retval)[1] = __sc_4;
return retval;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-08 22:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08 11:09 RTAI+ELDK Compile Problems Björn Östby
2005-02-08 11:35 ` Re : " grave
2005-02-08 21:58 ` Andrew Dennison
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).