[vbox-dev] Error in building latest SVN

Larry Finger Larry.Finger at lwfinger.net
Thu Feb 7 17:41:16 PST 2008

Klaus Espenlaub wrote:
> Larry Finger wrote:
>> That got me part way. Now I get
>> kmk[3]: Entering directory `/home/finger/vbox/src/VBox/HostDrivers'
>> kBuild: Compiling vboxdrv - /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c
>> /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c:46: error: expected ‘=’,
>> ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’
>> /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c:88: error: expected ‘=’,
>> ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’
>> kmk[3]: ***
>> [/home/finger/vbox/out/linux.amd64/release/obj/src/VBox/HostDrivers/vboxdrv/linux/SUPDrv-linux.mod.o]
>> Error 1
> This looks like the linux header files in your install are somewhat 
> different to what we have ever seen. Could you check what needs to be 
> included to get __attribute_used__ defined? The 2.4.24 sources I have 
> access to define that in include/linux/compiler-gcc*.h, though they mark 
> it as deprecated. Do the includes you have provide a definition?

I'm running with Linus's git kernel tree - 2.6.24-gitxxxx, which is likely most of the way to

In the new kernel, __attribute_used__ is not defined anywhere. It is truly deprecated in 2.6.25.



More information about the vbox-dev mailing list