Wrong GCC version during compile?
Hi, I am trying to install submount on my Debian Sid machine. However even though it compiles cleanly and installs OK I can't insert the module.
Here is the dmesg output I get: Code:
subfs: version magic '2.6.11-kanotix-10 preempt K7 gcc-4.0' should be '2.6.11-kanotix-10 preempt K7 gcc-3.3' The question is though, how can I select a compiler during configure and/or make that this software will be happy with? GJ |
example.........
Code:
make CC=/opt/gcc-2.95.3/bin/gcc Code:
make CC=/opt/gcc-2.95.3/bin/gcc install |
Yeah, you need to make sure kernel modules are compiled with the same version of gcc as the kernel itself. The examples above allow you to do this.
|
Thanks guys, but I still don't quite get it.
I tried doing: make CC=/opt/gcc-3.3/bin/gcc - as I think this is the version of GCC that the subfs module expects and is asking for (or at least it mentions GCC 3.3 above) - but it just spits out an error saying: Code:
/submount-0.9/subfs-0.9# make CC=/opt/gcc-3.3/bin/gcc Where am I going wrong? GJ |
Bingo! I worked it out. It was just the wrong path to the GCC version I used to compile the kernel.
Thanks guys! GJ |
All times are GMT -5. The time now is 03:28 AM. |