Fedora Core 1 kernel and gcc

Fedora Core 1 kernel and gcc

Post by Yvan » Fri, 19 Dec 2003 19:42:14


I just upgraded from RH9 to Fedora Core1. Is core1 some beta release, or
a final product?

I am asking that because when I trued to install nVidia graphic driver I
ended with error that kernel is not compiled with the same gcc version I

am using:

gcc: 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
gcc for compiling kernel: 3.2.3 20030422 (Red Hat Linux 3.2.3-6)

Did something went wrong during upgrade?


--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://www.yqcomputer.com/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **
 
 
 

Fedora Core 1 kernel and gcc

Post by Simon Andr » Fri, 19 Dec 2003 22:15:14


FC1 (Yarrow) is a final release.



FC1 includes two verions of gcc. The main gcc version is 3.3.2, but
this revision is not able to compile the kernel (but is OK for
everything else). For recompiling the kernel, or any kernel modules
they included gcc v3.2.3.

You can check you have the kernel gcc installed using:

rpm -q gcc32

If that doesn't return anything you need to install it with

yum install gcc32

When you compile the Nvidia kernel modules you need to make sure that
the module is compiled with the correct gcc version, so before you run
the Nvidia script type:

export CC=gcc32

..and everything should be OK.

 
 
 

Fedora Core 1 kernel and gcc

Post by Yvan » Sat, 20 Dec 2003 16:35:23

Nedavno Simon Andrews pise:

| FC1 includes two verions of gcc. The main gcc version is 3.3.2, but
| this revision is not able to compile the kernel (but is OK for
| everything else). For recompiling the kernel, or any kernel modules
| they included gcc v3.2.3.
|
| You can check you have the kernel gcc installed using:
|
| rpm -q gcc32
|
| If that doesn't return anything you need to install it with
|
| yum install gcc32
|
| When you compile the Nvidia kernel modules you need to make sure that
| the module is compiled with the correct gcc version, so before you run
|
| the Nvidia script type:
|
| export CC=gcc32
|
| ..and everything should be OK.

Reading nVidia error install log suggested solution (export
something=1), and after that I was able to install it. I will try it
this way, since there was warning "if you knew what are you doing..."


--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://www.yqcomputer.com/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **
 
 
 

Fedora Core 1 kernel and gcc

Post by Simon Andr » Tue, 23 Dec 2003 22:43:33


The alternative solution (which is probably what you found) is to stop
the Nvidia installer from checking whether the version of gcc you're
using is the same as the version used to compile the kernel. This will
also let the compile proceed. Other have reported this fix as also
working but in general it's not a great idea to compile kernel modules
with a different version of gcc than was used for the kernel itself. In
this case it doesn't seem to matter though.

Simon.