Project

General

Profile

Actions

Bug #212

closed

URCU does not cross-compile

Added by John Williams about 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/13/2012
Due date:
% Done:

0%

Estimated time:

Description

Attempting to cross compile URCU for powerpc 32 bit. The -rpath $(libdir) linker option is causing host library pollution:


libtool: install: (cd /home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/user-libs/userspace-rcu/build-userspace-rcu-0.6.7; /bin/sh /home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/user-libs/userspace-rcu/build-userspace-rcu-0.6.7/libtool  --silent --tag CC --mode=relink powerpc-unknown-linux-gnu-gcc -Wall -Os -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mcpu=440 -mtune=440 -DEMBED -I/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist -I/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/include -I/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/include -Dlinux -D__linux__ -Dunix -fPIC -DLINUX -I/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/stage/usr/include -I/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/stage/usr/local/include -lpthread -version-info 1:0:0 -L/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/lib -L/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/stage/usr/lib -L/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/stage/usr/local/lib -o liburcu.la -rpath /usr/lib urcu.lo urcu-pointer.lo liburcu-common.la -inst-prefix-dir /home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/software/petalinux-dist/stage)
/home/jwilliams/tmp/petalinux-test/petalinux-v3.x-full/tools/linux-i386/powerpc-unknown-linux-gnu/bin/../lib/gcc/powerpc-unknown-linux-gnu/4.3.2/../../../../powerpc-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib/libpthread.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status
libtool: install: error: relink `liburcu.la' with the above command before installing it
Actions

Also available in: Atom PDF