#1113975 gcc-11: FTBFS on hppa - glibc 2.41 breaks module support

Package:
src:gcc-11
Source:
src:gcc-11
Submitter:
John David Anglin
Date:
2025-09-04 19:41:02 UTC
Severity:
normal
Tags:
#1113975#5
Date:
2025-09-04 19:38:33 UTC
From:
To:
Dear Maintainer,

gcc-11 11.5.0-3 fails to build with installed gcc-11.  See:
https://buildd.debian.org/status/fetch.php?pkg=gcc-11&arch=hppa&ver=11.5.0-3&stamp=1756753356&raw=0

The problem is gcc-11 was not upgraded to generate GNU_STACK notes
before the release branch was closed.  As a result, modules require
an executable stack in gcc-11 and earlier.

glibc 2.41 no longer allows modules or shared libraries requiring
an executable stack to be loaded with dlopen.  This broke gcc-11
11.5.0-2.

We need to patch gcc-11 to enable the generation of GNU_STACK notes.

I manually built and uploaded 11.5.0-3 using glibc 2.40 and the
attached patch to generate GNU_STACK notes.

The attached patch will need be added to debian/patches if gcc-11
ever needs rebuilding on hppa.

Regards,
Dave Anglin