| Summary: | app-emulation/xen-tools LDFLAGS="-s" breaks compilation | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Brandon <gentoo-bugs> |
| Component: | Current packages | Assignee: | Gentoo Xen Devs <xen> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | wschlich |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Emerge log | ||
Created attachment 143234 [details]
Emerge log
The same thing also happened when I tried to emerge app-emulation:xen-tools-3.1.2 before app-emulation:xen-tools-3.2.0 was available. On my system, I was able to fix this by commenting out my LDFLAGS entry in my make.conf file. My LDFLAGS entry was: LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" I simply commented out the entire line for the xen-tools emerge process. (In reply to comment #3) Thank you, that worked. I commented that line out and was able to complete the emerge of xen. Remove "-s" from your LDFLAGS. Portage strips all binaries anyway, and stripping all object files unnecessarily breaks things. |
Emerge of xen-tools fails. Reproducible: Always Steps to Reproduce: 1. emerge =app-emulation/xen-tools-3.2.0 Actual Results: make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-3.2.0/work/xen-3.2.0/tools/xenstat/libxenstat' make[2]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-3.2.0/work/xen-3.2.0/tools/xenstat/xentop' gcc -O2 -fomit-frame-pointer -m32 -march=i686 -DNDEBUG -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -DGCC_PRINTF -Wall -Werror -I../../../tools/xenstat/libxenstat/src -DHOST_Linux -Wl,-O1 -Wl,--sort-common -s -L../../../tools/xenstat/libxenstat/src xentop.c -lxenstat -lncurses -o xentop ../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_collect_xen_version': xenstat.c:(.text+0x514): undefined reference to `xc_version' xenstat.c:(.text+0x537): undefined reference to `xc_version' ../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_collect_vcpus': xenstat.c:(.text+0x646): undefined reference to `xc_vcpu_getinfo' ../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_get_node': xenstat.c:(.text+0x756): undefined reference to `xc_physinfo' xenstat.c:(.text+0x83e): undefined reference to `xc_domain_getinfolist' xenstat.c:(.text+0xa19): undefined reference to `xs_read' ../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_uninit': xenstat.c:(.text+0xb37): undefined reference to `xc_interface_close' xenstat.c:(.text+0xb42): undefined reference to `xs_daemon_close' ../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_init': xenstat.c:(.text+0xb99): undefined reference to `xc_interface_open' xenstat.c:(.text+0xba3): undefined reference to `xs_daemon_open_readonly' xenstat.c:(.text+0xbdf): undefined reference to `xc_interface_close' collect2: ld returned 1 exit status make[2]: *** [xentop] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-3.2.0/work/xen-3.2.0/tools/xenstat/xentop' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-3.2.0/work/xen-3.2.0/tools/xenstat' make: *** [all] Error 2 make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-3.2.0/work/xen-3.2.0/tools' * * ERROR: app-emulation/xen-tools-3.2.0 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * xen-tools-3.2.0.ebuild, line 137: Called die * The specific snippet of code: * emake -C tools ${myopt} || die "compile failed" * The die message: * compile failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/app-emulation:xen-tools-3.2.0:20080211-035322.log'. * Expected Results: A completed emerge. Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686) ================================================================= System uname: 2.6.23-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Mon, 11 Feb 2008 03:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dri fortran gdbm gpm iconv isdnlog midi mudflap ncurses nls nptl nptlonly openmp pae pam pcre perl pppd python readline reflection screen session slang spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS