View previous topic :: View next topic |
Author |
Message |
nikster77 n00b
Joined: 28 Oct 2006 Posts: 23
|
Posted: Sun Nov 12, 2006 3:08 am Post subject: kernel wont compile with gcc-1.1.1 |
|
|
Hi.
A few Weeks ago I updated my System and this put the new gcc-4.1.1 on my System.
A few days later I added new USE-Flags to my make.conf and thought this might be a good time for an "emerge --newuse --deep --update world"...
So I switched to the gcc-4.1.1 compiler (following the howto) because I thought if I'm going to update the whole System I may also do this with a new compiler.
Everything went flawless.
Today I simply wanted to update world which updated my nvidia-drivers and, of course, X didn't come up after a restart nagging about invalid module format for nvidia.ko.
I recompiled my Kernel with gcc-4.1.1 (which is now the standard compiler) but still the same...
I tried to build nvidia-drivers with the Package provided from nvidia on their Site but the installer Script told me that my Kernel was compiled wit gcc-3.4 what is obviously not true as I had just recompiled it 5 Mins ago.
So, the nvidia-module is compiled (as anything else on the System) with gcc-4.1.1 but the Kernel wont in no way recognize the new compiler and always gets compiled with gcc-3.4.
I'm a little bit confused and would be thankful to hear/read any suggestions
Cheers |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Sun Nov 12, 2006 3:13 am Post subject: |
|
|
On gentoo it isn't advised to use the nvidia installer. You could try an emerge nvidia-* over and then hope "eselect opengl" cleans up as best it can. Also remember to "rmmod nvidia" to clean the old module out of ram. |
|
Back to top |
|
|
nikster77 n00b
Joined: 28 Oct 2006 Posts: 23
|
Posted: Sun Nov 12, 2006 3:53 am Post subject: |
|
|
Hi.
Thanks for your fast reply and excuse my english as I didn't make clear that I used the nvidia-installer as last chance.
I was aware that the Problem probably resulted of haveing the Module compiled with a different gcc-version.
But as I had recompiled the Kernel and it didn't work with that Module from gentoo (compiled with 4.1.1) I tried the nvidia-installer.
The Problem is not that X/glx etc. does not work, it works... as I just switched back to gcc-3.4 compiled the module, loaded it and then switched back again to gcc-4.1.1.
The Problem is that everything compiles, more or less, fine with 4.1.1 but when I try to compile the Kernel it "somehow" compiles with 3.4... |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Sun Nov 12, 2006 8:21 am Post subject: |
|
|
Check where your /usr/src/linux link points to. Run "gcc-config -l". Do you manually compile the kernel, or is it genkernel? |
|
Back to top |
|
|
nikster77 n00b
Joined: 28 Oct 2006 Posts: 23
|
Posted: Sun Nov 12, 2006 10:35 am Post subject: |
|
|
/usr/src/linux points to my kernel-sources /usr/src/linux -> linux-2.6.17-gentoo-r8, this is the running kernel.
Yes that ist the strange Thing about it...
#gcc-l
[1] x86_64-pc-linux-gnu-3.4.6
[2] x86_64-pc-linux-gnu-3.4.6-hardened
[3] x86_64-pc-linux-gnu-3.4.6-hardenednopie
[4] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
[5] x86_64-pc-linux-gnu-3.4.6-hardenednossp
[6] x86_64-pc-linux-gnu-4.1.1 *
clearly 4.1.1 is the actual compiler on my System. |
|
Back to top |
|
|
bonbons Apprentice
Joined: 04 Sep 2004 Posts: 250
|
Posted: Sun Nov 12, 2006 11:23 am Post subject: |
|
|
Did you reboot using the kernel compiled with gcc-4.1.1? (taking care of the boot-loader as required)
/proc/version should show gcc-4.1.1 |
|
Back to top |
|
|
nikster77 n00b
Joined: 28 Oct 2006 Posts: 23
|
Posted: Wed Nov 15, 2006 12:46 pm Post subject: |
|
|
Yes I did.
However, the System works... |
|
Back to top |
|
|
|