From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ms-102.aerotechtelub.se (ms-102.aerotechtelub.se [192.176.33.164]) by ozlabs.org (Postfix) with ESMTP id C553867A7E for ; Tue, 8 Feb 2005 22:19:37 +1100 (EST) Received: from ratatosk.combitechsystems.com (unverified) by ms-102.aerotechtelub.se (Clearswift SMTPRS 5.0.4) with ESMTP id for ; Tue, 8 Feb 2005 12:09:27 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C50DCE.9BB1F0D7" Date: Tue, 8 Feb 2005 12:09:07 +0100 Message-ID: <004B1D7A5257174C9044A1B7BD0E60ED0178CBE7@ratatosk.combitechsystems.com> From: =?iso-8859-1?B?Qmr2cm4g1nN0Ynk=?= To: Subject: RTAI+ELDK Compile Problems List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C50DCE.9BB1F0D7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.=20 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:=20 In function `rtai_srq': /opt/eldk-3.1/ppc_8xx/usr/src/rtai-24.1.12/include/asm/rtai_srq.h:32:=20 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)=20 using "make ARCH=3Dppc CROSS_COMPILE=3Dppc_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 ------_=_NextPart_001_01C50DCE.9BB1F0D7 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RTAI+ELDK Compile Problems

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=3Dppc = CROSS_COMPILE=3Dppc_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


------_=_NextPart_001_01C50DCE.9BB1F0D7-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipnmail.in2p3.fr (ipnmail.in2p3.fr [134.158.92.208]) by ozlabs.org (Postfix) with ESMTP id 08D5D67A7E for ; Tue, 8 Feb 2005 22:47:33 +1100 (EST) Date: Tue, 08 Feb 2005 11:35:22 +0000 From: grave To: =?iso-8859-1?b?Qmr2cm4g1nN0Ynk=?= References: <004B1D7A5257174C9044A1B7BD0E60ED0178CBE7@ratatosk.combitechsystems.com> In-Reply-To: <004B1D7A5257174C9044A1B7BD0E60ED0178CBE7@ratatosk.combitechsystems.com> (from Bjorn.Ostby@combitechsystems.com on Tue Feb 8 12:09:07 2005) Message-Id: <1107862522l.16620l.9l@ipnnarval> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed Cc: linuxppc-embedded@ozlabs.org Subject: =?iso-8859-1?q?Re=A0=3A?= RTAI+ELDK Compile Problems List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.netspace.net.au (thunder.netspace.net.au [203.10.110.71]) by ozlabs.org (Postfix) with ESMTP id 3A1D067AAD for ; Wed, 9 Feb 2005 09:18:17 +1100 (EST) Received: from motec.com.au (dsl-210-15-234-78.VIC.netspace.net.au [210.15.234.78]) by mail.netspace.net.au (Postfix) with SMTP id 33F9C4311E for ; Wed, 9 Feb 2005 08:58:28 +1100 (EST) From: "Andrew Dennison" To: =?iso-8859-1?Q?'Bj=F6rn_=D6stby'?= , Date: Wed, 9 Feb 2005 08:58:28 +1100 Message-ID: <001e01c50e29$52738e80$4000a8c0@CAT> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001F_01C50E85.85E40680" In-Reply-To: <004B1D7A5257174C9044A1B7BD0E60ED0178CBE7@ratatosk.combitechsystems.com> Subject: RE: RTAI+ELDK Compile Problems List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_001F_01C50E85.85E40680 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 > , using the >=20 > 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 =20 >=20 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. ------=_NextPart_000_001F_01C50E85.85E40680 Content-Type: application/octet-stream; name="rtai-24.1.12-denx.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="rtai-24.1.12-denx.patch" diff -ur rtai-24.1.12.orig/include/asm-ppc/rtai_srq.h = rtai-24.1.12/include/asm-ppc/rtai_srq.h=0A= --- rtai-24.1.12.orig/include/asm-ppc/rtai_srq.h Tue Oct 24 11:32:28 2000=0A= +++ rtai-24.1.12/include/asm-ppc/rtai_srq.h Thu Mar 18 14:38:35 2004=0A= @@ -33,8 +33,7 @@=0A= ("trap \n\t"=0A= : "=3D&r" (__sc_3), "=3D&r" (__sc_4)=0A= : "0" (__sc_3), "1" (__sc_4),=0A= - "r" (__sc_0)=0A= - : "r0", "r3", "r4" );=0A= + "r" (__sc_0));=0A= ((unsigned long *)&retval)[0] =3D __sc_3;=0A= ((unsigned long *)&retval)[1] =3D __sc_4;=0A= return retval;=0A= ------=_NextPart_000_001F_01C50E85.85E40680--