Code: Select all
localhost ~ # emerge -avt nvidia-drivers
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild N ] x11-drivers/nvidia-drivers-180.60 USE="acpi (multilib) -custom-cflags -gtk" 0 kB
Total: 1 package (1 new), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-180.60
* NVIDIA-Linux-x86_64-180.60-pkg2.run RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.31-gentoo-r3/build
* Found sources for kernel version:
* 2.6.31-gentoo-r3
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-180.60-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
* Converting NVIDIA-Linux-x86_64-180.60-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...
* Preparing nvidia module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc [b]CROSS_COMPILE=x86_64-pc-linux-gnu- [/b]LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.31-gentoo-r3/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
[b]*** Unable to determine the target kernel version. ***[/b]
[b]make: *** [select_makefile] Error 1[/b]
*
* ERROR: x11-drivers/nvidia-drivers-180.60 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3965: Called linux-mod_src_compile
* environment, line 2962: 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=/lib/modules/2.6.31-gentoo-r3/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/environment'.
*
>>> Failed to emerge x11-drivers/nvidia-drivers-180.60, Log file:
>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'
* Messages for package x11-drivers/nvidia-drivers-180.60:
*
* ERROR: x11-drivers/nvidia-drivers-180.60 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3965: Called linux-mod_src_compile
* environment, line 2962: 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=/lib/modules/2.6.31-gentoo-r3/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/environment'.
Is CROSS_COMPILE=x86_64-pc-linux-gnu- corret??
As you can notice the main problem is: "Unable to determine the target kernel version" ! But I use eselect to select the kernel:
Code: Select all
Available kernel symlink targets:
[1] linux-2.6.30-gentoo-r5
[2] linux-2.6.31-gentoo-r3 *
I post other parameters to be more exhaustive:
uname -a :
Code: Select all
Linux localhost 2.6.31-gentoo-r3 #1 SMP Thu Oct 22 11:32:03 Local time zone must be set--see zic x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux
Code: Select all
2.6.31-gentoo-r3
Code: Select all
COPYING Makefile block include mm sound
CREDITS Module.symvers crypto init net tools
Documentation README drivers ipc samples usr
Kbuild REPORTING-BUGS firmware kernel scripts virt
MAINTAINERS arch fs lib security
Code: Select all
linux-2.6.31-gentoo-r3

