LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-24-2006, 12:39 PM   #1
laasunde
LQ Newbie
 
Registered: Sep 2002
Posts: 25

Rep: Reputation: 15
gcc questions


Hi,

I've got Fedora core4 with gcc4. When trying to patch a new kernel (2.6.10) with a RTAI patch I get an error which is caused by the fact that the patch does not support gcc4 and I need to use gcc 3.3.x instead.

Do I need to remove gcc4.0 before installing gcc 3.3.x or can the two coexist on the same system?

When doing 'make' on the new kernel+patch, how do I specify it to use gcc3.3 and not gcc4.0 ?

Thanks
 
Old 01-24-2006, 03:57 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
You can normally install both versions of GCC on the same system. The normal method for telling the build scripts to use a specific version is with the CC environment variable, e.g.:
Code:
export CC=/usr/bin/gcc-3.3
 
Old 01-24-2006, 04:15 PM   #3
laasunde
LQ Newbie
 
Registered: Sep 2002
Posts: 25

Original Poster
Rep: Reputation: 15
Cheers fella.

Will have a look at the file tomorrow.
 
Old 01-24-2006, 11:02 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
make sure you don't overwrite anthing to do with your current compiler
so for safetys sake put the new (older) one in /opt directory
 
  


Reply



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
some questions about gcc version sumargin Ubuntu 1 01-09-2006 02:55 PM
gCC & nasm questions bluknight43 Linux - Newbie 3 02-12-2005 09:15 AM
NASM & GCC questions bluknight43 Linux - Software 1 02-12-2005 08:49 AM
Suse 9.0 gcc problems and a few questions {O_o} Linux - Newbie 2 06-17-2004 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

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
Open Source Consulting | Domain Registration