Summary: | linux-mod fails on systems with different kernel/userland bit depths (eg 64-bit kernel/32-bit userland) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brent Baude (RETIRED) <ranger> |
Component: | New packages | Assignee: | ppc64 architecture team <ppc64> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | frederic.grosshans_web, joslwah, kernel, robbat2, sparc, weeve |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=427052 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 133613, 148506, 149059 | ||
Attachments: | linux-mod-respect-KERNEL_ABI.patch |
Description
Brent Baude (RETIRED)
2006-05-15 07:17:14 UTC
same deal for media-sound/snd-aoa. Just adding to keep track of the ones we bump into. snd-aoa should be merged for 2.6.18, I wouldn't worry about it too much. Ok, I just ran into this on my G5 as well, and looking at it, I suspect it's going to be a problem for every arch/setup that uses CROSS_COMPILE or where $CC != $KERNEL_CC - my mips machine of such a case isn't running at the moment, but it will be reasonably soon. The best place to fix it is in linux-mod_src_compile, probably by making it take CROSS_COMPILE into account for $CC. unrelated to the toolchain Created attachment 90511 [details, diff]
linux-mod-respect-KERNEL_ABI.patch
Patch to apply at /usr/portage level. Modified ppc64-32ul profile and linux-mod.eclass.
the patch I've just attached solves the problem of ppc64 with 32ul being unable to compile external modules. It defines KERNEL_ABI and required parts for the ppc64/32ul profile, and modifies linux-mod.eclass to get the correct CC for compiling the modules. It needs testing in the following settings to make sure it doesn't break anything else: - pure 64-bit system - multilib system with biarch compiler (eg -m64/-m32 work) I'm trying to see if there is an easier way to get a biarch compiler instead of this hack only. on a pure 64 bit system sys-fs/sshfs-fuse compiled fine after applying the patch. For testcases, can you also please test: sys-block/iscsitarget-0.4.13 net-wireless/zd1211-80 Between them, that's invocation of HOSTCC/CC/LD. I haven't found an external case that uses AS or something else from binutils yet. A couple more testcases: x11-base/x11-drm-20060608 sys-fs/cowloop-2.15-r1 sys-fs/fuse (if it's not built into your kernel) still pure 64 bit. all of them compile fine. Got the ok that it doesn't break AMD64, seeing if this works for Sparc now. *** Bug 149554 has been marked as a duplicate of this bug. *** Fixes sparc too...kernel folks please apply the first hunk of the attached patch only. Thanks. thanks, finally johnm showed up and now I was able to commit this. Please have a look at the depend bugs now. |