Greetings, I am trying to compile VirtualBox-5.0.4 source code. The host has these:- --CPU: AMD64 2 cores --OS BLFS linux, linux-4.2.1, gcc-4.2.1
make ends as shown below #----------------------------------------- /usr/src/linux-4.2.1/include/linux/compiler.h:201: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) ^ /usr/src/linux-4.2.1/include/linux/compiler.h:215: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 /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/iprt/types.h:116:0, from /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/iprt/heap.h:30, from /home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/common/alloc/heapsimple.cpp:32: /usr/src/linux-4.2.1/include/linux/compiler.h:201: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) ^ /usr/src/linux-4.2.1/include/linux/compiler.h:215: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: *** [/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/alloc.o] Error 1 The failing command: @g++ -c -O2 -nostdinc -iwithprefix include -include /usr/src/linux-4.2.1/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field- initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused- parameter -Wlogical-op -Wno-sign-compare -fdiagnostics-show-option -fno-stack- protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing - fno-common -include /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/VBox/SUPDrvMangling.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 /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/VBox/SUPDrvMangling.h - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/r0drv/linux - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/include - I/usr/src/linux-4.2.1/include -I/usr/src/linux-4.2.1/include/asm-i386/mach- default -I/usr/src/linux-4.2.1/include/asm-x86/mach-default - I/usr/src/linux-4.2.1/include/drm -I/usr/src/linux-4.2.1/arch/x86/include - I/usr/src/linux-4.2.1/arch/x86/include/asm/mach-default - I/usr/src/linux-4.2.1/arch/x86/include/uapi - I/usr/src/linux-4.2.1/arch/x86/include/generated - I/usr/src/linux-4.2.1/arch/x86/include/generated/uapi - I/usr/src/linux-4.2.1/include/uapi - I/usr/src/linux-4.2.1/include/generated/uapi -I/usr/src/linux-4.2.1/include - I/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/dtrace -I/home/linteg/vb504BUILD/VirtualBox-5.0.4/include - I/home/linteg/VB504/vb504BUILD/OUTvbox/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_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS - DRT_NO_EXPORT_SYMBOL -DMODULE -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) - DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DIN_SUP_R0 -Wp,- MD,/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/alloc.o.dep -Wp,- MT,/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/alloc.o -Wp,-MP -o /home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/alloc.o /home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/common/alloc/alloc.cpp kmk: *** Waiting for unfinished jobs.... kmk: *** [/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/heapsimple.o] Error 1 The failing command: @g++ -c -O2 -nostdinc -iwithprefix include -include /usr/src/linux-4.2.1/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field- initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused- parameter -Wlogical-op -Wno-sign-compare -fdiagnostics-show-option -fno-stack- protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing - fno-common -include /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/VBox/SUPDrvMangling.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 /home/linteg/vb504BUILD/VirtualBox-5.0.4/include/VBox/SUPDrvMangling.h - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/r0drv/linux - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime - I/home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/include - I/usr/src/linux-4.2.1/include -I/usr/src/linux-4.2.1/include/asm-i386/mach- default -I/usr/src/linux-4.2.1/include/asm-x86/mach-default - I/usr/src/linux-4.2.1/include/drm -I/usr/src/linux-4.2.1/arch/x86/include - I/usr/src/linux-4.2.1/arch/x86/include/asm/mach-default - I/usr/src/linux-4.2.1/arch/x86/include/uapi - I/usr/src/linux-4.2.1/arch/x86/include/generated - I/usr/src/linux-4.2.1/arch/x86/include/generated/uapi - I/usr/src/linux-4.2.1/include/uapi - I/usr/src/linux-4.2.1/include/generated/uapi -I/usr/src/linux-4.2.1/include - I/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/dtrace -I/home/linteg/vb504BUILD/VirtualBox-5.0.4/include - I/home/linteg/VB504/vb504BUILD/OUTvbox/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_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS - DRT_NO_EXPORT_SYMBOL -DMODULE -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) - DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DIN_SUP_R0 -Wp,- MD,/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/heapsimple.o.dep -Wp,- MT,/home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/heapsimple.o -Wp,-MP -o /home/linteg/VB504/vb504BUILD/OUTvbox/linux.amd64/release/obj/RuntimeR0Drv/common/alloc/heapsimple.o /home/linteg/vb504BUILD/VirtualBox-5.0.4/src/VBox/Runtime/common/alloc/heapsimple.cpp kmk: *** Exiting with status 2 #----------------------------------------- it appears to be a problem with the linux-4.2.1 kernel. I would be gratufl for some help ( for example if there are available patches to fix the build of VirtualBox-5.0.4 with linux-4.x kernel series). Thanks in advance. sincerely LuxInteg _______________________________________________ vbox-dev mailing list vbox-dev@virtualbox.org https://www.virtualbox.org/mailman/listinfo/vbox-dev