Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271360 - app-emulation/qemu-softmmu: Compile error about -fPIC flag
Summary: app-emulation/qemu-softmmu: Compile error about -fPIC flag
Status: RESOLVED DUPLICATE of bug 270421
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 00:23 UTC by Longpoke
Modified: 2009-06-18 04:09 UTC (History)
0 users

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 Longpoke 2009-05-27 00:23:32 UTC
Can't compile qemu-softmmu on amd64 hardened gentoo.

Reproducible: Always

Steps to Reproduce:
1. emerge -av qemu-softmmu
Actual Results:  
Compile error

Expected Results:  
Emerge Qemu successfully

x86_64-pc-linux-gnu-gcc -g    -o qemu-img qemu-img.o qemu-img-block.o cutils.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o block-parallels.o qemu-img-block-raw-posix.o -lz  -lrt -lpthread
rm -f libqemu_common.a 
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: qemu-img.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
qemu-img.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [qemu-img] Error 1
make: *** Waiting for unfinished jobs....
ar rcs libqemu_common.a cutils.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o block-parallels.o readline.o console.o block.o irq.o i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o ssd0303.o ssd0323.o ads7846.o stellaris_input.o scsi-disk.o cdrom.o scsi-generic.o usb.o usb-hub.o usb-linux.o usb-hid.o usb-msd.o usb-wacom.o sd.o ssi-sd.o audio/audio.o audio/noaudio.o audio/wavaudio.o audio/mixeng.o audio/ossaudio.o audio/wavcapture.o vnc.o d3des.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o slirp/tftp.o
 * 
 * ERROR: app-emulation/qemu-softmmu-0.9.1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2533:  Called die
 * The specific snippet of code:
 *       emake OS_CFLAGS="${CFLAGS}" || die "make failed"
 *  The die message:
 *   make failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.1-r3/temp/environment'.
 * 




$ emerge --info
Portage 2.1.6.11 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-glibc2.3.2
Timestamp of tree: Tue, 26 May 2009 04:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d /usr/X11R6/bin/startx"
CXXFLAGS="-fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS=""
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 acpi amd64 bash-completion berkdb bzip2 cairo cjk cracklib crypt dbus gnome gtk hal hardened jpeg justify midi mmx nls nptl nptlonly opengl pam perl pic png python readline ruby smartcard smp sse sse2 ssl svg tcpd truetype unicode urandom xorg 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 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="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="nb ide cnd php ruby webcommon java" USERLAND="GNU" VIDEO_CARDS="radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Luca Barbato gentoo-dev 2009-05-27 11:02:07 UTC
Interesting, it should filter out pie already...
Comment 2 Longpoke 2009-06-18 04:09:23 UTC

*** This bug has been marked as a duplicate of bug 270421 ***