View previous topic :: View next topic |
Author |
Message |
Lazarus18 n00b
Joined: 01 May 2002 Posts: 38
|
Posted: Thu Aug 08, 2002 11:15 pm Post subject: different compiler problem with nvidia-kernel |
|
|
I can't get the nvidia-kernel to emerge. I had everything set up, borked my system and decided to reinstall with gcc3. Everything has worked fine, but I can't get the drivers for nvidia to go. I used the 1.3a stage3 image, built my kernel, rebooted, and did an emerge world -u before I installed anything else. Every other ebuild has gone fine, but when I try the nvidia-kernel I get this:
Quote: | >>> emerge media-video/nvidia-kernel-1.0.2960 to /
>>> md5 NVIDIA_kernel-1.0-2960.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-2960.tar.gz
>>> Source unpacked.
rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h *.d NVdriver
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.
If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -83, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild . |
I have rebuilt my kernel thinking that since the world -u updated gcc3 this was irking the nvidia-kernel ebuild. That didn't work. I'm stumped, and not familiar enough with making stuff to know how to invoke that IGNORE_CC_MISMATCH thing or even if that's a good idea.
Any thoughts?
-Rob _________________ -Rob, Tired med student
Powermac G4 450 MHz (Sawtooth), 756 MB RAM, OS X.1.4
Powerbook G3 400 MHz (Pismo), 192 MB RAM, OS X.1.4, Gentoo Linux
Homebrew Athlon-xp 1800+ MHz, 512 MB DDR-RAM, GeForce 3Ti 500, Gentoo Linux, WinXP |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Aug 08, 2002 11:22 pm Post subject: |
|
|
A couple of things to double-check: - that the kernel you're running really is the one you compiled with GCC3
- that the sources for said kernel are in /usr/src/linux
_________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Lazarus18 n00b
Joined: 01 May 2002 Posts: 38
|
Posted: Thu Aug 08, 2002 11:58 pm Post subject: |
|
|
yes, both those are true. I recompiled the kernel after doing a make mrproper and then reloading my configuration from a file, I also removed the modules in case that was somehow off. And ls -l in /usr/src shows that there is only one source dir, and linux points to it. And in case anyone is wondering if I'm really dumb, yes I did copy the new bzImage to /boot .
I have also downloaded the source from nvidia, and get the same error. So I don't think the problem is Gentoo's, but hopefully Gentoo users are smart enough to fix it . Google has some reports of the same problem, but so far the only advice seems to be to rebuild the kernel, which I have.
-Robert _________________ -Rob, Tired med student
Powermac G4 450 MHz (Sawtooth), 756 MB RAM, OS X.1.4
Powerbook G3 400 MHz (Pismo), 192 MB RAM, OS X.1.4, Gentoo Linux
Homebrew Athlon-xp 1800+ MHz, 512 MB DDR-RAM, GeForce 3Ti 500, Gentoo Linux, WinXP |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Aug 09, 2002 12:07 am Post subject: |
|
|
Running emerge with --debug will give you more diagnostics to chew on. What versions of gcc do you have installed? "emerge -s gcc" or "qpkg -v gcc" should tell you this. What is the default one? IOW, what does "gcc -v" say? Finally, what version of gcc compiled your kernel, as shown in "cat /proc/version"? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Lazarus18 n00b
Joined: 01 May 2002 Posts: 38
|
Posted: Fri Aug 09, 2002 12:54 am Post subject: |
|
|
Oddly, /proc/version shows the wrong gcc, which I don't understand. I couldn't boot off CD for some reason, so I started up in my Red Hat partition and did everything from there. /proc/version still shows that :
Quote: | Linux version 2.4.19-gentoo-r7 (root@RHIlsa) (gcc version 3.1) #1 Tue Aug 6 16:45:05 CDT 2002 |
That RHIlsa is the machine name of the RH partition. It should be just Ilsa, which is odd. Anyway emerge -s gcc shows:
Quote: | Latest version Available: 3.1.1-r1
Latest version Installed: 3.1.1-r1 |
and gcc -v gives me:
I'm curious as the problem with this, but I think I did find a solution, it's just kind of ugly. I added the following to the ebuild for nvidia-kernel:
Quote: | src_compile() {
# Portage should determine the version of the kernel sources
export CC=gcc
export IGNORE_CC_MISMATCH=1
check_KV
make KERNDIR="/usr/src/linux" \
clean NVdriver || die
} |
Which is rudely based on something I found on the archives of a Mandrake Linux board. Emerge nvidia-glx and nvidia-kernel went fine after that. X seems to boot, and I'm getting ike 3000 FPS on glxgears, so I'm assuming everything works.
-Robert _________________ -Rob, Tired med student
Powermac G4 450 MHz (Sawtooth), 756 MB RAM, OS X.1.4
Powerbook G3 400 MHz (Pismo), 192 MB RAM, OS X.1.4, Gentoo Linux
Homebrew Athlon-xp 1800+ MHz, 512 MB DDR-RAM, GeForce 3Ti 500, Gentoo Linux, WinXP |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Fri Aug 09, 2002 1:50 am Post subject: |
|
|
or you can just do
IGNORE_CC_MISMATCH=1 emerge nvidia-kernel |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|