Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modules using wrong gcc-version
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
boerns
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 172

PostPosted: Tue Aug 29, 2006 6:08 pm    Post subject: modules using wrong gcc-version Reply with quote

Since half a year now, I have installed gcc 3.4.x:

holodeck boot # gcc --version
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2006 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE.

holodeck boot # gcc-config -L
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6
holodeck boot # gcc-config -l
[1] i686-pc-linux-gnu-3.4.6 *
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp


when I build the hardware modules for my graphic-card and the isdn-card, the modules are not installable:

holodeck linux # ls /lib/modules/2.6.17-gentoo-r6/extra/fcpci.ko -al
-rw-r--r-- 1 root root 607157 29. Aug 19:58 /lib/modules/2.6.17-gentoo-r6/extra/fcpci.ko
holodeck linux # modprobe fcpci
FATAL: Error inserting fcpci (/lib/modules/2.6.17-gentoo-r6/extra/fcpci.ko): Invalid module format

dmesg gives this:

fcpci: version magic '2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.3' should be '2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.4'
fcpci: no version for "struct_module" found: kernel tainted.
fcpci: version magic '2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.3' should be '2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.4'


now, when i Use vi to edit the binary file "fcpci.ko" and change the string manually from:
"vermagic=2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.3"
to
"vermagic=2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.4"

Then I can load the module.

Is there a way to tell nvidia and fritzcapi to write "vermagic=2.6.17-gentoo-r6 preempt mod_unload PENTIUMIII gcc-3.4" in the binary modules automatically?

the same with the nvidia-module!
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Tue Aug 29, 2006 6:09 pm    Post subject: Reply with quote

I think you need to rebuild the modules with gcc-3.4

try re-emerging them
Back to top
View user's profile Send private message
boerns
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 172

PostPosted: Wed Aug 30, 2006 9:31 am    Post subject: Reply with quote

Hi,

I have no gcc-3.3 on my box for half a year now. When I compile the modules, only the gcc-3.4 can be used. But still the Information about gcc-3.3 is written into the modules.
Back to top
View user's profile Send private message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Fri Sep 29, 2006 1:04 am    Post subject: i had this problem Reply with quote

I had this problem too
tun: version magic '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-4.1' should be '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-3.3'
Adding 506036k swap on /dev/hda2. Priority:-1 extents:1 across:506036k
eepro100: version magic '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-4.1' should be '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-3.3'
eepro100: version magic '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-4.1' should be '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-3.3'
eepro100: version magic '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-4.1' should be '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-3.3'
eepro100: version magic '2.6.16-gentoo-r12 preempt PENTIUM4 gcc-3.3' should be '2.6.17-gentoo-r8 preempt mod_unload PENTIUM4 gcc-3.3'

and I found out that it was due to ccache being enabled when i compiled my new kernel (with gcc-4.1.1)
i disabled the ccache out of /etc/make.conf and did
make clean && make in the /usr/src/linux dir and installed the resulting kernel
rebooted and everyone was happy.

-DB
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