xen compile fails with LDFLAGS set. happens with LDFLAGS="-Wl,-O1" and LDFLAGS="-Wl,-O1 -Wl,--sort-common -z combreloc -Wl,--enable-new-dtags -Wl,--relax". Possible solution: filter LDFLAGS. Reproducible: Always Steps to Reproduce: 1 LDFLAGS="-Wl,-O1" emerge xen Actual Results: ld: unrecognized option '-Wl,-O1' ld: use the --help option for usage information make[1]: *** [common.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/xen-3.0.0-r1/work/xen-3.0-testing-20051206/xen/common' make: *** [/var/tmp/portage/xen-3.0.0-r1/work/xen-3.0-testing-20051206/xen/xen] Error 2 make: Leaving directory `/var/tmp/portage/xen-3.0.0-r1/work/xen-3.0-testing-20051206/xen' !!! ERROR: app-emulation/xen-3.0.0-r1 failed. Expected Results: successful compile Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-archck5-ar0 i686) ================================================================= System uname: 2.6.14-archck5-ar0 i686 Unknown CPU Typ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 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.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -pipe -fomit-frame-pointer -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -pipe -fomit-frame-pointer -O2 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.ngi.it http://mirror.switch.ch/mirror/gentoo/" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -z combreloc -Wl,--enable-new-dtags -Wl,--relax" LINGUAS="it en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/system/portage_overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac acl acpi alsa arts artswrappersuid audiofile avi bash-completion berkdb bzip2 cdparanoia cdr crypt cups curl dbus dvd dvdr emboss exif expat fam fbsplash firefox flac foomaticdb ftp gcj gd gdbm gif glut gphoto2 gtk gtk2 hal idn ieee1394 imagemagick imlib jabber java joystick jpeg junit kde lcms libg++ libwww lm_sensors logrotate mad matroska mikmod mmx mmxext mng mp3 mpeg msn musicbrainz ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pcre pdflib perl png ppds python qt quicktime readline real recode rtc sdl skey spell sse ssl svg tcpd tdl truetype truetype-fonts type1-fonts udev unicode usb v4l2 visualization vlm vorbis win32codecs wxwindows xine xml2 xscreensaver xv zlib linguas_it linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET
setting LDFLAGS is technically unsupported, if you are going to file a bug with them on, please supply a patch.
LDFLAGS="-Wl,-O1 -Wl,--sort-common" are not LDFLAGS per se, LDFLAGS="-O1 --sort-common" are. The former are linker options passed by gcc to ld, works for most apps; the latter are proper LDFLAGS, unfortunately not understood by most packages. Anyway, neither of them is really supported in Gentoo. *** This bug has been marked as a duplicate of 114783 *** *** This bug has been marked as a duplicate of 114783 ***