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
*** This bug has been marked as a duplicate of bug 287225 ***