Error-Message: make[2]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r1/work/xen-3.0.2/tools/firmware/acpi' make[2]: Entering directory `/var/tmp/portage/xen-tools-3.0.2-r1/work/xen-3.0.2/tools/firmware/vmxassist' gcc -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DDEBUG -DTEXTADDR=0x000D0000 -I. -I../../../tools/libx c -fno-builtin -O2 -msoft-float -D__ASSEMBLY__ -DDEBUG -DTEXTADDR=0x000D0000 -c head.S gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I. -I../../../tools/libxc -o gen gen.c gcc -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DDEBUG -DTEXTADDR=0x000D0000 -I. -I../../../tools/libx c -fno-builtin -O2 -msoft-float -c vm86.c gcc -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DDEBUG -DTEXTADDR=0x000D0000 -I. -I../../../tools/libx c -fno-builtin -O2 -msoft-float -c setup.c gcc -DNDEBUG -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -DDEBUG -DTEXTADDR=0x000D0000 -I. -I../../../tools/libx c -fno-builtin -O2 -msoft-float -c util.c In file included from /usr/include/features.h:346, from /usr/include/stdint.h:26, from vm86.h:24, from vm86.c:21: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory In file included from /usr/include/features.h:346, from /usr/include/stdint.h:26, from ./vm86.h:24, from util.h:24, from util.c:22: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[2]: *** [util.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /usr/include/features.h:346, from /usr/include/stdint.h:26, from vm86.h:24, from setup.c:20: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[2]: *** [vm86.o] Error 1 make[2]: *** [setup.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r1/work/xen-3.0.2/tools/firmware/vmxassist' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r1/work/xen-3.0.2/tools/firmware' make: *** [all] Error 2 make: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r1/work/xen-3.0.2/tools' !!! ERROR: app-emulation/xen-tools-3.0.2-r1 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile xen-tools-3.0.2-r1.ebuild, line 77: Called die emerge --info Portage 2.1.1_pre1-r2 (default-linux/amd64/2006.0/no-multilib, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r8 x86_64) ================================================================= System uname: 2.6.16-gentoo-r8 x86_64 AMD Opteron(tm) Processor 240 Gentoo Base System version 1.12.1 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59d CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/sha re/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/tex mf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/media/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://harpo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="de en_GB" MAKEOPTS="-j4" 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="/media/localportage/marx-overlay /media/localportage/gentoo-de /media/localportage/migration" SYNC="rsync://rsync.migmedia.lan/gentoo-portage" USE="amd64 7zip X X509 a52 aac aalib acl acpi alsa amd apache2 arts artswrappersuid async avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo cddb cdparanoia cdr chipcard cli commercial crosscompile crypt css cups curl dbus dga directfb djbfft dmx dnsdb dpms dri dts dv dvb dv d dvdr dvdread eds emboss encode enscript erandom exif fame fb fbcon fbdev ffmpeg firefox foomaticdb fortran freetype gatos gif gimp glibc-omitfp glitz glx gnome gpm gs gstreamer gtk2 gzip hal hbci iconv ide imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mous e input_devices_wacom ipv6 isdnlog jabber jack-tmpfs jikes jp2 jpeg jpeg2k kcal kde kdeenablefinal kdepim kerberos kipi koffice-plugin kqemu linux threads-tls lm_sensors lzo lzw lzw-tiff mad maildir mime mixer monkey mov mozsvg mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mudflap ncurses network nfs nls nosrc nptl nptlonly nsplugin ntlm ofx ogg oggvorbis ooo-kde openexr opengl openssl pam pcre pda pdf perl php pic png portaudio povray ppds pppd python qt qt3 qt4 quicktime rdesktop readline reflection rle samba scanner screen sdl session smime sndfile snmp speedo spell spl ssl subver sion svg sysfs szip tcpd theora tidy tiff transcode truetype-fonts type1 type1-fonts uml unicode usb v4l v4l2 vcd vhosts video_cards_ati video_car ds_fbdev video_cards_v4l video_cards_vesa vim vnc vorbis wifi wmf wv wxgtk1 x264 xcomposite xfs xine xml xmlrpc xorg xpm xv xvid xvmc yaz zeroconf zlib elibc_glibc kernel_linux linguas_de linguas_en_GB userland_GNU video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS As far as I understand: the searched /usr/include/gnu/stubs-32.h doesn't exists on a AMD64/no-multilip system. I see 2 possibilities: 1. mask xen(|-tools) in this profile or 2. make the (xen-tools) ebuild aware of the 64bit-only env.
error: gnu/stubs-32.h: No such file or directory
It looks like xen-tools isn't taking your 64-bit CFLAGs and passing them to GCC, as its trying to compile as march=i686. From reading the ebuild, it tries to read the custom-cflags, and, if that fails, it unsets CFLAGS. Maybe that would be causing the issue?
Xen includes hardcoded CFLAGS in many files, so we default to those, unless the user sets USE=custom-cflags, in which case we try to remove the hardcoded settings and use $CFLAGS instead.
(In reply to comment #3) Wouldn't it be a bug-fix / work-around to set those USE-flag 'custom-cflags' as default in the profile: default-linux/amd64/2006.0/no-multilib ?
Well, it seems like that would be the logical thing to do, we just need someone to give it a test (I don't have a no-multilib amd64 box here to test on:()
In that case, be aware that mplayer and grub ebuilds also have a custom-cflags USE flag.
Yeah, it would probably be best just to put it in /etc/portage/package.use just for xen-tools.
We can only build vmxassist, if we're on x86 or we support the x86 ABI. I added code to the ebuild to disable vmxassist, if these requirements are not met.
Two problems, the first is a only a typo in xen-tools-3.0.2-r3. sed: can't read /var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2tools/firmware/Makefile: No such file or directory of course xen-3.0.2tools should be xen-3.0.2/tools The line causing trouble... sed -i -e "/SUBDIRS += vmxassist/d" "${S}"tools/firmware/Makefile The second problem happens after changing the above line. Compile fails while looking for vmxassist.bin Bios checksum at: 0x7FFF Current checksum: 0x00 Calculated checksum: 0x9A Setting checksum. ls -l VGABIOS-lgpl-latest.cirrus.debug.bin -rw-r--r-- 1 root root 32768 Sep 7 21:23 VGABIOS-lgpl-latest.cirrus.debug.bin make[2]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware/vgabios' make[2]: Entering directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware/acpi' gcc -o acpigen -Wall -Werror -Wstrict-prototypes -Wdeclaration-after-statement -I. -I../../libxc acpi_build.c acpi_dsdt.c acpi_facs.c acpi_fadt.c acpi_gen.c acpi_madt.c acpi_rsdt.c ./acpigen acpi.bin make[2]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware/acpi' make[2]: Entering directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware/hvmloader' make[2]: *** No rule to make target `../vmxassist/vmxassist.bin', needed by `roms.h'. Stop. make[2]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware/hvmloader' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools/firmware' make: *** [all] Error 2 make: Leaving directory `/var/tmp/portage/xen-tools-3.0.2-r3/work/xen-3.0.2/tools' !!! ERROR: app-emulation/xen-tools-3.0.2-r3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile xen-tools-3.0.2-r3.ebuild, line 121: Called die
(In reply to comment #9) > Two problems, the first is a only a typo in xen-tools-3.0.2-r3. The same typo is in xen-tools-3.0.2-r4. And yes, fixing it yelds the same problem (vmxassist fails). Furthermore, the stub-32.h error persists even with USE=custom-cflags for xen-tools. Portage 2.1.1-r1 (default-linux/amd64/2006.1/no-multilib, gcc-4.1.1, glibc-2.4-r4, 2.6.16.19 x86_64) ================================================================= System uname: 2.6.16.19 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Gentoo Base System version 1.12.6 Last Sync: Thu, 16 Nov 2006 23:00:02 +0000 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: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -Os -pipe" CHOST="x86_64-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="-march=k8 -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_GB.utf8" LINGUAS="en_GB" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa arts asf avi branded bzip2 cracklib crypt dri dvd dvdr elibc_glibc ffmpeg gif imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 java jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux linguas_en_GB mad mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam perl png python qt3 rdesktop readline sdl ssl tcltk threads tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis xml xorg zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #10) > (In reply to comment #9) > > Two problems, the first is a only a typo in xen-tools-3.0.2-r3. > > The same typo is in xen-tools-3.0.2-r4. And yes, fixing it yelds the same > problem (vmxassist fails). Furthermore, the stub-32.h error persists even with > USE=custom-cflags for xen-tools. > this patch fixes problem: http://matthieu.desile.free.fr/depotoir/gentoo/local/app-emulation/xen-tools/files/xen-tools-3.0.2-hvmloader-amd64-no-multilib.patch