Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207851 - sys-fs/e2fsprogs-1.40.5 fails to compile due to local linker scripts
Summary: sys-fs/e2fsprogs-1.40.5 fails to compile due to local linker scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 207856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-28 08:19 UTC by Andriy Baranskyy
Modified: 2008-02-14 05:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Baranskyy 2008-01-28 08:19:36 UTC
sys-fs/e2fsprogs-1.40.5 fails to compile:
/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/../../../../i686-pc-linux-gnu/bin/ld:../../libcom_err.so: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/../../../../i686-pc-linux-gnu/bin/ld:../../libcom_err.so:1: syntax error
collect2: ld returned 1 exit status
make[2]: *** [libext2fs.so.2.4] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.5/work/e2fsprogs-1.40.5/lib/ext2fs'
make[1]: *** [all-libs-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.5/work/e2fsprogs-1.40.5'
make: *** [all] Error 2

emerge --info:
Portage 2.1.4 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz
Timestamp of tree: Mon, 28 Jan 2008 07:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en pl uk be de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns alsa amr amrnb amrr amrwb ao arts automount bash-completion berkdb bidi bitmap-fonts bluetooth branding bzip2 c++ cairo caps cddb cdparanoia cisco clicpudetection cracklib crypt css cups curl daap dbus dga directfb divx dri dts dv dvd dvdnav dvdr dvdread emovix enca encode exif fam fax fbcon ffmpeg firefox flac font-server fontconfig fortran ftp gd gdbm ggi gif glib glitz gmailgmedia gnutls gpg2-experimental gphoto2 gpm gsm gtk hal htmlhandbook http hyperestraier iconv icq imagemagick inotify ipod ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k justify kde kdrive kerberos ladspa lame latex libcaca libwww lilo live lzo mad matroska matrox mbrola md5sum midi mjpeg mmap mmx mmxextmng modplug motif mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap musepack musicbrainz mysql nas ncurses neXt net netbeans netboot network network-cron networking nfs nis nls nptl nptlonly nsplugin ntp nvidia nvram nvtv obex ogg openal openexr opengl openmp openssh openvpn oss pam pch pcmcia pcre pda pdf perl pic player plotutils plugins png portaudio pppd pulseaudio python qt-static qt3 qt3support qt4 quicktime radio rar raw readline real realmedia reflection rtc samba scanner sdl session slang sndfile snmp speech speex spell spl sql sqlite sqlite3 srt sse sse2 ssl ssse3 svg tcpd tetex tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vidix visualization vorbis wav wavpack wifi win32codecs wma wmf wmp wxwindows x264 x86 xanim xcb xcomposite xine xinerama xorg xpm xprint xv xvid xvmc yv12 zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linearmeter 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 mimemime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl uk be de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. emerge sys-fs/e2fsprogs-1.40.5
Comment 1 michel 2008-01-28 08:33:33 UTC
the same here
Comment 3 Dawid Węgliński (RETIRED) gentoo-dev 2008-01-28 09:44:09 UTC
*** Bug 207856 has been marked as a duplicate of this bug. ***
Comment 4 Joel Martin (RETIRED) gentoo-dev 2008-02-13 21:49:13 UTC
The new way of setting up the local linker scripts doesn't work with --sysroot style cross-compilers:

    echo "GROUP ( /usr/$(get_libdir)/libcom_err.a )" > lib/libcom_err.a
    echo "GROUP ( /usr/$(get_libdir)/libcom_err.so )" > lib/libcom_err.so
    echo "GROUP ( /usr/$(get_libdir)/libss.a )" > lib/libss.a
    echo "GROUP ( /usr/$(get_libdir)/libss.so )" > lib/libss.so

The problem here is that toolchain programs with --sysroot support will normally resolve linker script GROUP values to be relative to the value of sysroot. However, they only do this if the file containing the linker script is within the sysroot. Otherwise it uses an absolute path which ends up picking up system libraries when cross-compiling. I.e. this happens:

        CC prof_err.c
        LD e2fsck
/usr/libexec/gcc/mips64el-gentoo-linux-gnu/ld: cannot find /usr/lib32/libcom_err.so
collect2: ld returned 1 exit status
Comment 5 SpanKY gentoo-dev 2008-02-14 05:11:02 UTC
file a new bug