Bug 2995 - pango fails to build for x86_64
Summary: pango fails to build for x86_64
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.3
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.3 M4
Assignee: Andy Ross
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-23 01:30 UTC by Khem Raj
Modified: 2012-08-29 15:37 UTC (History)
5 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 Khem Raj 2012-08-23 01:30:08 UTC
pango-querymodules specifies 

-Wl,-rpath -Wl,/usr/lib/../lib to libtool and that gets into ELF and later QA checker detects it and complains


ERROR: QA Issue: pango: /work/x86_64-poky-linux/pango-1.30.0-r0/packages-split/pango/usr/bin/pango-view contains probably-redundant RPATH /usr/lib/../lib
ERROR: QA Issue: pango: /work/x86_64-poky-linux/pango-1.30.0-r0/packages-split/pango/usr/bin/pango-querymodules contains probably-redundant RPATH /usr/lib/../lib
ERROR: QA run found fatal errors. Please consider fixing them.


note that my build host is ubuntu 12.04/x86_64 and target is qemux86-64

this does not happen in dissimilar arches e.g. it builds ok for i586 or ppc


So two questions, 1 somehow libtool is behaving strangely when both build system and target system are same proabably because its able to read files in /usr/lib on build host.

secondly there is a patch to libtool which should have converted this relative path to normal /usr/lib and I do have that patch applied to metadata

it still fails.
Comment 1 liang li 2012-08-24 03:11:14 UTC
the similar error also happened on nightly-build (20120822-1) when build qemux86-64 meta-toolchain-gmae (both i686 and x86_64),log from autobuilder:
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86-64/builds/593/steps/shell_50/logs/stdio
http://autobuilder.pokylinux.org:8010/builders/nightly-x86-64/builds/593/steps/shell_64/logs/stdio

--------------
...
ERROR: QA Issue: pango: /work/x86_64-poky-linux/pango-1.30.0-r0/packages-split/pango/usr/bin/pango-querymodules contains probably-redundant RPATH /usr/lib/../lib
ERROR: QA Issue: pango: /work/x86_64-poky-linux/pango-1.30.0-r0/packages-split/pango/usr/bin/pango-view contains probably-redundant RPATH /usr/lib/../lib
...
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
...
Summary: 1 task failed:
  /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/meta/recipes-graphics/pango/pango_1.30.0.bb, do_package
---------------
Comment 2 Andy Ross 2012-08-24 03:18:58 UTC
This was latent, and unmasked by oe-core commit 72a924d068, which fixed the warning condition to properly normalize the path before comparing vs. "/usr/lib".  An libtool patch was required to properly normalize the -rpath argument passed to ld, but apparently more treatment is needed.  Specifically, Saul discovered that the many of the .la files produced by libtool have the /usr/lib/../lib construction, including pango and libstdc++.
Comment 4 Stoicescu Cornel 2012-08-29 15:37:19 UTC
Verified with commit 92e40ec8599d567f3907837c616b83e089c2b544 on Ubuntu 12.04