Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149428 - app-emulation/xen compiles code in src_install()
Summary: app-emulation/xen compiles code in src_install()
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 09:02 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2006-10-20 00:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xen fails in compile phase with LDFLAGS="-s" (app-emulation:xen-3.0.2:20060929-075518.log,61.00 KB, text/plain)
2006-09-29 00:58 UTC, Charlie Shepherd (RETIRED)
Details
Xen compiles nothing in the install phase (xen.log,8.11 KB, text/plain)
2006-09-29 00:59 UTC, Charlie Shepherd (RETIRED)
Details
Full xen-3.0.2 compilation (xen.log,70.69 KB, text/plain)
2006-09-29 03:26 UTC, Ioannis Aslanidis (RETIRED)
Details
emerge xen log (app-emulation:xen-3.0.2:20060929-103552.log,205.37 KB, text/plain)
2006-09-29 03:40 UTC, Charlie Shepherd (RETIRED)
Details
emerge xen log (xen.log,72.67 KB, text/plain)
2006-09-29 03:55 UTC, Charlie Shepherd (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-28 09:02:57 UTC
app-emulation/xen will not compile with the following LDFLAGS

-Wl,-O1 -Wl,--sort-common -s :

nm: /var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/xen-syms: no symbols
No valid symbol.


-Wl,-z,now :

ld: unrecognized option '-Wl,-z,now'

Probably will not compile with any LDFLAGS.

Is it possible to have the xen ebuild automatically filtering out LDFLAGS?
Comment 1 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-28 09:12:02 UTC
Compiles fine here with LDFLAGS='-Wl,-O1 -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -Wl,-z,now'
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-28 09:18:49 UTC
Bug is reproducible: https://forums.gentoo.org/viewtopic-t-485836.html

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Thu, 28 Sep 2006 12:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs distcc distlocks fixpackages metadata-transfer sandbox sfperms sign strict usersandbox"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ http://gentoo.blueyonder.co.uk http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl http://ftp.du.se/pub/os/gentoo"
LANG="en_US.UTF8"
LC_ALL="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,-z,now"
LINGUAS="en es el"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout 45"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac aalib acpi alsa amuled asf audiofile automount background bash-completion bitmap-fonts bittorrent blender-game bluetooth bootsplash browserplugin bzip2 bzlib c++ caps cddb cdinstall cdio cdparanoia cdr cdrom chroot clamav cli crypt ctype cups curl cursors dga dio directfb dlloader dri dv dvd dvdr dvdread elibc_glibc encode erandom escreen ethereal exif fam fastcgi fbcon fbdev fbsplash ffmpeg firefox flac flash fortran ftp gd gif gimp glib gmail gmailtimestamps gmp gphoto2 gpm graphviz gstreamer gtk gtk2 hal iconv icq imagemagick imlib2 input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k junit kde kernel_linux lame lcms libg++ linguas_el linguas_en linguas_es live lm_sensors mad matroska md5sum memlimit mmap mmx mmx2 mmxext mng mp3 mpeg mpeg2 mplayer msn nas ncurses network nforce2 nls nocd nptl nptlonly ntfs ogg openal opengl pam pcre perl php pic png posix ppds pppd python quicktime readline recode reflection rtc samba sdl session sms speex spl sse sse2 ssl svg svga syslog szip tcpd thunderbird tiff truetype truetype-fonts ttf type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_radeon video_cards_vesa videos vorbis win32codecs wma wmf xcomposite xine xinerama xml xorg xpm xprint xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-28 09:34:51 UTC
Well, the first one looks like binutils issue to me. 

-Wl,-z,now - you shouldn't use this anyway, but it's more like flag-o-matic.eclass failing to convert it to raw LDFLAGS, maybe confused by that -s in -s -Wl,-z,now?
Comment 4 SpanKY gentoo-dev 2006-09-28 09:58:54 UTC
no real info here ... i'd even go as far as saying having -s in LDFLAGS is stupid as portage will strip the binaries for you

i see no value in filtering -s at all in any ebuild
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-28 10:29:26 UTC
Removing the -s works for xen and xen-utils removes the 'no symbols' error.

Still, as you noticed, the '-Wl,' aren't being removed correctly.
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-28 10:32:20 UTC
Further info:

19:30 <@deathwing00> SpanKY: notice that the ld error happens at install stage, not at compilation stage
19:30 <@Flameeyes> and there LDFLAGS is not set to raw-ldflags :P
Comment 7 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-28 10:37:49 UTC
Understanding that -s strips symbols and that exactly stripping the symbols causes the compilation error is one issue.

The other issue is that the kernel module is compiled in src_install instead of src_compile.
Comment 8 SpanKY gentoo-dev 2006-09-28 10:54:24 UTC
then xen is broken ... it should not be compiling code in src_install()
Comment 9 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 00:58:05 UTC
Errr, I'm not seeing any compilation in the install phase, and it fails with LDLFAGS="-s" in the compile phase. Attached logs will verify this.
Comment 10 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 00:58:49 UTC
Created attachment 98356 [details]
Xen fails in compile phase with LDFLAGS="-s"
Comment 11 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 00:59:31 UTC
Created attachment 98357 [details]
Xen compiles nothing in the install phase
Comment 12 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-29 03:26:15 UTC
Created attachment 98365 [details]
Full xen-3.0.2 compilation

Well, here it does compile. How about you try to emerge xen instead of running ebuild xen install? Can you also post your emerge --info?

make -C /var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/common
make[3]: Entering directory `/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/common'
gcc -O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-generic -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-default -msoft-float -g -D__XEN__ -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-generic -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-default -msoft-float -g -D__XEN__ -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-generic -I/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/include/asm-x86/mach-default -msoft-float -g -D__XEN__ -c kernel.c -o kernel.o
ld -Wl,-O1 -Wl,--sort-common -Wl,-z,now       -m elf_i386   -m elf_i386   -m elf_i386 -r -o built_in.o acm_ops.o bitmap.o dom0_ops.o domain.o elf.o event_channel.o grant_table.o kernel.o keyhandler.o lib.o memory.o multicall.o page_alloc.o rangeset.o sched_bvt.o sched_sedf.o schedule.o softirq.o string.o symbols.o trace.o timer.o vsprintf.o xmalloc.o
ld: unrecognized option '-Wl,-O1'
ld: use the --help option for usage information
make[3]: *** [built_in.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/common'
make[2]: *** [/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/common/built_in.o] Error 2
make[2]: Leaving directory `/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/arch/x86'
make[1]: *** [/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen/xen] Error 2
make[1]: Leaving directory `/var/tmp/portage/xen-3.0.2/work/xen-3.0.2/xen'
make: *** [install-xen] Error 2

!!! ERROR: app-emulation/xen-3.0.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  xen-3.0.2.ebuild, line 68:   Called die

!!! install failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

... done!
Comment 13 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 03:38:10 UTC
emerge --info:

Portage 2.1.2_pre1-r4 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4.20060329-r0, 2.6.18-rc4-viper i686)
=================================================================
System uname: 2.6.18-rc4-viper i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 28 Sep 2006 19:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r3, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache collision-protect confcache distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict stricter userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/initng /usr/local/overlays/xgl-coffee /usr/local/overlays/pkgcore /usr/portage/local/layman/liquidx /usr/portage/local/layman/vmware /usr/portage/local/layman/initng /usr/portage/local/layman/hanno-xgl"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X aac acl acpi alsa amd amuled ansi apache2 arts asf audacious bash-completion bzip2 cap ccache cdda cddb cdinstall cdparanoia cdr cdrom cgi chroot ck-plus cracklib crypt css cups curl curlwrappers dbus dhcp dillo dio directfb djbfft dnd dri dv dvdread edl elibc_glibc encode erandom exif ext-png ext-zlib extensions fastcgi fbcon fbsplash ffmpeg firefox flash fortify fpx geoip gif gimp gimpprint ginac glgd glibc-compat20 glibc-omitfp glitz glut gmp gmtfull gnuplot gpm graphviz gs gsl gtk gtk2 hal hardenedphp hbci hdf iconv icq ide idl image imap imlib imlib2 infopipe initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_provide initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded innodb input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 irda irmc j2ee jabber javacomm javamail javascript jbig jboss jce jms jmx joystick jpeg jpeg2k jta jython kakasi kde kdehiddenvisibility kdenewldflags kdexdeltas kerberos kernel_linux kqemu krb4 latex lcms leim libclamav libdsk libgd libgda libsamplerate libwww linguas_en linguas_en_GB live lua lzo lzw m17n-lib mad maildir matroska mbox mcal mdb migemo mime mixer mjpeg mmap mmx mmxext mono mozcalendar mozdevelop mozsvg mozxmlterm mp3 mpeg mpi mplayer msn mule multislot music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf network neural nis nls no-old-linux nomalloccheck nowin nptl nptlonly ntlm ntpl oav objc ocaml offensive ogg oggvorbis openal opengl oscar ospfapi pam parse-clocks pcap pcntl pcre pdf perl pertty pg-hier pg-intdatetime pg-vacuumdelay php physfs pic plotutils png portaudio povray ppds pri print procmail python qa qt3 qt4 quicktime quotas quotes readline real reiser4 reiserfs risky rogue rplay sdl seamonkey semanticfix session sftplogging shared sharedmem slp smime sndfile snortsam socks5 sox sse sse-filters sse2 ssl suspend2 svga symlink sysvipc szip tcltk tcpd tga theora tidy tk transcode truetype uim unicode usb userland_GNU v4l v4l2 vcd vda video_cards_i810 videos virus-scan vorbis wddx webdav wifi win32codecs winbind wma wmf wxwindows xanim xchatdccserver xchattext xcomposite xface xgetdefault xine xml xmlreader xmlrpc xmlwriter xmms xorg xosd xpm xprint xrandr xscreensaver xsettings xv xvid xvmc yahoo yaz yp yv12 zaptel zeo zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 14 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 03:40:00 UTC
Created attachment 98368 [details]
emerge xen log
Comment 15 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 03:55:04 UTC
Created attachment 98370 [details]
emerge xen log

Sorry, previous emerge was from an overlay, with a patch from Bug 144032. It shouldn't make any difference, but heres a log with the ebuild currently in Portage
Comment 16 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-29 04:25:46 UTC
Running with MAKEOPTS="-j1" solves the issue for me. I tried disabling distcc, but it didn't help. It fails with MAKEOPTS="-j5" and with MAKEOPTS="-j2" in here.
Comment 17 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-09-29 04:27:44 UTC
(In reply to comment #16)
> Running with MAKEOPTS="-j1" solves the issue for me. I tried disabling distcc,
> but it didn't help. It fails with MAKEOPTS="-j5" and with MAKEOPTS="-j2" in
> here.
> 

Ignore this comment. Though it now does compile stuff in common/ and drivers/, it still tries to compile in src_install.
Comment 18 Andrew Ross (RETIRED) gentoo-dev 2006-10-20 00:43:55 UTC
Please try app-emulation/xen-3.0.2-r1 and re-open this bug if you still see compilation occurring in the install phase.