Summary: | sys-devel/gettext-0.19.4 fails to install when cross-emerging | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Bates <james.h.bates> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | even.oscar.andersen, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | gettext-0.19.4-crossdev-build.log |
Description
James Bates
2015-07-25 15:00:26 UTC
Created attachment 407602 [details]
gettext-0.19.4-crossdev-build.log
the stated purpose of crossdev is not to cross-build a stage1. it's to build a cross-compiler. you might be confusing "gcc stage1" with "gentoo stage1". *** Bug 557110 has been marked as a duplicate of this bug. *** I'm getting the exact same error message when trying to cross-compile using armv7a-hardfloat-linux-gnueabi-emerge. It is trying to pull in /usr/lib/libm.so which is from my amd64 host system. It looks like this same problem was fixed for an earlier version of gettext on bug #260794. Maybe the same fix just needs to be reapplied? Can you apply this hack to gettext and try it with your emerge wrapper? @@ -6,7 +6,7 @@ EAPI="5" -inherit eutils mono-env libtool java-pkg-opt-2 multilib-minimal +inherit eutils flag-o-matic mono-env libtool java-pkg-opt-2 multilib-minimal toolchain-funcs DESCRIPTION="GNU locale utilities" HOMEPAGE="https://www.gnu.org/software/gettext/" @@ -54,6 +54,14 @@ } multilib_src_configure() { + append-libs "-lm" # needs this on arm64 or with -flto + + if tc-is-cross-compiler ; then + PKG_CONFIG_LIBDIR="${SYSROOT}/usr/$(get_libdir)/pkgconfig" + tc-export PKG_CONFIG + append-libs "-L${SYSROOT}/$(get_libdir) -L${SYSROOT}/usr/$(get_libdir)" + fi + local myconf=( # switches common to runtime and top-level --cache-file="${BUILD_DIR}"/config.cache Can't reproduce this anymore |