LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-14-2005, 09:25 AM   #1
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Kernel compilation with old GCC


Hallo All,

i found that I compliled the latest Kernel 2.6.14.3 with very old gcc - 2.95 ...the reason behind this was that some of my programs are old and can only be compiled with gcc-2.95 and while compiling the kernel i forgot to change the sym links to the new version ...


now, does it harm to have latest kernel compiled with old compiler ?

and if yes, in what way ? until now it has given me no probs..

and if it harms, can I just recompile the kernel by changing the links to the new compiler and will it replace the old one ?


thanks,
Hardik
 
Old 12-14-2005, 10:03 AM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
I think you should use kernel version 2.4
And what kind of program tha cannot be compile with new compiler, did you try the latest version of these program?
 
Old 12-14-2005, 10:14 AM   #3
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Original Poster
Rep: Reputation: 30
Hi,
thanks for the reply.

i already have gcc-3.4 version, but I have my own old code it needs omniOrb a corba broker to communicate with java classes...right now it is a big task to change the old code to work with new versions of corba broker so I have installed old gcc-2.95..

to switch to new gcc i just have to chagne the sym links gcc and g++ which point to the correspondign versions..

but i want to know what difference it makes.. i searched and got something about some Posix Threading Libraries that dont work with gcc less than gcc-3...

so if it is required i can comple the kernel again with new gcc-3.4 for that I guess , i only need to change the sym links, but I dont know weather this will replace(overwrite) the old kernel compiled with gcc-2.95.


Hardik
 
Old 12-14-2005, 03:35 PM   #4
EyesOnly
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: SlackWare
Posts: 202

Rep: Reputation: 30
Just found this on the web: http://kerneltrap.org/node/5974

seems there are some problems whit gcc 2.95 and 2.6, and support might even stop soon.

But as long as a kernel compiled whit gcc 2.95 works for you, all is good right?

(and you can have diffrent kernelversions installed, so it won't overwrite if you don't tell it to do so)
 
  


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
compilation prob with gcc srinis Linux - Newbie 2 03-11-2005 04:06 PM
GCC Compilation Errors The_Dish Programming 7 10-08-2004 04:33 PM
should I use gcc-2.95.3 for kernel compilation shanenin Linux From Scratch 9 07-25-2004 10:24 PM
GCC version in kernel compilation Alpha_Beta Linux - Newbie 3 09-29-2003 11:39 PM
gcc compilation error Proger Programming 1 03-22-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:56 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
Open Source Consulting | Domain Registration