|
|
Subscribe / Log in / New account

ABI stability

ABI stability

Posted Jun 6, 2013 19:27 UTC (Thu) by zlynx (guest, #2285)
In reply to: ABI stability by jwakely
Parent article: GCC 4.8.1 released

If GCC didn't break ABI compatibility there wouldn't be the need to fix it in GCC point releases.

I don't have an example to point to right this instant but I have definitely hit serious C++ ABI bugs in the past while running Gentoo. I updated to GCC 4.something and older C++ programs started segfaulting.

Not to mention that on IA64 important things like exception handlers would just fail to catch exceptions every other GCC version.

This past experience is why the C++ library that I'm responsible for at work is built for each customer's particular Linux distribution rather than trying to build one binary that works for everybody. It's also why everything is hidden behind a private implementation pointer and there is NO USAGE of anything inline in the includes.


to post comments

ABI stability

Posted Jun 7, 2013 17:46 UTC (Fri) by khim (subscriber, #9252) [Link]

If GCC didn't break ABI compatibility there wouldn't be the need to fix it in GCC point releases.

True, but what does it change? You can say the same about Android, GLibC, Linux, Windows or any other project which is serious about ABI compatibility.

This past experience is why the C++ library that I'm responsible for at work is built for each customer's particular Linux distribution rather than trying to build one binary that works for everybody.

It's your choice but it does not prove anything. Somehow others can build one binary and it works just fine. I've seen problems with many libraries but libstdc++ was never a problem. It's certainly possible to build libstdc++ in a fashion which will make it incompatible, but most major distributions carry LSB-compatible libstdc++ and work just fine with a single binary.

ABI stability

Posted Jun 7, 2013 19:45 UTC (Fri) by jwakely (subscriber, #60262) [Link]

Well duh. If [programmers didn't introduce bugs] there wouldn't be the need to fix [them]. Thanks for the newsflash.

And I cannot parse a sentence containing both "on IA64" and "important things" ;)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds