VirtualBox

Opened 8 years ago

Closed 8 years ago

#14777 closed defect (obsolete)

Opensuse 13.2 - .VirtualBox-5.0-5.0.8_103449_openSUSE132-1.x86_64 dos not install

Reported by: jcdole Owned by:
Component: installer Version: VirtualBox 5.0.8
Keywords: Makefile:185: *** Error: Cc:
Guest type: Windows Host type: Linux

Description

VirtualBox-5.0-5.0.0 install fine

VirtualBox-5.0-5.0.8 does not install.

Kernel :

linux-cexh:~ # uname -a
Linux linux-cexh 3.16.7-29-desktop #1 SMP PREEMPT Fri Oct 23 00:46:04 UTC 2015 (6be6a97) x86_64 x86_64 x86_64 GNU/Linux
linux-cexh:~ # 

OS Release :

NAME=openSUSE
VERSION="13.2 (Harlequin)"
VERSION_ID="13.2"
PRETTY_NAME="openSUSE 13.2 (Harlequin) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/opensusepensuse:13.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse" 

Installed kernel :

linux-cexh:~ # zypper se -i -s  kernel
Loading repository data...
Reading installed packages...

S | Name                           | Type    | Version         | Arch   | Repository          
--+--------------------------------+---------+-----------------+--------+---------------------
i | devel_kernel                   | pattern | 20141007-5.1    | x86_64 | openSUSE-13.2-Update
i | kernel-default-devel           | package | 3.16.7-29.1     | x86_64 | openSUSE-13.2-Update
i | kernel-desktop                 | package | 3.16.7-29.1     | x86_64 | openSUSE-13.2-Update
i | kernel-desktop-devel           | package | 3.16.7-29.1     | x86_64 | openSUSE-13.2-Update
i | kernel-devel                   | package | 3.16.7-29.1     | noarch | openSUSE-13.2-Update
i | kernel-firmware                | package | 20141122git-5.1 | noarch | openSUSE-13.2-Update
i | kernel-macros                  | package | 3.16.7-29.1     | noarch | openSUSE-13.2-Update
i | kernel-source                  | package | 3.16.7-29.1     | noarch | openSUSE-13.2-Update
i | kernel-syms                    | package | 3.16.7-29.1     | x86_64 | openSUSE-13.2-Update
i | kernel-xen-devel               | package | 3.16.7-29.1     | x86_64 | openSUSE-13.2-Update
i | nfs-kernel-server              | package | 1.3.0-4.2.1     | x86_64 | openSUSE-13.2-Oss   
i | patterns-openSUSE-devel_kernel | package | 20141007-5.1    | x86_64 | openSUSE-13.2-Update
linux-cexh:~ #

Erreur from virtualbox ( first 60 lignes )

linux-cexh:~ # cat /var/log/vbox-install.log
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.16.7-29-desktop/build modules
make[1]: Entering directory `/usr/src/linux-3.16.7-29-obj/x86_64/desktop'
make -C /usr/src/linux-3.16.7-29-obj/x86_64/desktop \
KBUILD_SRC=/usr/src/linux-3.16.7-29 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.16.7-29/Makefile \
modules
/usr/src/linux-3.16.7-29/arch/x86/Makefile:121: stack-protector enabled but compiler support broken
/usr/src/linux-3.16.7-29/arch/x86/Makefile:136: CONFIG_X86_X32 enabled but no binutils support
/usr/src/linux-3.16.7-29/Makefile:663: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[3]: gcc: Command not found
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-3.16.7-29/scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem  -I/usr/src/linux-3.16.7-29/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.16.7-29/include -Iinclude -I/usr/src/linux-3.16.7-29/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.16.7-29/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.16.7-29/include/linux/kconfig.h   -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -O2 -fstack-protector -fasynchronous-unwind-tables -g -pg -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h   -I/lib/modules/3.16.7-29-desktop/build/include   -I/tmp/vbox.0/   -I/tmp/vbox.0/include   -I/tmp/vbox.0/r0drv/linux   -I/tmp/vbox.0/vboxdrv/   -I/tmp/vbox.0/vboxdrv/include   -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -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/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
/usr/src/linux-3.16.7-29/scripts/Makefile.build:273: recipe for target '/tmp/vbox.0/linux/SUPDrv-linux.o' failed
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
/usr/src/linux-3.16.7-29/Makefile:1359: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:195: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
Makefile:298: recipe for target 'vboxdrv' failed
make: *** [vboxdrv] Error 2
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.16.7-29-desktop/build modules
make[1]: Entering directory `/usr/src/linux-3.16.7-29-obj/x86_64/desktop'
make -C /usr/src/linux-3.16.7-29-obj/x86_64/desktop \
KBUILD_SRC=/usr/src/linux-3.16.7-29 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.16.7-29/Makefile \
modules
/usr/src/linux-3.16.7-29/arch/x86/Makefile:121: stack-protector enabled but compiler support broken
/usr/src/linux-3.16.7-29/arch/x86/Makefile:136: CONFIG_X86_X32 enabled but no binutils support
/usr/src/linux-3.16.7-29/Makefile:663: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[3]: gcc: Command not found
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-3.16.7-29/scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem  -I/usr/src/linux-3.16.7-29/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.16.7-29/include -Iinclude -I/usr/src/linux-3.16.7-29/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.16.7-29/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.16.7-29/include/linux/kconfig.h   -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -O2 -fstack-protector -fasynchronous-unwind-tables -g -pg -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h   -I/lib/modules/3.16.7-29-desktop/build/include   -I/tmp/vbox.0/   -I/tmp/vbox.0/include   -I/tmp/vbox.0/r0drv/linux   -I/tmp/vbox.0/vboxdrv/   -I/tmp/vbox.0/vboxdrv/include   -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -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/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
/usr/src/linux-3.16.7-29/scripts/Makefile.build:273: recipe for target '/tmp/vbox.0/linux/SUPDrv-linux.o' failed
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
/usr/src/linux-3.16.7-29/Makefile:1359: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:195: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
Makefile:298: recipe for target 'vboxdrv' failed
make: *** [vboxdrv] Error 2
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.16.7-29-desktop/build modules
make[1]: Entering directory `/usr/src/linux-3.16.7-29-obj/x86_64/desktop'
make -C /usr/src/linux-3.16.7-29-obj/x86_64/desktop \
KBUILD_SRC=/usr/src/linux-3.16.7-29 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.16.7-29/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)

Change History (7)

comment:1 by Frank Mehnert, 8 years ago

First, it seems that 'gcc' is not installed on your system. Please install it (together with 'make') to be able to compile the host kernel modules. Also your current running kernel has the version '3.16.7-29-desktop' while the versions of the kernel packages has the version 3.16.7-29.1. This seems to be not correct. Make sure to update all your kernel / kernel-devel packages, reboot and make sure that you actually start the most recent kernel. The execute /sbin/vboxconfig for recompiling your kernel modules.

comment:2 by Frank Mehnert, 8 years ago

FWIW, I just installed the 5.0.8 package to openSUSE 13.2 without any problems.

comment:3 by jcdole, 8 years ago

If you read carefully the top of my ticket you will see :

VirtualBox-5.0-5.0.0 install fine

VirtualBox-5.0-5.0.8 does not install.


So VirtualBox-5.0-5.0.0 I can compile kernel modules. I confirm that every things is installed.

It seems that VirtualBox-5.0-5.0.8 installer does not read env variables the same way as VirtualBox-5.0-5.0.0, but I am not a professional in system.

Any test and report result that I can do for you ?

Last edited 8 years ago by jcdole (previous) (diff)

comment:4 by Frank Mehnert, 8 years ago

And installing 5.0.0 still works on your host? Sorry for asking but I want to be sure that even with your current system (which might got some updates in the meantime) you are able to install the 5.0.0 package and that during this installation the kernel modules are recompiled.

Also, what happens if you enter

gcc -v

on the command line?

comment:5 by jcdole, 8 years ago

linux-cexh:~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-4.8 --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) 
linux-cexh:~ # 
Last edited 8 years ago by Frank Mehnert (previous) (diff)

comment:6 by Michael Thayer, 8 years ago

Although you said that you are not a professional, what you wrote in comment:3 above about environment variables suggests that you do have an idea about what is happening. Would you be able to investigate a bit further? So far we do not know of anyone else with this problem, but you might also help if you can find other cases by searching. Thank you!

comment:7 by Frank Mehnert, 8 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use