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 1YT4BR-0006kd-IM for ptxdist@pengutronix.de; Wed, 04 Mar 2015 08:57:34 +0100 From: =?iso-8859-1?Q?H=E4nel-Baas=2C_Alexander?= Date: Wed, 4 Mar 2015 07:57:25 +0000 Message-ID: <9BA84827B30CBE4996725F98F7DC91234295CF9A@SMExchange01.siebmeyer.org> Content-Language: de-DE MIME-Version: 1.0 Subject: [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: multipart/mixed; boundary="===============0316886210==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============0316886210== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_9BA84827B30CBE4996725F98F7DC91234295CF9ASMExchange01sie_" --_000_9BA84827B30CBE4996725F98F7DC91234295CF9ASMExchange01sie_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi We use Ptxdist 2014.10.0 with OSELAS.Toolchain-2013.12.12 for arm -> arm-v7= a-linux-gnueabi When we compile the package liburcu then the linker stops with "skipping in= compatible /libs/liburco.so". "/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when searchi= ng for -lurcu" I think ptxdist use the host linker and not the arm-v7a-linux- from the too= lchain. What must I do to get it to work for arm? Here the compile output: I have delete some unimportant lines to reduce. ----------------------- target: liburcu.prepare ----------------------- checking build system type... i686-host-linux-gnu checking host system type... arm-v7a-linux-gnueabi checking target system type... arm-v7a-linux-gnueabi ~~~~~ ----------------------- target: liburcu.compile ----------------------- make all-recursive Making all in . CC wfqueue.lo CC wfstack.lo CC wfcqueue.lo CC urcu.lo CC urcu-pointer.lo CC urcu-qsbr.lo CC liburcu_mb_la-urcu.lo CC liburcu_mb_la-urcu-pointer.lo CC liburcu_signal_la-urcu.lo CC liburcu_signal_la-urcu-pointer.lo CC urcu-bp.lo CC rculfqueue.lo CC rculfstack.lo CC lfstack.lo CC rculfhash.lo CC rculfhash-mm-order.lo CC rculfhash-mm-chunk.lo CC rculfhash-mm-mmap.lo CCLD liburcu-common.la CCLD liburcu.la CCLD liburcu-mb.la CCLD liburcu-qsbr.la CCLD liburcu-signal.la CCLD liburcu-bp.la CCLD liburcu-cds.la Making all in examples make -f dist-files/Makefile AM_CPPFLAGS=3D" -I../../../urcu/ -I../../../" A= M_CFLAGS=3D'-g -O2' AM_LDFLAGS=3D' -L../../../.libs/ -Wl,-rpath=3D"/opt/g3D= evelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V2/platform-sm-arm/build-target/u= serspace-rcu-0.8.0/doc/examples/../../.libs/"' all gcc -g -O2 -Wall -I../../../urcu/ -I../../../ -g -O2 \ -c -o cds_hlist_add_head_rcu.o cds_hlist_add= _head_rcu.c gcc -g -O2 -Wall -g -O2 -L../../../.libs/ -Wl,-rpath=3D"/opt/g3DevelBase/g= 3Toolchain/g3Bsp/sd3XenoArm.Bsp.V2/platform-sm-arm/build-target/userspace-r= cu-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 searchin= g for -lurcu /usr/bin/ld: cannot find -lurcu collect2: error: ld returned 1 exit status make[7]: *** [cds_hlist_add_head_rcu] Error 1 make: *** [/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V2/platform-sm= -arm/state/liburcu.compile] Error 2 With best regards, Alexander H=E4nel-Baas --_000_9BA84827B30CBE4996725F98F7DC91234295CF9ASMExchange01sie_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi

 

We use Ptxdist 2014.10.0 with O= SELAS.Toolchain-2013.12.12 for arm -> arm-v7a-linux-gnueabi

 

When we compile the package lib= urcu then the linker stops with “skipping incompatible /libs/liburco.= so”.

“/usr/bin/ld: skipping in= compatible ../../../.libs//liburcu.so when searching for –lurcu”= ;

 

I think ptxdist use the host li= nker and not the arm-v7a-linux- from the toolchain.

 

What must I do to get it to wor= k for arm?

 

Here the compile output:

 

I have delete some unimportant = lines to reduce.

 

-----------------------

target: liburcu.prepare

-----------------------

 

checking build system type... i= 686-host-linux-gnu

checking host system type... ar= m-v7a-linux-gnueabi

checking target system type... = arm-v7a-linux-gnueabi

 

~~~~~

-----------------------

target: liburcu.compile

-----------------------

 

make  all-recursive

Making all in .

  CC   &nbs= p; wfqueue.lo

  CC   &nbs= p; wfstack.lo

  CC   &nbs= p; wfcqueue.lo

  CC   &nbs= p; urcu.lo

  CC   &nbs= p; urcu-pointer.lo

  CC    &nb= sp;urcu-qsbr.lo

  CC   &nbs= p; liburcu_mb_la-urcu.lo

  CC   &nbs= p; liburcu_mb_la-urcu-pointer.lo

  CC   &nbs= p; liburcu_signal_la-urcu.lo

  CC   &nbs= p; liburcu_signal_la-urcu-pointer.lo

  CC   &nbs= p; urcu-bp.lo

  CC   &nbs= p; rculfqueue.lo

  CC   &nbs= p; rculfstack.lo

  CC   &nbs= p; lfstack.lo

  CC   &nbs= p; rculfhash.lo

  CC   &nbs= p; rculfhash-mm-order.lo

  CC   &nbs= p; rculfhash-mm-chunk.lo

  CC   &nbs= p; rculfhash-mm-mmap.lo

  CCLD   liburcu= -common.la

  CCLD   liburcu= .la

  CCLD   liburcu= -mb.la

  CCLD   liburcu= -qsbr.la

  CCLD   liburcu= -signal.la

  CCLD   liburcu= -bp.la

  CCLD   liburcu= -cds.la

Making all in examples

make -f dist-files/Makefile AM_= CPPFLAGS=3D" -I../../../urcu/ -I../../../" AM_CFLAGS=3D'-g -O2' A= M_LDFLAGS=3D' -L../../../.libs/ -Wl,-rpath=3D"/opt/g3DevelBase/g3Toolc= hain/g3Bsp/sd3XenoArm.Bsp.V2/platform-sm-arm/build-target/userspace-rcu-0.8= .0/doc/examples/../../.libs/"'  all

gcc  -g -O2 -Wall -I../../= ../urcu/ -I../../../ -g -O2 \

     &= nbsp;           &nbs= p;             = -c -o cds_hlist_add_head_rcu.o cds_hlist_add_head_rcu.c

gcc -g -O2 -Wall  -g -O2 -= L../../../.libs/ -Wl,-rpath=3D"/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3X= enoArm.Bsp.V2/platform-sm-arm/build-target/userspace-rcu-0.8.0/doc/examples= /../../.libs/" \

     &= nbsp;           &nbs= p;             = -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu=

/usr/bin/ld: skipping incompati= ble ../../../.libs//liburcu.so when searching for -lurcu<= /p>

/usr/bin/ld: cannot find -lurcu=

collect2: error: ld returned 1 = exit status

make[7]: *** [cds_hlist_add_hea= d_rcu] Error 1

make: *** [/opt/g3DevelBase/g3T= oolchain/g3Bsp/sd3XenoArm.Bsp.V2/platform-sm-arm/state/liburcu.compile] Err= or 2

 

 

 

With best regards,

 

Alexander H=E4nel-Baas

--_000_9BA84827B30CBE4996725F98F7DC91234295CF9ASMExchange01sie_-- --===============0316886210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0316886210==--