LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-11-2005, 10:26 PM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
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'
This doesn't look like a huge problem, as I have both GCC 4.0 and 3.3 installed.

The question is though, how can I select a compiler during configure and/or make that this software will be happy with?

GJ

Last edited by raid517; 09-11-2005 at 10:28 PM.
 
Old 09-11-2005, 10:40 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
example.........
Code:
 make CC=/opt/gcc-2.95.3/bin/gcc
Code:
  make CC=/opt/gcc-2.95.3/bin/gcc install
 
Old 09-11-2005, 11:37 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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.
 
Old 09-14-2005, 09:39 AM   #4
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
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
make -C /lib/modules/2.6.11-kanotix-10/build SUBDIRS=/Downloads2/submount-0.9/submount-0.9/subfs-0.9 modules
make[1]: /opt/gcc-3.3/bin/gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.11-kanotix-10'
/usr/src/linux-2.6.11-kanotix-10/scripts/gcc-version.sh: line 11: /opt/gcc-3.3/bin/gcc: No such file or directory
/usr/src/linux-2.6.11-kanotix-10/scripts/gcc-version.sh: line 12: /opt/gcc-3.3/bin/gcc: No such file or directory
make[1]: /opt/gcc-3.3/bin/gcc: Command not found
make[1]: /opt/gcc-3.3/bin/gcc: Command not found
  CC [M]  /Downloads2/submount-0.9/submount-0.9/subfs-0.9/subfs.o
/bin/sh: /opt/gcc-3.3/bin/gcc: No such file or directory
make[2]: *** [/Downloads2/submount-0.9/submount-0.9/subfs-0.9/subfs.o] Error 1
make[1]: *** [_module_/Downloads2/submount-0.9/submount-0.9/subfs-0.9] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11-kanotix-10'
make: *** [default] Error 2
I definately do have GCC 3.3 installed - and am using Debian Sid.

Where am I going wrong?

GJ
 
Old 09-14-2005, 09:46 AM   #5
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Bingo! I worked it out. It was just the wrong path to the GCC version I used to compile the kernel.

Thanks guys!

GJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
Missing gcc or wrong version NoobVer.01 Fedora - Installation 1 08-19-2005 03:00 AM
slackware startx starts the wrong version, i didn't even know i had another version edman007 Linux - Software 3 05-16-2004 08:38 PM
force gcc to compile in different version??? mu664life Linux - Newbie 5 04-08-2004 12:56 AM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 11:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration