allow 32-bit module build on 64-bit host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dkms
If you attempt to build a 32-bit module in a 32-bit chroot on a 64-bit buildd host, you will encounter build errors such as these:
ld: Relocatable linking with relocations from format elf64-x86-64 (/var/lib/
Note that dkms_common.
+ echo Building for architecture i686
Building for architecture i686
+ ARCH=-a i686
[...]
+ echo Building initial module for 2.6.32-22-generic
Building initial module for 2.6.32-22-generic
+ dkms build -m compat-
We need to instruct the kernel Makefile to use the 32-bit toolchain on the build host, which can be done with the attached patch.
tags: | added: patch |
Changed in dkms (Ubuntu): | |
status: | New → Incomplete |
I'm not convinced this patch is correct. What if you are building an i686 kernel? You shouldn't be applying i386 in that scenario.