You are not logged in.

#1 2011-07-18 17:32:34

glenn69
Member
Registered: 2007-09-26
Posts: 125

Virtualbox module won't compile?

I upgraded Virtualbox from 4.0.10 to 4.0.12 and I am receiving an error when trying to compile the module by /etc/rc.d/vboxdrv setup.

The contents of /var/log/vbox-install.log are :

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.6.1/include -I/usr/src/linux-2.6.39-ARCH/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/2.6.39-ARCH/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
In file included from /tmp/vbox.0/include/VBox/types.h:34:0,
                 from /tmp/vbox.0/linux/../SUPDrvInternal.h:39,
                 from /tmp/vbox.0/linux/SUPDrv-linux.c:37:
/tmp/vbox.0/include/iprt/types.h:87:30: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2

Where do I start to repair this?

Thank You

Last edited by glenn69 (2011-07-18 17:57:37)

Offline

#2 2011-07-18 17:55:26

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Virtualbox module won't compile?

3.0.12? this version is way to old to support 2.6.39 kernel


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-07-18 17:57:19

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

Sorry typo...should read from 4.0.10 to 4.0.12.  I will edit the original post.

Thanks

Offline

#4 2011-07-18 18:00:49

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

I tried downgrading back to Virtualbox 4.0.10 and the error remains, however that version was working fine prior to the upgrade attempt.

Offline

#5 2011-07-18 18:02:34

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Virtualbox module won't compile?

yes, try to reinstall kernel26-headers


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2011-07-18 18:24:20

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

Re-installing the headers did not help.

Last edited by glenn69 (2011-07-18 18:26:14)

Offline

#7 2011-07-18 18:28:29

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

There was aproblem with glibc versions after 2.12.1-2 breaking virtualbox.  I tried downgrading glibc, but binutils and gcc-libs depend upon it.  gcc depends upon gcc-libs...and so on.

Offline

#8 2011-07-18 19:54:33

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

I downgraded to glibc 2.12.1-2 and am still having the same problem.  That was not a fix.

Offline

#9 2011-07-18 19:57:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Virtualbox module won't compile?

Any relationship to post #340 from this thread:  https://bbs.archlinux.org/viewtopic.php … 73#p962073


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2011-07-18 20:10:00

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

I had a breakthrough, although I'm not sure what it means...other than Virtualbox now runs again.

Here's what I did:

downgraded glibc to 2.12.1-2 ( and any other files with dependencies.  gcc, gcc-libs, binutils )

still had no luck compiling module

then I downgraded back to Virtualbox 4.0.10 again with the downgraded glibc

..and it worked.  Hopefully someone can make some sense of it for the rest of us.

Summation: Virtualbox 4.0.12 did not compile with glibc at 2.12.1-2 or at its most current version
                   Virtualbox 4.0.10 would not compile with a current version of glibc ( >2.12.1-2)
                   ..but VB 4.0.10 did compile fine with glibc downgraded to 2.12.1-2

Last edited by glenn69 (2011-07-18 20:13:00)

Offline

#11 2011-07-18 23:25:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Virtualbox module won't compile?

...and this is only for i686?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#12 2011-07-19 06:44:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Virtualbox module won't compile?

@glenn69 you are way of. The current modules compile fine with latest gcc/glibc. There is some inconsistency in your system related to kernel headers.

linux/autoconf.h is from an old kernel but i don't get it why is using this include instead of include/generated/autoconf.h

did you mess with /usr/src/linux-2.6.39-ARCH ?


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2011-07-20 06:33:28

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Virtualbox module won't compile?

I am getting a similar error. I just installed a fresh arch32 (updated) in virtualbox (4.04, OSX) and running the supplied virtualbox guest additions installer threw up the error. I haven't tried with the latest iso from community (4.08).

Offline

#14 2011-07-20 08:22:35

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Virtualbox module won't compile?

Just for info, the installation was OK for kernel26-lts. I had problems with the vboxvideo driver so in the end I opted to just use pacman -S virtualbox-archlinux-additions. All is fine.

Offline

#15 2011-07-20 08:38:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Virtualbox module won't compile?

stryder wrote:

... I had problems with the vboxvideo driver so in the end I opted to just use pacman -S virtualbox-archlinux-additions. All is fine.

@stryder - that IS the preferred method.  I don't understand why you would try to circumvent pacman in the first place.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#16 2011-07-20 10:12:47

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Virtualbox module won't compile?

@graysky - yeah. Have been using the virtualbox iso for a long long time - never had problems till now. And the provided additions are only for kernel26 and not kernel26-lts. So it is not a complete solution.

Offline

#17 2011-07-20 16:40:32

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: Virtualbox module won't compile?

wonder wrote:

@glenn69 you are way of. The current modules compile fine with latest gcc/glibc. There is some inconsistency in your system related to kernel headers.

linux/autoconf.h is from an old kernel but i don't get it why is using this include instead of include/generated/autoconf.h

did you mess with /usr/src/linux-2.6.39-ARCH ?

I have not made any changes.  Any suggestions of how I could find out where the inconsistency is?

Thank you

Offline

#18 2011-10-14 20:02:00

steff
Member
Registered: 2009-01-08
Posts: 57

Re: Virtualbox module won't compile?

Same problem here, tried creating a symlink linux/autonf.h --> ../generated/autoconf.h with no results. Any ideas?

Offline

Board footer

Powered by FluxBB