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 #1

Updated by Mathieu Desnoyers about 12 years ago

please see http://wiki.debian.org/RpathIssue

"Since libtool 1.5.2 (released 2004-01-25), on Linux libtool no longer sets RPATH for any directories in the dynamic linker search path, so this should no longer be an issue unless upstream used a really old version of libtool when creating their distribution tarball."

what version of libtool are you using ?

Thanks,

Mathieu

Actions #2

Updated by Mathieu Desnoyers about 12 years ago

  • Status changed from New to Feedback
Actions #3

Updated by Yannick Brosseau almost 12 years ago

John, is it still an issue?

Actions #4

Updated by John Williams almost 12 years ago

Yannick,

I haven't retested sorry - I spent an afternoon idly playing with LTTng a few months back but haven't been back to check since I hit this blocker.

Actions #5

Updated by Mathieu Desnoyers about 11 years ago

  • Status changed from Feedback to Resolved

Assumed resolved, no feedback for 10 months.

Actions

Also available in: Atom PDF