From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smnotes1.sieb-meyer.de ([213.252.170.194] helo=mail.sieb-meyer.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YT8Mn-0002Lm-QM for ptxdist@pengutronix.de; Wed, 04 Mar 2015 13:25:35 +0100 From: =?iso-8859-1?Q?H=E4nel-Baas=2C_Alexander?= Date: Wed, 4 Mar 2015 12:25:26 +0000 Message-ID: <9BA84827B30CBE4996725F98F7DC91234295D098@SMExchange01.siebmeyer.org> References: <9BA84827B30CBE4996725F98F7DC91234295CF9A@SMExchange01.siebmeyer.org> <201503041053.55090.jbe@pengutronix.de> <9BA84827B30CBE4996725F98F7DC91234295D01F@SMExchange01.siebmeyer.org> <201503041240.29486.jbe@pengutronix.de> In-Reply-To: <201503041240.29486.jbe@pengutronix.de> Content-Language: de-DE MIME-Version: 1.0 Subject: Re: [ptxdist] liburcu doesen't compile under arm Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" Hi Juergen Ups, i forget to tell you what liburcu version i used. Sorry. You are right. I found a discussion about vers. 0.8.0 how pass the CC variable to the exam= ple Makefiles http://git.lttng.org/?p=3Duserspace-rcu.git;a=3Dcommit;h=3Dd251e6454df8976c= d28c01536e0e41f02f5de072 Now I have apply this patch and it works. Thank you very much for your hints and support. Best regards Alexander -----Urspr=FCngliche Nachricht----- Von: Juergen Borleis [mailto:jbe@pengutronix.de] = Gesendet: Mittwoch, 4. M=E4rz 2015 12:40 An: ptxdist@pengutronix.de Cc: H=E4nel-Baas, Alexander Betreff: Re: [ptxdist] liburcu doesen't compile under arm Hi Alexander, On Wednesday 04 March 2015 11:09:37 H=E4nel-Baas, Alexander wrote: > Thank you for your reply. > > There is NO libucru installed on my host. Wrong direction. You didn't told us you try to use a more recent version of= userspace-rcu (=3D0.8.0) than it is part of PTXdist (=3D0.6.7)... > Here the output from clean an compile step at full length. > [...] > cc -g -O2 -Wall -g -O2 -L../../../.libs/ = > -Wl,-rpath=3D"/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V2/platfo= rm-sm-arm/build-target/userspace-rcu-0.8.0/doc/examples/../../.libs/" > \ -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu > /usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when = > searching for -lurcu > /usr/bin/ld: cannot find -lurcu > collect2: error: ld returned 1 exit status > make[7]: Leaving directory `/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm= .Bsp.V2/platform-sm-arm/build-target/userspace-rcu-0.8.0/doc/examples/hlist' > make[7]: *** > [...] > I think, when make do all in doc's then it used the wrong LD. Not the wrong LD, it uses 'cc' (=3Dhost compiler) instead of the correct "a= rm-v7a-linux-gnueabi-gcc" cross-compiler. Maybe the new 0.8.0 version comes with a configure switch do disable buildi= ng the examples and docs. Or their buildsystem must be fixed to use the cro= ss compiler everywhere. Regards, Juergen -- Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Borleis =A0 =A0 =A0 =A0 =A0 =A0 | Industrial Linux Solutions =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de