Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439466 - app-emulation/qemu-1.2.0 fails to build
Summary: app-emulation/qemu-1.2.0 fails to build
Status: RESOLVED DUPLICATE of bug 439374
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 01:40 UTC by Gustavo Zacarias
Modified: 2012-10-24 15: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 Gustavo Zacarias 2012-10-24 01:40:05 UTC
app-emulation/qemu-1.2.0 fails to build miserably after the latest commit:

>>> Verifying ebuild manifests
>>> Running pre-merge checks for app-emulation/qemu-1.2.0
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.6.2-gentoo/build
 * Found sources for kernel version:
 *     3.6.2-gentoo
 * Checking for suitable kernel configuration options...
 *   If you have an AMD CPU, you must enable KVM_AMD in your kernel configuration.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.

>>> Emerging (1 of 1) app-emulation/qemu-1.2.0
 * qemu-kvm-1.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                [ ok ]
>>> Unpacking source...
>>> Unpacking qemu-kvm-1.2.0.tar.gz to /var/tmp/portage/app-emulation/qemu-1.2.0/work
>>> Source unpacked in /var/tmp/portage/app-emulation/qemu-1.2.0/work
 * ERROR: app-emulation/qemu-1.2.0 failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-emulation/qemu-1.2.0/work/qemu-1.2.0' doesn't exist

Fix part 1 is simple.... S="${WORKDIR}/${MY_P}" (or go back to the non-kvm version)
Fix part 2... missing patches!

Do you guys use repoman and test stuff these days?
And why going back and forth with the kvm version?
There's not even a knob to use the normal one now for people that just use it to emulate completely different architectures (and yes i know -no-kvm fixes it, but it's a PITA if you never use kvm).


Reproducible: Always

Steps to Reproduce:
1. emerge qemu-1.2.0
Actual Results:  
Almost no cpu usage.

Expected Results:  
More cpu usage when building it.

emerge --info as usual, though it's completely irrelevant for this issue:

Portage 2.1.11.9 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.6.2-gentoo x86_64)
=================================================================
System uname: Linux-3.6.2-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_B940_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Wed, 24 Oct 2012 01:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar/ http://distfiles.gentoo.org/"
LANG="en_us.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es es_AR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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 a52 aac acl acpi adplug alsa amd64 amr apng applet artworkextra async audacious audiofile automount barcode bash-completion berkdb bittorrent bluetooth branding buttons bzip2 cairo caps cdda cddb cdparanoia cdr chardet cjk cli colord consolekit cracklib crypt cscope css cups cursors cxx dbus dia dirac djvu dri dts dv dvd dvdnav dvdr dvi eds emboss enca encode evo examples exif extras fam fasttrack fbcon fdt ffmpeg firefox flac fontconfig foomaticdb fortran fpx ftd2xx ftdi fts3 fuse g3dvl gd gdbm gif gimp gles2 glitz gnome gnome-keyring gnome-online-accounts gnutella gphoto2 gpm graphite graphviz gs gsf gstreamer gtk hpijs hpn icons iconv icu injection inkjar iproute2 ipv6 java javascript jbig jpeg jpeg2k lcms libkms libnotify lm_sensors lzo mad minizip mmx mng modules mp3 mp4 mpeg mpg123 mtp mudflap multilib musepack nautilus ncurses nfs nls nptl ntfsprogs numeric ogg openexr opengl openmp ots pam pango pcre pdf pidgin plotutils png pnm policykit postscript ppds pppd pulseaudio qemu qt3support qt4 readline samba scanner schroedinger sdl secure-delete session slp sna sndfile socialweb sound speex spell spice sqlite srt sse sse2 ssl startup-notification svg t1lib tcpd theora thesaurus threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi visualization vorbis vpx wavpack webkit wifi wmf wxwidgets x264 xcb xcomposite xml xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es es_AR" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="alpha arm cris i386 m68k microblaze microblazeel mips mips64 mips64el mipsel or32 ppc ppc64 ppcemb sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel or32 ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev intel vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Martin Jansa 2012-10-24 08:57:38 UTC
(In reply to comment #0)
> app-emulation/qemu-1.2.0 fails to build miserably after the latest commit:

see https://bugs.gentoo.org/show_bug.cgi?id=437824
Doug Goldstein said:
The ebuild isn't keyworded hence, don't use it or if you do there's no
support on any ARCH.

And there is more info about issues:
Looks like something wasn't updated in that refactoring
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/qemu/qemu-1.2.0.ebuild?r1=1.1&r2=1.2

 * ERROR: app-emulation/qemu-1.2.0 failed (prepare phase):
 *   The source directory '/tmp/tmpfs/portage/app-emulation/qemu-1.2.0/work/qemu-1.2.0' doesn't exist

jama ~ # ls /tmp/tmpfs/portage/app-emulation/qemu-1.2.0/work/
qemu-kvm-1.2.0

adding
S="${WORKDIR}/${MY_P}"
should fix that, but there is also missing patch
/usr/portage/app-emulation/qemu/files/qemu-1.2.0-fix-mipsen.patch

After removing this patch it builds but fails to install:
!!! dobin: /usr/bin/qemu-kvm does not exist
Comment 2 Gustavo Zacarias 2012-10-24 10:36:25 UTC
Ehhh ok, the previous one by Mike did work though.
One simple question, if the rework is not complete to the point it doesn't even begin to build, why commit it to the official tree?
I'm not looking for support here, just pointing to some very basic choices.
Comment 3 Martin Jansa 2012-10-24 10:47:28 UTC
(In reply to comment #2)
> Ehhh ok, the previous one by Mike did work though.
> One simple question, if the rework is not complete to the point it doesn't
> even begin to build, why commit it to the official tree?
> I'm not looking for support here, just pointing to some very basic choices.

Agreed, I've restored Mike's version in local tree until this one is fixed. Mike's version also works for my needs.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-24 15:43:02 UTC

*** This bug has been marked as a duplicate of bug 437824 ***
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-24 15:48:17 UTC

*** This bug has been marked as a duplicate of bug 439374 ***