Skip to contentSkip to conversation

anyone else getting "sizeof(struct x86cpu_device_id)" errors compiling kernel?

DISCUSSION Robert P. J. Day 1 participant 1 message Apr 24, 2013

lore
Share & tools
lore
#0 lore raw

for the first time in a while, i'm compiling the current git pull of
the kernel source on my ubuntu system and, for a number of modules, i'm getting:

Building modules, stage 2.
MODPOST 1943 modules
FATAL: arch/x86/kvm/kvm-amd: sizeof(struct x86cpu_device_id)=12 is not a modulo of the size of section __mod_x86cpu_device_table=32. Fix definition of struct x86cpu_device_id in mod_devicetable.h make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [sub-make] Error 2

i already deselected a couple of crypto modules that produced that but it's clear there are a number of modules that are going to cause this grief.

i've never seen this before and i'm about to dig into it, but anyone
else tripped over this and know the workaround?

this is on a 64-bit ubuntu system, with:

$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
...

it looks like something related to packed structures but that's just a guess right now.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================