Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 217081

Summary: app-emulation/virtualbox-modules-1.5.6 fails to compile. Missing autoconf.h or auto.conf
Product: Gentoo Infrastructure Reporter: Patrick <zynaptix>
Component: BugzillaAssignee: Markus Ullmann (RETIRED) <jokey>
Status: RESOLVED INVALID    
Severity: normal CC: swapon
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick 2008-04-10 02:52:01 UTC
Both of the files exist. I tried running 'make oldconfig && make prepare'.
Tried with the gentoo-sources-2.6.24-r4 and vanilla-sources-2.6.25_rc8.

Reproducible: Always

Steps to Reproduce:
1.emerge virtualbox-modules
2.
3.

Actual Results:  
>>> Emerging (1 of 1) app-emulation/virtualbox-modules-1.5.6 to /
 * vbox-kernel-module-src-1.5.6.tar.gz RMD160 SHA1 SHA256 size ;-) ...    [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking vbox-kernel-module-src-1.5.6.tar.gz ;-) ...                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.24-gentoo-r4/build
 * Found sources for kernel version:
 *     2.6.24-gentoo-r4
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-1.5.6.tar.gz to /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv ...
 * Preparing vboxdrv module
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv modules
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r4'
Makefile:1551: ..tmp_kallsyms1.o.cmd: Permission denied
Makefile:1551: ..tmp_kallsyms2.o.cmd: Permission denied
Makefile:1551: ..tmp_vmlinux1.cmd: Permission denied
Makefile:1551: ..tmp_vmlinux2.cmd: Permission denied
Makefile:1551: .vmlinux.cmd: Permission denied
Makefile:1551: .vmlinux.o.cmd: Permission denied
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (    \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/.tmp_versions ; rm -f /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv
make[2]: stat: include/config/auto.conf: Permission denied
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2  -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args  -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer      -I/usr/src/linux/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/ -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITHOUT_IDT_PATCHING -DUSE_NEW_OS_INTERFACE_FOR_MM   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/SUPDrv-linux.o /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/SUPDrv-linux.c
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/.SUPDRVShared.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2  -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args  -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer      -I/usr/src/linux/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/ -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITHOUT_IDT_PATCHING -DUSE_NEW_OS_INTERFACE_FOR_MM   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDRVShared)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/SUPDRVShared.o /var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/SUPDRVShared.c
/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/SUPDrv-linux.c:1: error: code model 'kernel' not supported in the 32 bit mode
/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/SUPDrv-linux.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/SUPDRVShared.c:1: error: code model 'kernel' not supported in the 32 bit mode
/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/SUPDRVShared.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv/SUPDRVShared.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/work/vboxdrv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r4'
make: *** [vboxdrv] Error 2
 * 
 * ERROR: app-emulation/virtualbox-modules-1.5.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3119:  Called linux-mod_src_compile
 *             environment, line 2391:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"               CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}  ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/2.6.24-gentoo-r4/build all
 * 
 * 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/virtualbox-modules-1.5.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/temp/environment'.
 * 

 * Messages for package app-emulation/virtualbox-modules-1.5.6:

 * 
 * ERROR: app-emulation/virtualbox-modules-1.5.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3119:  Called linux-mod_src_compile
 *             environment, line 2391:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"               CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}  ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/2.6.24-gentoo-r4/build all
 * 
 * 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/virtualbox-modules-1.5.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.5.6/temp/environment'.

Expected Results:  
Compile

emerge --info
Portage 2.1.5_rc2 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Celeron(R) M processor 1.30GHz
Timestamp of tree: Mon, 07 Apr 2008 19:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -falign-functions=64"
CHOST="i686-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/env.d /etc/env.d/java/ /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -falign-functions=64 -fvisibility-inlines-hidden"
DISTDIR="/usr/portagedistfiles"
FEATURES="ccache distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.public.fix.fi/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--hash-style=both"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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://trumpetti.atm.tut.fi/gentoo-portage"
USE="X a52 aac accessibility acl acpi administrator alsa aoss bash-completion bluetooth bzip2 cairo ccache cdr cli color-console cracklib crypt dbus device-mapper divx dri dts dvb dvd dvdnav dvdr dvdread eds emboss encode esd evo fam fastcgi ffmpeg firefox flac gdbm gif glib glibc-omitfp gpm gstreamer hal i8x0 iceweasel iconv injection innodb isdnlog jpeg kdehiddenvisibility kerberos lame mad madwifi matroska midi mikmod mmx moznopango mp3 mp4 mpeg mudflap mysql mysqli ncurses nptl nptlonly ogg opengl openmp oss pam pcmcia pcre pdf perl php png pppd python qt3 qt3support qt4 query-browser quicktime rar readline realmedia reflection reiserfs rt73usb ruby sdl session skins sockets spell spl sse sse2 ssl suhosin svg symlink tcpd theora tiff truetype truetype-fonts type1 type1-fonts unicode usb v4l video4linux vlc vorbis wifi win32codecs wma wmp wxwindows x264 x86 xml xorg xv xvid zip zlib" ALSA_CARDS="intel8x0" 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" 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" DVB_CARDS="dibusb-usb1 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alessio Cassibba (X-Drum) 2008-04-10 20:32:26 UTC
(In reply to comment #0)
Hi, 
are you running emerge as normal user or as root?

i noticed "userpriv" in your FEATURES
> FEATURES="ccache distlocks metadata-transfer nodoc parallel-fetch sandbox
> sfperms strict unmerge-orphans userfetch userpriv usersandbox"

the user running emerge is not able to access some files:
> make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r4'
> Makefile:1551: ..tmp_kallsyms1.o.cmd: Permission denied
> Makefile:1551: ..tmp_kallsyms2.o.cmd: Permission denied
> Makefile:1551: ..tmp_vmlinux1.cmd: Permission denied
> Makefile:1551: ..tmp_vmlinux2.cmd: Permission denied
> Makefile:1551: .vmlinux.cmd: Permission denied
> Makefile:1551: .vmlinux.o.cmd: Permission denied

Comment 2 Patrick 2008-04-10 21:25:54 UTC
I was running emerge as root but removing userpriv from from FEATURES helped and it compiled without any problems.
Thanks.