Subject: Re: bug#49935: gcc-4.8 fails to build with recent GCC versions

From: Greg Hogan <[email-masked]>
Date: Thu, 24 Apr 2025 10:07:44 -0400

On Fri, Jan 19, 2024 at 12:19 PM Thomas Schwinge <[email-masked]> wrote:
>
> On 2021-08-07T20:07:32-0300, Thiago Jung Bauermann via Bug reports for GNU Guix <[email-masked]> wrote:
> > In file included from /tmp/guix-build-gcc-4.8.5.drv-0/build/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/cstdlib:72:0,
> >                  from ../../../../gcc-4.8.5/libstdc++-v3/libsupc++/del_op.cc:38:
> > /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h:38:12: error: ‘std::abort’ has not been declared
> >  using std::abort;
> >             ^
> > /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h:39:12: error: ‘std::atexit’ has not been declared
> >  using std::atexit;
> >             ^
> > [...]
>
> This looks similar to <https://issues.guix.gnu.org/41209>
> "AVR toolchain fails to build", fixed by
> commit fd96ae4a709c5509f2d78af3968d64fe805ad1ef
> "gnu: avr-gcc: Fix conflicting GCC headers", or
> <https://issues.guix.gnu.org/41210>
> "gcc-cross-sans-libc-arm-none-eabi-4.9.4-1.227977 fails to build", fixed
> by commit 7f6d3f395023ff430cf8b7a981d4780698e9d132
> "gnu: gcc-arm-none-eabi: Fix conflicting GCC headers".

Closing both reports as gcc-4.8.5 is currently building and substitutable:
 https://ci.guix.gnu.org/build/3409224/details