Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499270 - media-libs/libwebp - cross-armv7a-hardfloat-linux-gnueabi-ld: /usr/lib/libc.a: could not read symbols: File format not recognized
Summary: media-libs/libwebp - cross-armv7a-hardfloat-linux-gnueabi-ld: /usr/lib/libc.a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-25 21:35 UTC by James Le Cuirot
Modified: 2014-01-26 20:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libwebp-eautoreconf.patch (libwebp-eautoreconf.patch,857 bytes, patch)
2014-01-25 21:35 UTC, James Le Cuirot
Details | Diff
build.log (build.log,116.32 KB, text/plain)
2014-01-25 21:35 UTC, James Le Cuirot
Details
Run elibtoolize (libwebp-elibtoolize.patch,939 bytes, patch)
2014-01-26 16:52 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2014-01-25 21:35:04 UTC
Created attachment 368728 [details, diff]
libwebp-eautoreconf.patch

Cross-compiling libwebp fails during the install stage because libtool tries to relink the libraries and adds -L/usr/lib to the flags. Simply running eautoreconf fixes it because I think we patch libtool not to do this. We're half-way to requiring an eautoreconf anyway because the current ebuild modifies configure. See attached patch.
Comment 1 James Le Cuirot gentoo-dev 2014-01-25 21:35:27 UTC
Created attachment 368730 [details]
build.log

Here's the failing build log.
Comment 2 Mike Gilbert gentoo-dev 2014-01-26 16:52:37 UTC
Created attachment 368802 [details, diff]
Run elibtoolize

Does running elibtoolize help? That's a less-severe change than a full autoreconf.
Comment 3 James Le Cuirot gentoo-dev 2014-01-26 20:37:40 UTC
That does work. I just thought eautoreconf was generally a good idea when it works as it's more likely to fix other things. Is there a downside except for an extra few seconds build time?
Comment 4 Mike Gilbert gentoo-dev 2014-01-26 20:52:35 UTC
(In reply to James Le Cuirot from comment #3)

It also pulls in several additional build-time dependencies: autoconf, automake, perl, etc.

In general, it is preferable not to run eautoreconf if it is reasonable to avoid it.
Comment 5 Mike Gilbert gentoo-dev 2014-01-26 20:58:25 UTC
+  26 Jan 2014; Mike Gilbert <floppym@gentoo.org> libwebp-0.4.0.ebuild:
+  Call elibtoolize to fix relinking when cross-compiling, bug 499270 by James Le
+  Cuirot.