Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550202 - x11-drivers/xf86-video-virtualbox-4.3.28 with linux-4.0.0 /lib/modules/4.0.0-gentoo/build/include/linux/compiler.h:201:29: error: can’t set ‘no_instrument_function’ attribute after definition
Summary: x11-drivers/xf86-video-virtualbox-4.3.28 with linux-4.0.0 /lib/modules/4.0.0-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://forums.gentoo.org/viewtopic-p...
Whiteboard:
Keywords:
: 556212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-23 08:20 UTC by Alex Buell
Modified: 2015-10-22 03:00 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
environment (environment,150.71 KB, text/plain)
2015-05-23 08:24 UTC, Alex Buell
Details
emerge --info (emerge_info.txt,5.84 KB, text/plain)
2015-05-23 15:46 UTC, Martin Mokrejš
Details
emerge --info (info.log,4.94 KB, text/plain)
2015-05-23 17:17 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2015-05-23 08:20:04 UTC
CXX RuntimeGuestR0 - common/checksum/alt-md5.cpp
x86_64-pc-linux-gnu-g++ -c -O2 -nostdinc -iwithprefix include -include /lib/modules/4.0.0-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.26/work/VirtualBox-4.3.26/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.26/work/VirtualBox-4.3.26/include/VBox/VBoxGuestMangling.h -Ir0drv/linux -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime -Iinclude -I/lib/modules/4.0.0-gentoo/build/include -I/lib/modules/4.0.0-gentoo/build/include/asm-i386/mach-default -I/lib/modules/4.0.0-gentoo/build/include/asm-x86/mach-default -I/lib/modules/4.0.0-gentoo/build/include/drm -I/lib/modules/4.0.0-gentoo/build/arch/x86/include -I/lib/modules/4.0.0-gentoo/build/arch/x86/include/asm/mach-default -I/lib/modules/4.0.0-gentoo/build/arch/x86/include/uapi -I/lib/modules/4.0.0-gentoo/build/arch/x86/include/generated -I/lib/modules/4.0.0-gentoo/build/arch/x86/include/generated/uapi -I/lib/modules/4.0.0-gentoo/build/include/uapi -I/lib/modules/4.0.0-gentoo/build/include/generated/uapi -I/lib/modules/4.0.0-gentoo/build/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/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.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime/common/checksum/alt-md5.cpp
In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/mem.h:31,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime/common/alloc/alloc.cpp:34:
/lib/modules/4.0.0-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.0-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.0-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.26/work/VirtualBox-4.3.26/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/heap.h:30,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime/common/alloc/heapoffset.cpp:32:
/lib/modules/4.0.0-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.0-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)
                             ^
In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/md5.h:29,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime/common/checksum/alt-md5.cpp:51:
/lib/modules/4.0.0-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.0-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)
                             ^
/lib/modules/4.0.0-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.0-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.26/work/VirtualBox-4.3.26/include/iprt/types.h:116:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/include/iprt/heap.h:30,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/src/VBox/Runtime/common/alloc/heapsimple.cpp:32:
/lib/modules/4.0.0-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.0-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.0-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: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/alloc/alloc.o] Error 1
kmk: *** Waiting for unfinished jobs....
kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/alloc/heapoffset.o] Error 1
kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/checksum/alt-md5.o] Error 1
kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.26/work/VirtualBox-4.3.26/out/linux.amd64/release/obj/RuntimeGuestR0/common/alloc/heapsimple.o] Error 1
kmk: *** Exiting with status 2


Reproducible: Always
Comment 1 Alex Buell 2015-05-23 08:24:51 UTC
Created attachment 403804 [details]
environment
Comment 2 Martin Mokrejš 2015-05-23 14:23:15 UTC
Same here with gentoo-sources-4.0.4 and gcc 4.8.4.
Comment 3 Martin Mokrejš 2015-05-23 15:46:51 UTC
Created attachment 403816 [details]
emerge --info
Comment 4 Alex Buell 2015-05-23 17:17:09 UTC
Created attachment 403824 [details]
emerge --info
Comment 5 Zac Medico gentoo-dev 2015-06-03 21:36:24 UTC
According to the corresponding forum thread, you need gcc-4.9 to compile it.
Comment 6 Markus Fischer 2015-06-18 08:51:50 UTC
Same here with gentoo-sources-4.0.5 and gcc-4.8.4, but I'd rather not update to the not yet stable gcc-4.9.
Comment 7 Kostas 2015-06-18 14:56:14 UTC
Same here, gentoo-sources-4.0.5 and gcc-4.8.4.
Comment 8 Vincent Van Hollebeke 2015-06-19 21:53:59 UTC
Same for me, with kernel 4.0.5 and gcc 4.8.4.

I don't want to switch to gcc 4.9 while it is not declared stable. Other packages could be impacted
Comment 9 Vincent Van Hollebeke 2015-06-19 21:57:59 UTC
If the last stable kernel version is now >4.0.0 and so virtualbox drivers do not compile, It makes a more serious problem that before
Comment 10 Vincent Van Hollebeke 2015-06-20 06:39:43 UTC
I have made some investigations :

The fix (https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206643) is only applied to gcc 4.9.x, you can't find it in the last 4.8.x versions

Gentoo Developers, do you think possible to make it a patch to the actual stable version (4.8.2) ?

Vincent
Comment 11 Markus Fischer 2015-06-26 13:09:22 UTC
Now I have the same issue with gentoo-sources-3.18.16 and gcc-4.8.4. The last working kernel for me was 3.18.12, but that version is no longer in portage.
Comment 12 Thomas Haschka 2015-07-24 09:36:17 UTC
I conform this! Happens over here on an all fresh gentoo install. kernel 4.0.5 gcc 4.8.4!
Comment 13 Brian Evans (RETIRED) gentoo-dev 2015-07-30 19:46:06 UTC
*** Bug 556212 has been marked as a duplicate of this bug. ***
Comment 14 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-01 22:34:58 UTC
same here, all 4.3.28, 4.3.30, and 5.0.0

gcc (Gentoo Hardened 4.8.4 p1.6, pie-0.6.1) 4.8.4
Linux gato 4.0.8-hardened #1 SMP PREEMPT Mon Jul 20 13:13:41 EDT 2015 x86_64 Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz GenuineIntel GNU/Linux

a gcc check for 4.9 or higher would sure have saved me some time for this known issue.
Comment 15 Kostas 2015-08-10 13:05:33 UTC
Any news here? This is a really annoying bug and I am hesitant in upgrading to gcc 4.9.2, because of its ~ status.
Comment 16 George Tarasov 2015-09-26 23:34:42 UTC
Same error for =app-emulation/virtualbox-guest-additions-4.3.28.

For current portage tree (stable) only this combination is built without errors:
1. gcc-4.8.5
2. gentoo-sources-3.14.48
3. virtualbox-guest-addition-4.3.28

Trying other kernel version (3.18.16, 4.0.5) gives the same error on no_instrument_function attribute.
Comment 17 Rick Farina (Zero_Chaos) gentoo-dev 2015-10-22 02:23:23 UTC
I updated the ebuild to dep on >=gcc-4.9.0 but I honestly forget how to check if that is the active gcc version and since it's getting late you get at least a partial fix for this moment.
Comment 18 Rick Farina (Zero_Chaos) gentoo-dev 2015-10-22 03:00:26 UTC
okay, added check to pkg-setup thanks to a helpful reminder from Hello71 on irc

if [ "${MERGE_TYPE}" != "binary" ]; then
  version_is_at_least 4.9 $(gcc-version) || die "Please set gcc 4.9 or higher as active in gcc-config to build ${PN}"
fi