Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 297876

Summary: app-emulation/qemu-kvm-0.12.1 fails to emerge on amd64 (relocation issue)
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: tommy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Priit Laes (IRC: plaes) 2009-12-22 07:31:28 UTC
[snip]
  LINK  arm-linux-user/qemu-arm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: ../libuser/libuser.a(envlist.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../libuser/libuser.a(envlist.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-arm] Error 1
make: *** [subdir-arm-linux-user] Error 2
make: *** Waiting for unfinished jobs....
  CC    x86_64-linux-user/tcg/tcg.o
  AR    i386-linux-user/libqemu.a
  LINK  i386-linux-user/qemu-i386
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: ../libuser/libuser.a(envlist.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../libuser/libuser.a(envlist.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make: *** [subdir-i386-linux-user] Error 2
  CC    x86_64-linux-user/fpu/softfloat-native.o
  CC    x86_64-linux-user/op_helper.o
  CC    x86_64-linux-user/helper.o
  CC    x86_64-linux-user/disas.o
  CC    x86_64-linux-user/i386-dis.o
  AR    x86_64-linux-user/libqemu.a
  LINK  x86_64-linux-user/qemu-x86_64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: ../libuser/libuser.a(envlist.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../libuser/libuser.a(envlist.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-x86_64] Error 1
make: *** [subdir-x86_64-linux-user] Error 2
[/snip]

plaes@chi /usr/src/linux-2.6 $ emerge --info
Portage 2.2_rc60 (default/linux/amd64/10.0/no-multilib, gcc-4.4.2, glibc-2.11-r1, 2.6.31-rc5-00470-g85dfd81 x86_64)
=================================================================
System uname: Linux-2.6.31-rc5-00470-g85dfd81-x86_64-Intel-R-_Core-TM-2_CPU_L7400_@_1.50GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 22 Dec 2009 06:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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"
CXXFLAGS="-march=native -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en et"
MAKEOPTS="-j3"
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/layman/science /home/plaes/code/gentoo/gnome /home/plaes/code/gentoo/local /home/plaes/code/gentoo/tryton-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi adns alsa amd64 amr apache2 ares autoipd avahi berkdb blas bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups curl cxx daap dbus device-mapper dga djvu dri dvd dvdr dvi eds empathy encode exif faac faad fam ffmpeg fftw flac fortran fuse galago gcj gd gdbm gif gimp git glib glitz gmp gnome gnome-keyring gnuplot gnutls gphoto2 gs gsl gstreamer gtk h323 hal hardened hdri iconv idn imagemagick introspection ipv6 jingle jpeg jpeg2k kdrive kpathsea lapack laptop latex lcms libffi libnotify lzma lzo mad mmx mng moonlight mozdevelop mp3 mpeg msn mudflap music nautilus ncurses network network-cron networkmanager nls nptl nptlonly nsplugin numpy offensive ogg openexr opengl openmp pam pch pcmcia pcre pcsc-lite pdf perl png policykit pppd pygments python qt3support raw readline reflection resolvconf sasl sdl session sip smartcard smp sound source spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora tiff truetype unicode upnp usb v4l v4l2 vim-syntax vorbis webkit wps x264 xcb xinerama xml xmp xorg xulrunner xv xvid xvmc zeroconf zlib" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en et" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Sachau gentoo-dev 2009-12-22 11:26:53 UTC
Why do you have hardened USE flag in your profile, also you are not using a hardened profile? Disable the hardened USE flag for qemu-kvm and try again.
Comment 2 Priit Laes (IRC: plaes) 2009-12-22 13:25:31 UTC
(In reply to comment #1)
> Why do you have hardened USE flag in your profile, also you are not using a
> hardened profile? Disable the hardened USE flag for qemu-kvm and try again.
> 

USE="-hardened" worked :)