Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582490 - sys-devel/gettext-0.19.7 with CHOST=armv7a-hardfloat-linux-gnueabi: /usr/lib/libc.a: error adding symbols: File format not recognized
Summary: sys-devel/gettext-0.19.7 with CHOST=armv7a-hardfloat-linux-gnueabi: /usr/lib/...
Status: RESOLVED DUPLICATE of bug 572038
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-08 23:42 UTC by Peter Levine
Modified: 2016-05-12 17:16 UTC (History)
1 user (show)

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


Attachments
sys-devel:gettext-0.19.7:20160508-232718.log.lzma (sys-devel:gettext-0.19.7:20160508-232718.log.lzma,43.40 KB, application/x-lzma)
2016-05-08 23:49 UTC, Peter Levine
Details
emerge-armv7a-hardfloat-linux-gnueabi --info (emerge-armv7a-hardfloat-linux-gnueabi-info.txt,14.74 KB, text/plain)
2016-05-08 23:50 UTC, Peter Levine
Details
ELT-patches/cross/link-ROOT-2.4.6 (link-ROOT-2.4.6,651 bytes, patch)
2016-05-08 23:57 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2016-05-08 23:42:51 UTC
Cross-compiling sys-devel/gettext-0.19.7 fails with "/usr/lib/libc.a: error adding symbols: File format not recognized" (CBUILD=x86_64-pc-linux-gnu and CHOST=armv7a-hardfloat-linux-gnueabi).  In the install phase, libtool relinks with "-L/usr/lib".  Workarounds involving LDFLAGS don't work as they're included after the offending libpath.

There currently exists the elibtoolize patch in portage "ELT-patches/cross/link-ROOT" that fixes this type of problem.  It seems that it doesn't cleanly apply to "${WORKDIR}"/gettext-0.19.7/build-aux/ltmain.sh.
Comment 1 Peter Levine 2016-05-08 23:49:37 UTC
Created attachment 433690 [details]
sys-devel:gettext-0.19.7:20160508-232718.log.lzma
Comment 2 Peter Levine 2016-05-08 23:50:33 UTC
Created attachment 433692 [details]
emerge-armv7a-hardfloat-linux-gnueabi --info
Comment 3 Peter Levine 2016-05-08 23:57:03 UTC
Created attachment 433694 [details, diff]
ELT-patches/cross/link-ROOT-2.4.6

An ELT-patch (libtool-2.4.6) based on "cross/link-ROOT" to be included in portage.

Apparently there is a slight change in wording (eg., '"$hardcode_minus_L" = yes' instead of 'yes = "$hardcode_minus_L"') the causes "cross/link-ROOT" not to apply.
Comment 4 SpanKY gentoo-dev 2016-05-12 17:16:09 UTC
*** This bug has been marked as a duplicate of bug 572038 ***