When building the latest cvs of qemu I ran into a problem with dyngen not liking pie. A simple switch of the CC got this problem solved: Dyngen failed with this error: dyngen: unsupported i386 relocation (10) To work around this, you'll have to switch to a non-hardend gcc. This can be done with: gcc-config -l (shows you a list of avialiable cc) gcc-config i686-pc-linux-gnu-3.3.6-hardenednopiessp (use the correct version) source /etc/profile emerge qemu-cvs gcc-config i686-pc-linux-gnu-3.3.6 (use the correct version) source /etc/profile It might be neccessary to exclude the qemu executables from PaX-protection, too. Reproducible: Always Steps to Reproduce: 1. emerge the ebuild from http://www.zugaina.org/gentoo/portage/app-emulation/qemu-cvs/qemu-cvs-0.6.2_pre1-r3.ebuild on a hardened gcc/toolchain. Actual Results: dyngen: unsupported i386 relocation (10) Expected Results: compile cleanly emerge --info Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.11-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe -march=athlon-xp -fomit-frame-pointer" DISTDIR="/var/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE" LC_ALL="de_DE@euro" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/var/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/misc /usr/local/overlays/gentoo.de" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext 7zip X acl acpi alsa apache2 apm arts artswrappersuid auctex audiofile avi bash-completion berkdb bitmap-fonts blas bonobo bootsplash bzlib c++ cdda cddb cdf cdio cdparanoia cdr clamav codecs cracklib crypt css ctype cups curl devfs26 dhcp directfb dlloader droproot dvd dvdread eds elf emacs emboss encode ethereal exim f2c fam fb fbcon ffmpeg fftw firefox flac flash font-server foomaticdb fortran freetype ftp gatos gcj gdbm gif gimp gimpprint gkrellm glade gnome gnuplot gpm gs gstreamer gtk gtk2 gtkhtml guile hardened hardenedphp html http httpd imagemagick imap imlib inline jack java javascript jce jp2 jpeg jpeg2k junit kde kdeenablefinal kerberos lame latex ldap libg++ libwww live lm_sensors logrotate lzo lzw lzw-tiff mad maildir mailwrapper math matroska matrox mikmod mime ming mixer mjpeg mmx mmxext mng monkey mono motif mozilla moznocompose moznoirc moznomail moznoxft mp3 mpeg mpeg2 mpeg4 mplayer music mysql mysqli ncurses net netcdf nls nptl nptlonly ntlm oav octave ogg oggvorbis opengl oss pam pccts pcre pdf pdflib perl php pic pie plotutils png posix postgres povray ppds python qt quicktime rdesktop readline real reiserfs samba sdl servlet-2.4 sftplogging skey slang smime soap softmmu sounds sox spell sql sqlite sse ssl stream subp subtitles subversion svg svga tcltk tcpd tetex theora tiff timidity tos transcode truetype truetype-fonts ttcp type1 type1-fonts unicode usb usepackagedmakefiles userlocales utf8 vcd visualization vorbis win32codecs wma123 wmf wxgtk1 wxwindows xanim xgetdefault xine xml2 xmms xpm xprint xscreensaver xv xvid xvmc yv12 zlib video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
As the lines did not wrap correctly. Here's the workaround again: gcc-config -l (shows you a list of avialiable cc) gcc-config i686-pc-linux-gnu-3.3.6-hardenednopiessp (use the correct version) source /etc/profile emerge qemu-cvs gcc-config i686-pc-linux-gnu-3.3.6 (use the correct version) source /etc/profile
We only support ebuilds that are actually in portage.
Ok, obviously I need a preview function for this bugzilla. *blush* gcc-config -l (shows you a list of avialiable cc) gcc-config i686-pc-linux-gnu-3.3.6-hardenednopiessp (use the correct version) source /etc/profile emerge qemu-cvs gcc-config i686-pc-linux-gnu-3.3.6 (use the correct version) source /etc/profile PS: Even though that ebuild is not in portage, the same problem is likely to be found in the ebuilds, which are in portage. But as I just confirmed, the ebuilds in the portage-tree address these particular issues. So this bug can be closed.