Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287335 - linux-mod and linux-2.6.32 probable incompatibility
Summary: linux-mod and linux-2.6.32 probable incompatibility
Status: RESOLVED DUPLICATE of bug 287225
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 10:53 UTC by Michelangelo Scopelliti
Modified: 2009-10-02 12:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2009-10-02 10:53:10 UTC
vanilla linux kernel 2.6.32-rc1 introduced in the main Makefile some changes in the ARCH and CROSS_COMPILE variable management.
installing such a kernel and then trying to emerge extrarnal modules (e.g. nvidia-drivers) leads to some error in these variables:

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-190.36/work/NVIDIA-Linux-x86_64-190.36-pkg2/usr/src/nv modules
Makefile:210: *** ARCH changed from "x86_64" to "x86". Use "make mrproper" to fix it up.  Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

and with this error:

 * ERROR: x11-drivers/nvidia-drivers-190.36 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3981:  Called linux-mod_src_compile
 *             environment, line 2958:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux              SYSOUT=/usr/src/linux HOST_CC=x86_64-pc-linux-gnu-gcc clean module

NOw, I know that vanilla sources are unsupported, but I think that this could be an issue for fututre gentoo-sources too.

The compilation of nvidia-drivers outside ebuild/eclass, of course, has not this problem

Reproducible: Always

Steps to Reproduce:
1. install a 2.6.32* kernel version
2. install nvidia-drivers

Actual Results:  
module does not compile

Expected Results:  
module compile/install
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-02 12:30:07 UTC

*** This bug has been marked as a duplicate of bug 287225 ***