Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260794 - sys-devel/gettext-0.17 fails to crossscompile due to libtool relinking and not respecting DESTDIR
Summary: sys-devel/gettext-0.17 fails to crossscompile due to libtool relinking and no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-01 22:13 UTC by Andrei Slavoiu
Modified: 2011-09-07 02:28 UTC (History)
0 users

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


Attachments
build.log (build.log,677.67 KB, text/plain)
2009-03-01 22:15 UTC, Andrei Slavoiu
Details
gettext-0.17.ebuild.patch (gettext-0.17.ebuild.patch,324 bytes, patch)
2009-03-18 20:23 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2009-03-01 22:13:57 UTC
Fails during install. When trying to relink libgettextsrc.la /usr/lib is added to lib path.

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc23 (default/linux/arm/2008.0, gcc-4.3.3, unavailable, 2.6.28-gentoo-r2 x86_64)
=================================================================                           
System uname: Linux-2.6.28-gentoo-r2-x86_64-AMD_Phenom-tm-_9350e_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sun, 01 Mar 2009 19:00:01 +0000                                                  
ccache version 2.4 [enabled]                                                                        
app-shells/bash:     3.2_p48-r1                                                                     
dev-java/java-config: 2.1.7                                                                         
dev-lang/python:     2.5.4-r2                                                                       
dev-util/ccache:     2.4-r8                                                                         
dev-util/cmake:      2.6.3                                                                          
sys-apps/baselayout: 2.0.0                                                                          
sys-apps/openrc:     0.4.3-r1                                                                       
sys-apps/sandbox:    1.3.8                                                                          
sys-devel/autoconf:  2.13, 2.63                                                                     
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                               
sys-devel/binutils:  2.19.1                                                                         
sys-devel/gcc-config: 1.4.1                                                                         
sys-devel/libtool:   2.2.6a                                                                         
virtual/os-headers:  2.6.28-r1                                                                      
ACCEPT_KEYWORDS="arm"                                                                               
CBUILD="x86_64-pc-linux-gnu"                                                                        
CFLAGS="-march=armv4t -mtune=arm920t -Os -pipe"                                                     
CHOST="armv4tl-softfloat-linux-gnueabi"                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                                               
CXXFLAGS="-march=armv4t -mtune=arm920t -Os -pipe"                                                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                                                                                   
EMERGE_DEFAULT_OPTS="--with-bdeps y  -k"                                                                                                                                           
FEATURES="buildpkg ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs preserved-rebuild protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"                                                                                                                                                      
GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo http://ftp.roedu.net/pub/mirrors/gentoo.org http://mirrors.xservers.ro/gentoo http://distfiles.gentoo.org"                         
LANG="ro_RO.UTF-8"                                                                                                                                                                 
LC_ALL="ro_RO.UTF-8"                                                                                                                                                               
LDFLAGS="-Wl,-O1"                                                                                                                                                                  
LINGUAS="ro en eo"                                                                                                                                                                 
MAKEOPTS="-j5 -l10"                                                                                                                                                                
PKGDIR="/usr/portage/packages"                                                                                                                                                     
PORTAGE_CONFIGROOT="/usr/armv4tl-softfloat-linux-gnueabi/"                                                                                                                         
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                                                                        
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                          
PORTDIR="/usr/portage"                                                                                                                                                             
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                     
USE="arm ipv6 minimal nls readline symlink unicode" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="tslib" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en eo" USERLAND="GNU" VIDEO_CARDS="fbdev"                                              
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andrei Slavoiu 2009-03-01 22:14:46 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                                                                                                                                              
Comment 2 Andrei Slavoiu 2009-03-01 22:15:16 UTC
Created attachment 183612 [details]
build.log
Comment 3 SpanKY gentoo-dev 2009-03-02 08:59:54 UTC
elibtoolize might fix the issue
Comment 4 Andrei Slavoiu 2009-03-02 21:08:29 UTC
Adding elibtoolize before the line saying "epunt_cxx" did not help. Same error.
Comment 5 Andrei Slavoiu 2009-03-10 21:18:33 UTC

*** This bug has been marked as a duplicate of bug 262042 ***
Comment 6 Andrei Slavoiu 2009-03-18 20:20:58 UTC
Now that bug 262042 is implemented I tried again to add elibtoolize to the ebuild and this time it worked.
Comment 7 Andrei Slavoiu 2009-03-18 20:23:32 UTC
Created attachment 185460 [details, diff]
gettext-0.17.ebuild.patch
Comment 8 Thorsten Fischer 2009-06-14 08:53:12 UTC
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.
Comment 9 Juan P Daza P 2010-01-11 15:15:53 UTC
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