• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can't compile linux kernels?

CTho9305

Elite Member
I am unable to compile any linux kernels. I installed RedHat 7.0 with pretty much the default "Workstation" configuration, and included development tools and kernel sources. (2.2.16-22). No matter what I do, I end up getting some errors (error 1 and two error 2's), usually in some .h (which one varies). Any ideas what I might be doing wrong? The same thing happens with a downloaded 2.4.0 source (from kernel.org/pub) so I can't see my source code being the problem. I also tried 2.4.0-pre6 (included on the red hat iso) with the same unsuccessful results.

--------------------------
Thunderbird 700@700 (Slot)
Asus K7V
128 meg generic PC100 cl-2
Asus v7700 Pure 32 meg
Quantum Fireball 30 gig HD
Avance Logic ALS4000-based sound card (no linux driver)
Intel AnyPoint 10mbps phoneline NIC (no linux driver)
Sony burner (dont remember which 😀)
generic 48X cdrom
floppy
 
Interesting! After searching for kgcc, I find you're right... is the older version (pre 2.96, right?) available on the red hat CD somewhere, or where can I get it? rpmfind has "kgcc-1.1.2-40 RPM for i386" - is that what I want to download and install?


Why would you want 2.96? Does it do stuff older ones don't?
 
Hmm, I guess I wasn't doing too well last night... even RedHat's site explains how to use kgcc to make kernels (apparently 2.2.16-22 is specifically fixed by them to work with the new gcc). Thanks!
 
You can try downloading the gcc 2.95.2 the actual stable release for gnu gcc, ant the
latest 2.2.18 kernel...

And compile both of them...that way you get a decend compiler and a new kernel....
 
As a sidenote, there are many things amiss in RH 7.0, it doesn't seem to be up-to-par as the previous releases. If you're really not going to use the newer features of RH 7.0, it maybe better to stick to RH 6.2..Regards
 
actually the compilers in RH 7 function fine. you need kgcc for 2.2 kernels only. the 2.96 they use as their main compiler works for everything else. Make sure you have all updates applied though. I have 2 boxen running 2.4.1 compiled with 2.96 and no problems related to it.
 
BOFH: not trying to contradict you, but according to gnu's gcc team, the stable gcc
version is 2.95.2, 2.96 is a development version... if you use this compiler and try to
run the executables ( specially those in c++ ) in another machine that uses the normal
release...
gcc steering committee warning
 
You're correct that its not a official release. It does however work fine and compile code including the kernel just fine. The solution is to statically link to the other libs you need as required. I have yet to find a precompiled program that did not run correctly on it including Mozilla and Star Office. Unless you can find something that does not work for you, then you shouldn't slag it
 
BOFH:

?? You lost me there ?? ... What do you mean by "I have yet to find a precompiled program that did not run correctly on it including Mozilla and Star Office", It seems that you are mixing
Run-Time Libraries with the compiler....

Now as for my expirince with it, I have none ... You see I prefer to use the stable releases
on this kind of core stuff, nerver know when a small definition can mess up a compilitation.
Like with gcc-2.95.2 and glic-2.2... I had a few problems with them together...
 
thornc, if you have no experiance with something, why are you dismissing it out of hand? This is silly and a waste of everyones time. I have had no compilation problems that are related to the compiler. It is not on all my boxen, but on the couple it is, there are no problems
 
BOFH: Because I've had my share of problems with development version of keys packages...
including gcc compilers that make other things go broken, thats why... if you know what
you're doing is one thing, now if you just want to get your system stable and running its
another.... Just this....

We have to be carefull orelse the Linux Distro Companies are going to start doing what the
other software houses are doing...send out unstable software and fix up later with patches...
this is not correct.....
 
Back
Top