LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel compilation with old GCC (https://www.linuxquestions.org/questions/slackware-14/kernel-compilation-with-old-gcc-392746/)

rangalo 12-14-2005 09:25 AM

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

TruongAn 12-14-2005 10:03 AM

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?

rangalo 12-14-2005 10:14 AM

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

EyesOnly 12-14-2005 03:35 PM

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)


All times are GMT -5. The time now is 08:47 PM.