still confused by kernel compile msg, "sizeof(struct x86cpu_device_id)=12 ..."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i'm just getting back to trying to figure out what's happening with
a simple kernel configure and build on my 64-bit ubuntu system, and
can't believe no one else is running into this issue.

  with the current "git pull" of linus' tree, and a really boring
configuration, the build eventually fails trying to build a module as
follows:

FATAL: arch/x86/crypto/ghash-clmulni-intel: 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

  one solution is to simply select that feature as built-in rather
than modular. at that point, i get another similar error elsewhere:

FATAL: arch/x86/kvm/kvm-intel: 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

  fine, so make *that* built-in, only to get:

FATAL: drivers/ata/acard-ahci: sizeof(struct pci_device_id)=28 is not
a modulo of the size of section __mod_pci_device_table=64.
Fix definition of struct pci_device_id in mod_devicetable.h
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [sub-make] Error 2

  what's going on here? it's been a couple releases since i built a
kernel for this box, and i've never seen this before. it looks like a
structure packing issue. my gcc version is:

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


rday

-- 

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

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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux