Opened 4 years ago
#20363 new defect
building kernel modules on a multiarch host fails
Reported by: | Claudio Laurita | Owned by: | |
---|---|---|---|
Component: | installer | Version: | VirtualBox 6.1.22 |
Keywords: | kernel modules build | Cc: | |
Guest type: | other | Host type: | Linux |
Description
In the Makefile-header.gmk of the three actual kernel modules, the BUILD_TARGET_ARCH_DEF variable, that reflect in BUILD_TARGET_ARCH, the actually used one, is set by the shell command $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) But on a multiarch environment is perfectly sane having a 32 bit version of dpkg-architecture, even if running a 64 bit kernel or building for a 64 bit kernel installed but not running at the moment of building. In such a case, the build fails because BUILD_TARGET_ARCH is set to i686. Maybe it's a bug in dpkg, but please consider using a different method to find the target kernel architecture. Regards Claudio