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

Robert P. J. Day rpjday at crashcourse.ca
Wed Apr 24 14:15:33 EDT 2013


  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

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

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



More information about the Kernelnewbies mailing list