Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371717 - sys-fs/udev-171-r1: 'wrong ELF class' failure using portage-multilib
Summary: sys-fs/udev-171-r1: 'wrong ELF class' failure using portage-multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 08:44 UTC by Philipp Richter
Modified: 2011-12-04 15:27 UTC (History)
1 user (show)

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


Attachments
The build log (build.log,54.95 KB, text/plain)
2011-06-15 08:45 UTC, Philipp Richter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Richter 2011-06-15 08:44:40 UTC
Compiling sys-fs/udev-171-r1 with both amd64 and x86 abis set fails on the x86 phase. The portage version I'm using is from the 'portage-multilib' overlay: https://github.com/sjnewbury/multilib-overlay/tree/portage-multilib

Reproducible: Always

Steps to Reproduce:
1.Set the system up to use the 'portage-multilib' overlay
2.Emerge the special portage version from overlay
3.Emerge =sys-fs/udev-171-r1 with 'multilib_abi_amd64' and 'multilib_abi_x86' use flags set
Actual Results:  
Building fails on the x86 phase with:
'ImportError: /usr/lib64/gobject-introspection/giscanner/_giscanner.so: wrong ELF class: ELFCLASS64'

Expected Results:  
The software should have picked up the right library paths and compiled without errors.

Portage 2.2.0_alpha38-r1 (default/linux/amd64/10.0/desktop/portage-multilib, gcc-4.6.0, glibc-2.13-r2, 2.6.38.5-zen x86_64)
=================================================================
System uname: Linux-2.6.38.5-zen-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 13 Jun 2011 07:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.65-r1
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.52.0.1
sys-devel/gcc:            4.5.2, 4.6.0
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo local_overlay toolchain multilib multimedia ubuntu
Installed sets: @live, @llvm
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en_US en de fr"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/toolchain /var/lib/layman/multilib /var/lib/layman/multimedia /var/lib/layman/ubuntu"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ao apm atm avahi avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cleartype cli consolekit corefonts cracklib crypt css cups cxx dbus dri dts dv dvd dvdr emboss encode exif fam fbcon fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran gdbm gdu gif gimp gmp gnutls gpm gstreamer gtk gzip iconv ieee1394 ipv6 java jpeg jpeg2k lcms ldap libnotify libsamplerate lm_sensors lock lzma lzo mad matroska midi mmx mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses networkmanager nls nodep nptl nptlonly nvidia odbc ogg openal opengl openmp pam pango pcre pdf perl pmu png policykit posix ppds pppd pulseaudio python qt3support raw readline samba scanner sdl session slp smp snmp speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg sysfs szip tcpd tga theora threads thunar tiff timidity truetype type1 udev unicode usb vaapi vdpau vorbis wavpack wmf x264 xattr xcb xcomposite xinerama xinetd xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US en de fr" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Philipp Richter 2011-06-15 08:45:34 UTC
Created attachment 277087 [details]
The build log
Comment 2 Philipp Richter 2011-06-15 08:49:30 UTC
Inferior udev versions (e.g. =sys-fs/udev-164-r2, =sys-fs/udev-168-r2) compile fine in both ABIs.
Comment 3 William Hubbs gentoo-dev 2011-06-19 22:57:29 UTC
I am assigning this to multilib since udev works fine on official
portage systems.
Comment 4 Juho-Mikko Pellinen 2011-06-30 14:43:33 UTC
Modify the /usr/bin/g-ir-scanner and the build should succeed.
I had similar problems with at least atk-2.0.1 and pango-1.28.4.

else:
    # This is a private directory, we don't want to pollute the global
    # namespace.
    print os.getenv('ABI')
    if os.getenv('ABI') == "amd64":
        path = os.path.join('/usr/lib64', 'gobject-introspection')
    else:
        path = os.path.join('/usr/lib32', 'gobject-introspection')
sys.path.insert(0, path)
Comment 5 Philipp Richter 2011-07-01 13:03:56 UTC
(In reply to comment #4)
> Modify the /usr/bin/g-ir-scanner and the build should succeed.
> I had similar problems with at least atk-2.0.1 and pango-1.28.4.
> 
> else:
>     # This is a private directory, we don't want to pollute the global
>     # namespace.
>     print os.getenv('ABI')
>     if os.getenv('ABI') == "amd64":
>         path = os.path.join('/usr/lib64', 'gobject-introspection')
>     else:
>         path = os.path.join('/usr/lib32', 'gobject-introspection')
> sys.path.insert(0, path)

Thank you very much kind Sir! That helped.
Could this patch be integrated into 'dev-libs/gobject-introspection' to avoid future errors?
Comment 6 Thomas Sachau gentoo-dev 2011-12-04 15:27:39 UTC
I have added gobject-introspection to the list of packages, where a binary for each target ABI will be created, this should help with this issue.

Needed steps to do: 

1. sync your overlay (now multilib-portage overlay)
2. rebuild gobject-introspection
3. see issues like this one with g-ir-scanner gone