Bug#261082: glibc: Please add the '-fno-unit-at-a-time' patch from upstream for amd64/gcc-3.4 support
On 04-Jul-25 23:57, GOTO Masanori wrote:
> Andreas Jochens wrote:
> > Additionally, the attached patch adds
> >
> > nptl_extra_cflags = -g0 -O3 -fomit-frame-pointer -D__USE_STRING_INLINES
> >
> > to 'debian/sysdeps/amd64.mk' which uses '-g0' instead of the default '-g1'.
> > This is also necessary to compile glibc with gcc-3.4.
>
> Why is this needed? Could you teach me the reason?
Thank you for your reply.
The '-g0' is needed because gcc-3.4 has a bug which will be triggered
when '-g1' is used to compile nptl (please see gcc-3.4 bug #260710 in
the BTS). This gcc-3.4 bug is known to upstream since a while ago and
has been discussed on the upstream gcc developers list. However, I
could not find a better fix.
This gcc-3.4 bug is not amd64-specific, it also occurs on i386.
Regards
Andreas Jochens
Reply to: