Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171670 - app-emulation/xen-tools-3.0.2-r4 doesn't compile w/ linux-headers-2.6.20
Summary: app-emulation/xen-tools-3.0.2-r4 doesn't compile w/ linux-headers-2.6.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-03-21 11:28 UTC by Boyd Stephen Smith Jr.
Modified: 2007-08-26 23:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boyd Stephen Smith Jr. 2007-03-21 11:28:28 UTC
>>> Starting src_compile
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-vnc --enable-sdl --build=x86_64-pc-linux-gnu
Install prefix    /usr
BIOS directory    //usr/share/xen/qemu
binary directory  //usr/bin
Manual directory  //usr/share/man
Source path       /var/tmp/paludis/app-emulation/xen-tools-3.0.2-r4/work/xen-3.0.2/tools/ioemu
C compiler        gcc
make              make
host CPU          amd64
host big endian   no
target list       target-i386-dm
gprof enabled     no
static build      no
VNC support       no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
FMOD support      no
make -j5 --no-print-directory -C tools
Xen CHECK-BUILD  Wed Mar 21 06:25:25 CDT 2007
Checking check_python: OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK
cc1: note: obsolete option -I- used, please use -iquote instead
cc1: note: obsolete option -I- used, please use -iquote instead
ld: warning: i386:x86-64 architecture of input file `bootsect.o' is incompatible with i386 output
cc1: note: obsolete option -I- used, please use -iquote instead
cc1: note: obsolete option -I- used, please use -iquote instead
mbootpack.c:45:22: error: asm/page.h: No such file or directory
ld: warning: i386:x86-64 architecture of input file `setup.o' is incompatible with i386 output
make[2]: *** [mbootpack.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [build] Error 2
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:

Actual Results:  
emerge fails in src_compile.

Expected Results:  
emerge succeeds.

$ emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r3 x86_64 Dual Core AMD Opteron(tm) Processor 275
Gentoo Base System version 1.12.9
Timestamp of tree: Wed, 21 Mar 2007 08:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O3 -ftracer -funit-at-a-time -funswitch-loops -fprefetch-loop-arrays -ggdb -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/php/apache1-php5/ext-active/ /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"
CXXFLAGS="-march=opteron -O3 -ftracer -funit-at-a-time -funswitch-loops -fprefetch-loop-arrays -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/var/packages/x86_64-pc-linux-gnu/opteron"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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://10.0.0.2/gentoo-portage"
USE="X a52 aac acl acpi akode alsa amd64 amr apm arts asf async audiofile bash-completion berkdb bidi bitmap-fonts bl browserplugin bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt cscope css cups dbus dga directfb dri dts dv dvb dvd dvdr dvdread edl eds elf emboss encode esd fam fame fbcon ffmpeg firefox flac foomaticdb fortran fuse gd gdbm gif gimp gmp gnutls gphoto2 gpm gs gssapi gstreamer gtk gtk2 guile hal howl iconv idn ieee1394 ifp imagemagick imlib ipv6 isdnlog java javascript jbig jpeg junit kde kqemu krb4 lcms ldap lesstif libg++ live lm_sensors logitech-mouse lzo mad matroska midi mikmod mjpeg mng mod modplug motif mozilla mp3 mpeg mplayer multiuser musepack musicbrainz ncurses new-login nls nolvm1 nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openntpd oss pam pam_chroot pcre pda pdf perl png postgres ppds pppd python qt3 qt4 quicktime rar rdesktop readline reflection rtc samba sasl sblive scanner screen sdl session shout slp smp sndfile snmp speex spell spl ssl stream subtitles svg syslog tcltk tcpd tetex tga theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd visualization vlm vorbis vorbis-psy wmf x264 xanim xcb xcomposite xine xinerama xml xml2 xorg xosd xpm xprint xscreensaver xv xvid zlib" ALSA_CARDS="emu10k" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Boyd Stephen Smith Jr. 2007-03-21 11:34:45 UTC
app-emulation/xen-tools-3.0.2-r2 and -r3 still fail because of -Werror / enum values not handled in a switch, which leaves me (at least) with no available xen-tools.
Comment 2 Chuck Remes 2007-04-20 21:00:52 UTC
This bug has just bitten me too. It's clearly due to <asm/page.h> not being exported to /usr/include/asm. As of the latest version I could find for 32-bit x86 (linux-headers-2.6.20-r4) there is a patch to specifically exclude the export of page.h.

Clearly xen-tools (and mbootpack which is causing our problem here) compiles cleanly on other distros so they must be exporting that file (and perhaps others) to userland. If the gentoo maintainers don't want to export it, does anyone have a suggestion for how this can be fixed for the xen-tools package?
Comment 3 Micheal Marineau (RETIRED) gentoo-dev 2007-04-21 07:51:52 UTC
(In reply to comment #2)
> This bug has just bitten me too. It's clearly due to <asm/page.h> not being
> exported to /usr/include/asm. As of the latest version I could find for 32-bit
> x86 (linux-headers-2.6.20-r4) there is a patch to specifically exclude the
> export of page.h.
> 
> Clearly xen-tools (and mbootpack which is causing our problem here) compiles
> cleanly on other distros so they must be exporting that file (and perhaps
> others) to userland. If the gentoo maintainers don't want to export it, does
> anyone have a suggestion for how this can be fixed for the xen-tools package?
> 

If possible try the latest ebuilds (for 3.0.4) from my overlay at http://overlays.gentoo.org/svn/dev/marineam/xen/ (can be fetched via layman as marineam-xen). This is the version that will be going into portage soon, as soon as I resolve a few issues with hvm guests. 3.0.4 is quite a bit better than 3.0.2
Comment 4 Luca Lesinigo 2007-08-20 12:43:56 UTC
On hardened/amd64 everything compiles ok with the ebuilds currently in portage:
linux-headers-2.6.21
xen-sources-2.6.16.52
xen-tools-3.0.4_p1
xen-3.0.4_p1
Comment 5 Micheal Marineau (RETIRED) gentoo-dev 2007-08-26 23:51:34 UTC
Sounds like >=3.0.4 is happy, closing.