Summary: | sys-devel/gettext-0.17 fails to crossscompile due to libtool relinking and not respecting DESTDIR | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrei Slavoiu <ansla80> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
gettext-0.17.ebuild.patch |
Description
Andrei Slavoiu
2009-03-01 22:13:57 UTC
libtool: install: warning: relinking `libgettextsrc.la' (cd /var/tmp/portage/sys-devel/gettext-0.17/work/gettext-0.17/gettext-tools/src; /bin/sh ../libtool --tag=CC --mode=relink armv4tl-softfloat-linux-gnueabi-gcc -std=gnu99 -march=armv4t -mtune=arm920t -Os -pipe -release 0.17 ../gnulib-lib/libgettextlib.la -lc -Wl,-O1 -o libgettextsrc.la -rpath /usr/lib message.lo po-error.lo po-xerror.lo read-catalog-abstract.lo po-lex.lo po-gram-gen.lo po-charset.lo read-po.lo read-properties.lo read-stringtable.lo open-catalog.lo dir-list.lo str-list.lo read-catalog.lo color.lo write-catalog.lo write-properties.lo write-stringtable.lo write-po.lo msgl-ascii.lo msgl-iconv.lo msgl-equal.lo msgl-cat.lo msgl-english.lo msgl-check.lo file-list.lo msgl-charset.lo po-time.lo plural-exp.lo plural-eval.lo plural-table.lo format.lo format-c.lo format-sh.lo format-python.lo format-lisp.lo format-elisp.lo format-librep.lo format-scheme.lo format-java.lo format-csharp.lo format-awk.lo format-pascal.lo format-ycp.lo format-tcl.lo format-perl.lo format-perl-brace.lo format-php.lo format-gcc-internal.lo format-qt.lo format-kde.lo format-boost.lo -inst-prefix-dir /var/tmp/portage/sys-devel/gettext-0.17/image/) armv4tl-softfloat-linux-gnueabi-gcc -std=gnu99 -shared .libs/message.o .libs/po-error.o .libs/po-xerror.o .libs/read-catalog-abstract.o .libs/po-lex.o .libs/po-gram-gen.o .libs/po-charset.o .libs/read-po.o .libs/read-properties.o .libs/read-stringtable.o .libs/open-catalog.o .libs/dir-list.o .libs/str-list.o .libs/read-catalog.o .libs/color.o .libs/write-catalog.o .libs/write-properties.o .libs/write-stringtable.o .libs/write-po.o .libs/msgl-ascii.o .libs/msgl-iconv.o .libs/msgl-equal.o .libs/msgl-cat.o .libs/msgl-english.o .libs/msgl-check.o .libs/file-list.o .libs/msgl-charset.o .libs/po-time.o .libs/plural-exp.o .libs/plural-eval.o .libs/plural-table.o .libs/format.o .libs/format-c.o .libs/format-sh.o .libs/format-python.o .libs/format-lisp.o .libs/format-elisp.o .libs/format-librep.o .libs/format-scheme.o .libs/format-java.o .libs/format-csharp.o .libs/format-awk.o .libs/format-pascal.o .libs/format-ycp.o .libs/format-tcl.o .libs/format-perl.o .libs/format-perl-brace.o .libs/format-php.o .libs/format-gcc-internal.o .libs/format-qt.o .libs/format-kde.o .libs/format-boost.o -L/var/tmp/portage/sys-devel/gettext-0.17/image//usr/lib -L/usr/lib -lgettextlib -lc -march=armv4t -mtune=arm920t -Wl,-O1 -Wl,-soname -Wl,libgettextsrc-0.17.so -o .libs/libgettextsrc-0.17.so /usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/lib/libc.a: could not read symbols: File format not recognized collect2: ld returned 1 exit status libtool: install: error: relink `libgettextsrc.la' with the above command before installing it make[4]: *** [install-libLTLIBRARIES] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-devel/gettext-0.17/work/gettext-0.17/gettext-tools/src' make[3]: *** [install-am] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gettext-0.17/work/gettext-0.17/gettext-tools/src' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gettext-0.17/work/gettext-0.17/gettext-tools/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gettext-0.17/work/gettext-0.17/gettext-tools' make: *** [install-recursive] Error 1 Created attachment 183612 [details]
build.log
elibtoolize might fix the issue Adding elibtoolize before the line saying "epunt_cxx" did not help. Same error. *** This bug has been marked as a duplicate of bug 262042 *** Now that bug 262042 is implemented I tried again to add elibtoolize to the ebuild and this time it worked. Created attachment 185460 [details, diff]
gettext-0.17.ebuild.patch
I am facing the same problem when cross-compiling gettext-0.17 for armv5teb-softfloat-linux-gnueabi on x86_64-pc-linux-gnu. The linker seems to think it fit to pull in library files from /usr/lib. Same problem here cross-compiling from x86_64-pc-linux-gnu to arm-unknown-linux-gnueabi: /usr/libexec/gcc/arm-unknown-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/lib/libc.a: could not read symbols: File format not recognized collect2: ld returned 1 exit status |