Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268368 - app-emulation/kvm-85-r1 fails to compile
Summary: app-emulation/kvm-85-r1 fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 23:33 UTC by Michael Spiegle
Modified: 2009-05-12 16:48 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 Michael Spiegle 2009-05-02 23:33:10 UTC
Here is the relevant part of the compilation that fails:

  CC    x86_64-softmmu/extboot.o
  CC    x86_64-softmmu/i8254-kvm.o
  CC    x86_64-softmmu/gdbstub.o
  GEN   x86_64-softmmu/gdbstub-xml.c
  CC    x86_64-softmmu/exec.o
  CC    x86_64-softmmu/cpu-exec.o
  CC    x86_64-softmmu/host-utils.o
  CC    x86_64-softmmu/kqemu.o
  CC    x86_64-softmmu/translate-all.o
  CC    x86_64-softmmu/translate.o
  CC    x86_64-softmmu/tcg/tcg.o
  CC    x86_64-softmmu/tcg/tcg-runtime.o
  CC    x86_64-softmmu/qemu-kvm.o
  CC    x86_64-softmmu/fpu/softfloat-native.o
In function ‘memset’,
    inlined from ‘kvm_get_phys_ram_page_bitmap’ at /var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/qemu-kvm.c:1258:
/usr/include/bits/string3.h:82: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters
  CC    x86_64-softmmu/op_helper.o
  CC    x86_64-softmmu/helper.o
  CC    x86_64-softmmu/qemu-kvm-x86.o
  CC    x86_64-softmmu/kvm-tpr-opt.o
gcc  -I. -I.. -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/target-i386 -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu -MMD -MT qemu-kvm-helper.o -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__user= -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/tcg -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/tcg/x86_64 -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/fpu  -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/slirp -I /var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/../libkvm  -DCONFIG_X86 -O2 -g -fno-strict-aliasing -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls  -m64 -I /var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/kernel/include -c -o qemu-kvm-helper.o /var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/qemu-kvm-helper.c
  CC    x86_64-softmmu/disas.o
  CC    x86_64-softmmu/i386-dis.o
  CC    x86_64-softmmu/vl.o
  CC    x86_64-softmmu/gdbstub-xml.o
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c: In function ‘host_alarm_handler’:
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:1379: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
In file included from /var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:4044:
./qemu-options.h:424:1: error: unterminated argument list invoking macro "printf"
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c: In function ‘help’:
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:4055: warning: statement with no effect
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:4048: error: expected ‘;’ before string constant
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:4063: error: expected statement before ‘)’ token
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c: In function ‘alloc_mem_area’:
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:4379: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c: In function ‘main’:
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:5300: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:5696: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/vl.c:5715: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
make[2]: *** [vl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu/x86_64-softmmu'
make[1]: *** [subdir-x86_64-softmmu] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/kvm-85-r1/work/qemu-kvm-devel-85/qemu'
make: *** [qemu] Error 2
 * 
 * ERROR: app-emulation/kvm-85-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3319:  Called die
 * The specific snippet of code:
 *       emake qemu || die "emake qemu failed"
 *  The die message:
 *   emake qemu failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/kvm-85-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/kvm-85-r1/temp/environment'.


Reproducible: Always




# emerge --info
Portage 2.1.6.12 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 02 May 2009 22:30:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.llarian.net/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --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="X aac acl acpi aften alsa amd64 asf berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dts dv dvd dvdr dvdread emboss encode esd evo exif fam ffmpeg firefox flac fortran gdbm gif glib gnome gphoto2 gpm gstreamer gtk hal hdri iconv ipod isdnlog jpeg kde kerberos kvm lame ldap libnotify mad midi mikmod mmx mmxext mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg openexr opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vdpau vorbis wma x264 xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="proxy proxy_http dumpio 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" APACHE2_MPMS="event" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="dummy nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-04 18:44:04 UTC
What use flags are you attempting to build with?
Comment 2 Michael Spiegle 2009-05-05 20:27:32 UTC
(In reply to comment #1)
> What use flags are you attempting to build with?
> 

I'm using the following USE flags:

alsa esd ncurses sdl
Comment 3 Michael Spiegle 2009-05-12 16:48:46 UTC
It looks like it was a local system issue that caused this.  I've had a few other packages that were not compiling, so I did an emerge world in a loop overnight:

emerge -e world ; while true; do emerge --resume --skipfirst; sleep 1; done

and in the morning, all of my packages (including kvm) would compile properly.

Thanks for looking into this!