Re: Need clarification on mixing GCC 4.5 with earlier versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On 10/18/2010 6:51 AM, Kristofer Wempa wrote:
From: Kristofer.Wempa@xxxxxxx
To: gcc-help@xxxxxxxxxxx
Subject: Need clarification on mixing GCC 4.5 with earlier versions

I am looking to build an entire set of tools using GCC 4.5 for SLES10, which is based on GCC 4.1.2.  According to the GCC 4.4 release notes, there is an ABI change that causes it to be incompatible with earlier GCC versions.  My initial plan was to build GCC 4.5 and then build the remaining software with 4.5 using the .-fabi-version. option to make it generate binaries compatible with GCC 4.1.2.  However, the GCC man page and other documentation I have come across says that GCC 4.4 and 4.5 still using version 2.0 of the ABI, which was introduced in GCC 3.4.  Now, I.m confused.  If GCC 4.4 introduces an ABI change, then how can it still be the same ABI version as the earlier GCC versions ?  It sounds almost like there is a minor change to the ABI, but that they still want to consider it compatible with the previous ABI version.  Can somebody please clarify this for me ?  I have bounced this off of a couple of other people who are familiar with these concepts and they also agree that it.s unclear.  Any help would be greatly appreciated.



Kris Wempa

You may need to clarify what you mean by compatibility. As you will have installed a newer version of gcc and g++/gfortran or whichever compilers you will need, your tools will work as long as you use the new compilers for the applications. Your new C language .o files probably will work with the old gcc also, but your g++ and gfortran libraries will require the new installations.

--
Tim Prince





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux