Bug 209 - prelink-native failures to build, due to missing libiberty from binutils
Summary: prelink-native failures to build, due to missing libiberty from binutils
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: High major
Target Milestone: 0.9 M3
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-08-13 11:44 UTC by Mark Hatle
Modified: 2010-12-21 06:09 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hatle 2010-08-13 11:44:05 UTC
See logs at:

http://autobuilder.pokylinux.org:8010/builders/poky-incremental/builds/82/steps/shell_4/logs/stdio

specifically:


| x86_64-linux-libtool: link: gcc -Wall -Wno-pointer-sign -isystem/srv/home/builds2/poky-incremental/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -Wl,-rpath-link -Wl,/srv/home/builds2/poky-incremental/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/builds2/poky-incremental/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-O1 -o prelink cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o wrap-file.o canonicalize.o reloc-info.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o  -L/srv/home/builds2/poky-incremental/build/build/tmp/sysroots/x86_64-linux/usr/lib -liberty -lelf
| /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty


On an x86_64 system, libiberty does not appears to be present in the sysroot/x86_64-linux/usr/lib directory as it should be.

Normally (on a 32-bit platform) libiberty is built as a side effect of the binutils-native package build, but for some reason it's not present in this situation.
Comment 1 Nitin Kamble 2010-08-13 13:48:24 UTC
I tried this on my fedora 12 64bit system. And prelink_git is building fine.
- nitin
Comment 2 Nitin Kamble 2010-08-13 17:19:34 UTC
root caused issue as libiberty.a file being installed in wrong location. 
RP helped pinpoint the issue in the code. And the issue is fixed now. Sent a pull request to the poky@o-hand mailing list.

- Nitin
Comment 3 Nitin Kamble 2010-08-17 14:48:46 UTC
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=bfaeda03beeaae3ba265632f0bcfa3354e55766a

this commit fixed the bug.