Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel wont compile with gcc-1.1.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nikster77
n00b
n00b


Joined: 28 Oct 2006
Posts: 23

PostPosted: Sun Nov 12, 2006 3:08 am    Post subject: kernel wont compile with gcc-1.1.1 Reply with quote

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
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Sun Nov 12, 2006 3:13 am    Post subject: Reply with quote

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
View user's profile Send private message
nikster77
n00b
n00b


Joined: 28 Oct 2006
Posts: 23

PostPosted: Sun Nov 12, 2006 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Sun Nov 12, 2006 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
nikster77
n00b
n00b


Joined: 28 Oct 2006
Posts: 23

PostPosted: Sun Nov 12, 2006 10:35 am    Post subject: Reply with quote

/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
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Sun Nov 12, 2006 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
nikster77
n00b
n00b


Joined: 28 Oct 2006
Posts: 23

PostPosted: Wed Nov 15, 2006 12:46 pm    Post subject: Reply with quote

Yes I did.
However, the System works...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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