Summary: | linux-mod.eclass ignores configured kernel CROSS_COMPILE option | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luke-Jr <luke-jr+gentoobugs> |
Component: | Eclasses | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | floppym, gentoo |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=811600 https://github.com/gentoo/gentoo/pull/22225 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
I think this would happen with any out-of-tree kernel module. Is this still an issue? Yes So right now linux-info ignore GNUMakefile . I wrote a patch to address this. So, linux-info should not read GNUMakefile properly. Can you test again, I commited the new eclass 3 hours ago as of this writing. So hopefully,you'll have it on next sync. (In reply to Mike Pagano from comment #5) > So, linux-info should not read GNUMakefile properly. > > Can you test again, I commited the new eclass 3 hours ago as of this writing. > > So hopefully,you'll have it on next sync. Should not read / Should read This is an issue with the zfs-kmod ebuild itself, not the eclass (In reply to Luke-Jr from comment #7) > This is an issue with the zfs-kmod ebuild itself, not the eclass Nobody made any mention of zfs-kmod in this bug. The original bug summary mentioned net-firewall/xtables-addons. linux-mod_src_compile passes CROSS_COMPILE=${CHOST}- to make on the command line. Any definition of CROSS_COMPILE in GNUmakefile or Makefile will be overridden by the value on the command line. Removing this command line setting would cause plain "gcc" to be used on most sytems, and this would cause failures on systems with sys-devel/gcc[-native-symlinks]. linux-mod.eclass really was not designed to allow you to use a separate toolchain for kernel builds. Sorry, I mixed this up with the new bug I filed :( Ignore my zfs-kmod comments here. Please give this PR a try. https://github.com/gentoo/gentoo/pull/22225 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328b6c7b4f2f6f9ef5b053688af3272a314667ad commit 328b6c7b4f2f6f9ef5b053688af3272a314667ad Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2021-09-05 16:01:23 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-09-06 20:18:37 +0000 linux-mod.eclass: set CROSS_COMPILE in the environment This allows it to be overriden in local Makefiles. Closes: https://bugs.gentoo.org/550428 Closes: https://github.com/gentoo/gentoo/pull/22225 Signed-off-by: Mike Gilbert <floppym@gentoo.org> eclass/linux-mod.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) |
Created attachment 403980 [details] build.log i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (/var/tmp/portage/net-firewall/xtables-addons-2.6/work/xtables-addons-2.6/extensions/compat_xtables.o) to format elf32-i386 (/var/tmp/portage/net-firewall/xtables-addons-2.6/work/xtables-addons-2.6/extensions/compat_xtables.ko) is not supported My kernel has the necessary GNUmakefile for cross-compiling: ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu- include Makefile