LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-31-2006, 11:08 AM   #1
mnsrsudhakar
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Kernel Versions Supported By Gcc 2.96


Hi,

We are using (Redhat 32bit ) and (Suse 64bit) machines .

The g++ compiler version we use is "gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-124.7.2)"

The gcc compiler for suse is "gcc version 3.3.3 (SUSE Linux)"

We're using these compilers and we're not sure what versions of RedHat and SuSE they translate to.

How or Where I can find the linux kernel that these gcc versions support and what versions of RedHat and SuSE does that kernel version translate into?

Please clarify and advise
Rgds
Sudhakar
 
Old 04-01-2006, 09:04 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Please read; http://www.digitalhermit.com/linux/K...ild-HOWTO.html see the section on Software requirements. Word of warning, recently changes with the 2.6 kernel series gcc < 3.X are no longer supported; http://lwn.net/Articles/163881/

I cannot speak about SuSE versions, but with Red Hat kernel versions the basic rule of thumb is, the major number (2.6.9 for example) means the kernel is based on the vanilla 2.6.9 kernel from kernel.org. The extra dash number (-11 for example) means this is the 11th revision (backports and other tweaks) of the base kernel.
 
Old 04-02-2006, 10:45 AM   #3
mnsrsudhakar
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
supported kernel versions for gcc 2.96

Thank you that gave me some information


But let me tell the problem in detail

We build the executables with gcc 2.96 for redhat and gcc 3.3.3
for suse and deliver them to customers .

Now my question is.....

What kernel versions can the customer use to make this executable
(built with gcc 2.96) run perfectly ?

The exact question is ...

For each linux version what kernel versions
customer can use for this executable (built with gcc 2.96)to run?

Previously we faced the problem like .... for some combination of
kernel and linux versions this executable doesnt work.

So can u give me some pointer where can i find this information.

Thanks and regards
Sudhakar
 
Old 04-02-2006, 12:03 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your making this task a lot harder then it needs to be......

All supported version of Red Hat Linux can support binaries built with gcc-2.96, some will require the compat-liggcc packages. The same is true for gcc-3.3.3 built binaries. For Red Hat Enterprise Linux, 2.X is gcc-2.96 based, 3.x is gcc-3.2.3 based and 4.X is gcc-3.4.5 based. A simple reading of the release notes can tell you this;
http://www.redhat.com/docs/manuals/enterprise/

Notice I said all supported versions, Red Hat ended support for all versions of RHL (the freely downloadabe versions) nearly 2 years ago. Which gcc is supported for these still can be found by reading the release notes forn them;

http://www.redhat.com/docs/manuals/linux/

A simple query of /proc/version will provide an intelligent way to know which gcc version was used to build the kernel. A simple query of gcc will also do the same;

Human readabe quires;

cat /proc/version
gcc --version


I cannot say for SuSE, but I believe all of this could be done pretty much the same way.

Hopefully I pointed you in the right direction, the rest is a matter of research.
 
  


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
HOW-TO: find out kernel gcc versions.... woes :S kevingpo Linux - General 8 07-19-2011 08:14 AM
Kernel Versions Supported By Gcc 3.96 mnsrsudhakar Red Hat 0 03-31-2006 11:06 AM
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 12:28 AM
Madwifi - Only kernel versions 2.4.x and above are supported wattaheadache Linux - Wireless Networking 42 11-27-2005 07:53 PM
Two gcc Versions On The Same Installation? Xian Debian 4 08-16-2005 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:26 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