View previous topic :: View next topic |
Author |
Message |
boerns Apprentice
Joined: 18 Mar 2004 Posts: 172
|
Posted: Tue Aug 29, 2006 6:08 pm Post subject: modules using wrong gcc-version |
|
|
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 |
|
|
El_Presidente_Pufferfish Veteran
Joined: 11 Jul 2002 Posts: 1179 Location: Seattle
|
Posted: Tue Aug 29, 2006 6:09 pm Post subject: |
|
|
I think you need to rebuild the modules with gcc-3.4
try re-emerging them |
|
Back to top |
|
|
boerns Apprentice
Joined: 18 Mar 2004 Posts: 172
|
Posted: Wed Aug 30, 2006 9:31 am Post subject: |
|
|
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 |
|
|
dirtbag Guru
Joined: 18 Feb 2003 Posts: 508 Location: NC
|
Posted: Fri Sep 29, 2006 1:04 am Post subject: i had this problem |
|
|
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 |
|
|
|