Comment 1 for bug 1824721

Revision history for this message
Roger Leigh (rleigh) wrote :

Note that the strategy for GCC packaging in Ubuntu (maybe also in Debian) is the exact opposite of how RedHat handle GCC packaging for RHEL with the Devtoolset stuff.

Ubuntu is always providing the latest version of libstdc++6 from the newest GCC. This is problematic when the older headers are subtly (or not-so-subtly) incompatible with the shared library.

RedHat always uses the copy of libstdc++ provided by the default compiler for the base system. Newer GCC versions link against this library, with newer functionality provided by static linking of the newer libstdc++ for that GCC version.

Both strategies make compromises. But right now, the default GCC version in Ubuntu is actually broken as a result of the former strategy. Perhaps the default libstdc++6 should be provided by the default GCC version, with later versions adding supplementary functionality via a static library?