app-emulation/kvm-85 fails to build with an error that kvm support in the kernel cannot be detected. The symlink to /usr/src/linux is set and points to the actual kerne I have kvm-84 running and and compiling this version against the samke kernel works fine. Reproducible: Always Steps to Reproduce: 1. emerge kvm Actual Results: * checking miscfile checksums ;-) ... [ ok ] /usr/portage/app-emulation/kvm/kvm-85.ebuild: line 61: kernel_is: command not found /usr/portage/app-emulation/kvm/kvm-85.ebuild: line 65: linux_chkconfig_present: command not found * Please enable KVM support in your kernel, found at: * * Virtualization * Kernel-based Virtual Machine (KVM) support * * or enable the 'modules' USE flag. * * ERROR: app-emulation/kvm-85 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * kvm-85.ebuild, line 72: Called die * The specific snippet of code: * die "KVM support not detected!" * The die message: * KVM support not detected! Expected Results: Successful installation Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r1-gambit x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r1-gambit-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-glibc2.2.5 Timestamp of tree: Tue, 28 Apr 2009 06:30:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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="-march=nocona -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en de" MAKEOPTS="-j8" PKGDIR="/mnt/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="acl amd64 automap bash-completion berkdb bzip2 cli cracklib crypt dri fam fortran glibc-omitfp gpm iconv isdnlog jpeg json midi mmap mmx mmxext mudflap multilib ncurses nls nptl nptlonly offensive openmp pam pcre perl png pppd python readline reflection session slang snmp sockets spl sse sse2 ssl sysfs tcpd threads threadsafe tokenizer unicode urandom vim-syntax xml xorg zip 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="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 proxy proxy_http proxy_connect" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
These are the flags used: app-emulation/kvm-85 [84] USE="ncurses -alsa -esd -gnutls -havekernel -modules -pulseaudio -sdl -test -vde" 0 kB
Me too on this. FWIW: ted linux # cat .config | grep KVM CONFIG_HAVE_KVM=y CONFIG_KVM=y CONFIG_KVM_INTEL=m # CONFIG_KVM_AMD is not set
kvm-85.ebuild appears to be missing "linux-mod" from the "inherit" line. The "kernel_is" and "linux_chkconfig_present" functions are both defined in the linux-info.eclass which is inherited by the linux-mod.eclass. I can not test or make a patch at this time, but it is an easy change. On Line 6, Change: inherit eutils flag-o-matic toolchain-funcs to: inherit eutils flag-o-matic toolchain-funcs linux-mod
can confirm bug and fix. just fixed it myself like that, was about to submit bug report on it :)
Already fixed in 85-r1
whoops, and close.
Not fixed for me with 85-r1 Calculating dependencies... done! [ebuild U ] app-emulation/kvm-85-r1 [84] USE="ncurses -alsa -esd -gnutls -havekernel -modules -pulseaudio -sdl -test -vde" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-emulation/kvm-85-r1 * qemu-kvm-devel-85.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * kvm-patches-20090218.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] /usr/portage/app-emulation/kvm/kvm-85-r1.ebuild: line 61: kernel_is: command not found /usr/portage/app-emulation/kvm/kvm-85-r1.ebuild: line 65: linux_chkconfig_present: command not found * Please enable KVM support in your kernel, found at: * * Virtualization * Kernel-based Virtual Machine (KVM) support * * or enable the 'modules' USE flag. * * ERROR: app-emulation/kvm-85-r1 failed. * Call stack: * ebuild.sh, line 48: Called pkg_setup * kvm-85-r1.ebuild, line 72: Called die * The specific snippet of code: * die "KVM support not detected!" * The die message: * KVM support not detected! * * 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/die.env'. *
Not fixed in the tree, the -r1 ebuild doesn't contain the "linux-mod" inheritance.
Sorry, I misread that as being kvm detection failed (which was fixed before in -r1). This is now fixed for real.