Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VirtualBox cannot emerge kernel driver any longer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Thu Jul 02, 2015 1:19 am    Post subject: VirtualBox cannot emerge kernel driver any longer Reply with quote

After updating to 4.0.5, I no longer am able to emerge the kernel module for VirtualBox.

Gentoo stable.

Code:

# gcc --version
gcc (Gentoo 4.8.4 p1.4, pie-0.6.1) 4.8.4


I'm doing:

Code:

# emerge -1 @module-rebuild


And I get the following errors:

Code:

x86_64-pc-linux-gnu-g++ -c -O2 -nostdinc -iwithprefix include -include /lib/modules/4.0.5-gentoo/build/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-sign-compare -fdiagnostics-show-option -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -include /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/VBox/VBoxGuestMangling.h -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-reorder-blocks -fno-asynchronous-unwind-tables -funit-at-a-time -Wno-sign-compare -fno-exceptions -fno-rtti -include /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/VBox/VBoxGuestMangling.h -Ir0drv/linux -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/src/VBox/Runtime -Iinclude -I/lib/modules/4.0.5-gentoo/build/include -I/lib/modules/4.0.5-gentoo/build/include/asm-i386/mach-default -I/lib/modules/4.0.5-gentoo/build/include/asm-x86/mach-default -I/lib/modules/4.0.5-gentoo/build/include/drm -I/lib/modules/4.0.5-gentoo/build/arch/x86/include -I/lib/modules/4.0.5-gentoo/build/arch/x86/include/asm/mach-default -I/lib/modules/4.0.5-gentoo/build/arch/x86/include/uapi -I/lib/modules/4.0.5-gentoo/build/arch/x86/include/generated -I/lib/modules/4.0.5-gentoo/build/arch/x86/include/generated/uapi -I/lib/modules/4.0.5-gentoo/build/include/uapi -I/lib/modules/4.0.5-gentoo/build/include/generated/uapi -I/lib/modules/4.0.5-gentoo/build/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release/obj/RuntimeGuestR0/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D__KERNEL__ -DMODULE -DIN_GUEST -DIN_GUEST_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL -DRT_NO_EXPORT_SYMBOL -DMODULE -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) -DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DIN_SUP_R0 -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/src/VBox/Runtime/common/checksum/alt-md5.cpp
In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/iprt/mem.h:31,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/src/VBox/Runtime/common/alloc/alloc.cpp:34:
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:201:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void data_access_exceeds_word_size(void)
                             ^
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:205:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void __read_once_size(const volatile void *p, void *res, int size)
                             ^
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:222:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void __write_once_size(volatile void *p, void *res, int size)
                             ^
In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/include/iprt/heap.h:30,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/src/VBox/Runtime/common/alloc/heapsimple.cpp:32:
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:201:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void data_access_exceeds_word_size(void)
                             ^
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:205:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void __read_once_size(const volatile void *p, void *res, int size)
                             ^
/lib/modules/4.0.5-gentoo/build/include/linux/compiler.h:222:29: error: can't set 'no_instrument_function' attribute after definition
 static __always_inline void __write_once_size(volatile void *p, void *res, int size)
                             ^
kmk_builtin_append -n "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.28/work/VirtualBox-4.3.28/out/linux.amd64/release/obj/RuntimeGuestR3Shared/r3/posix/utf8-posix.o.dep" "" "r3/posix/utf8-posix.cpp:" ""
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Jul 02, 2015 2:13 pm    Post subject: Reply with quote

You need GCC 4.9.2.
Back to top
View user's profile Send private message
ramdzet
n00b
n00b


Joined: 28 Feb 2015
Posts: 15

PostPosted: Thu Jul 02, 2015 4:06 pm    Post subject: Reply with quote

Buffoon wrote:
You need GCC 4.9.2.


I don't think so. I use GCC 4.8.4 and working fine.

Code:
gcc (Gentoo 4.8.4 p1.6, pie-0.6.1) 4.8.4
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Jul 02, 2015 4:18 pm    Post subject: Reply with quote

And what is your kernel version?
Back to top
View user's profile Send private message
ramdzet
n00b
n00b


Joined: 28 Feb 2015
Posts: 15

PostPosted: Thu Jul 02, 2015 5:19 pm    Post subject: Reply with quote

Buffoon wrote:
And what is your kernel version?


4.0.5 of course
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Jul 02, 2015 5:31 pm    Post subject: Reply with quote

In this thread same error was printed and the solution was GCC upgrade. https://forums.gentoo.org/viewtopic-p-7719548.html
Back to top
View user's profile Send private message
ramdzet
n00b
n00b


Joined: 28 Feb 2015
Posts: 15

PostPosted: Thu Jul 02, 2015 5:40 pm    Post subject: Reply with quote

Ouh, I realize that OP's gcc and mine is different

OP: gcc (Gentoo 4.8.4 p1.4, pie-0.6.1) 4.8.4
Mine: gcc (Gentoo 4.8.4 p1.6, pie-0.6.1) 4.8.4

So, what is the meaning of p1.? in front of gcc version? It has effect?

I just curios, I don't upgrade my gcc but never get that error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum