Joined: 18 Nov 2013
|Posted: Thu Jun 18, 2015 11:57 am Post subject: problem with sys-kernel/gentoo-sources-4.0.5 and VBox
Today I've upgraded to the latest stable kernel version which for amd64 arch is 4.0.5.
As always, after upgrading the kernel I issued "emerge @module-rebuild" and have encountered an error upon rebuilding x11-drivers/xf86-video-virtualbox.
the error output is as follows:
/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)
I believe it has something to do with some kernel configuration yet I don't know where to start looking can somebody help?
please let me know if you need more info (complete build.log is too big for pastebin...)
Edit 1: just found this: https://forums.gentoo.org/viewtopic-p-7719548.html?sid=7ed99e2dc7a7da45eb421531945645df
seems like upgrading to unstable GCC might be the only solution...
Edit 2: I can confirm that upgrading to GCC 4.9.2 fixes the problem now, however, I noticed that on the linked post the guys are using kernel 3.19 whereas I used 3.18 (before the upgrade) and on kernel 3.18 there was no problem rebuilding x11-drivers/xf86-video-virtualbox.
So, I'm still pretty sure that it has something to do with kernel configuration rather that solely with GCC