[RFC] Make containerized tests more robust (libgcc_s.so.1 not found)

Xi Ruoyao xry111@xry111.site
Thu Jan 30 01:12:37 GMT 2025


On Wed, 2025-01-22 at 18:58 +0100, Andreas K. Huettel wrote:
> Am Mittwoch, 22. Januar 2025, 17:56:08 Mitteleuropäische Normalzeit schrieb Andreas Schwab:
> > On Jan 22 2025, dilfridge@gentoo.org wrote:
> > 
> > > 2) Gentoo and Debian (and probably others) install libgcc_s.so.1 only within
> > > the gcc directory tree and list the corresponding directory in
> > > /etc/ld.so.conf. For Gentoo the rationale for this is to be able to switch
> > > between several installed GCC versions.
> > 
> > They should reconsider.  Since libgcc_s is always backward compatible,
> > it is enough to install and use the latest version.

Backward compatibility may be not enough for people switching compiler
versions.  For example if a symbol version in libgcc_s is bumped in GCC
15, a program can require the new symbol version simply by linking
against the new libgcc_s, but the people deliberately using GCC 14
likely don't want the effect.

> <gentoo hat>
> Well, to my best knowledge we just stick to upstream gcc defaults.
> So maybe you should kick that ball over there?
> </gentoo hat>

To be fair --enable-version-specific-runtime-libs is **not** the default
:).

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list