Using TinyCC to compile binutils fails in 2.39+
Alan Modra
amodra@gmail.com
Thu May 29 10:15:51 GMT 2025
On Thu, May 29, 2025 at 08:08:05AM +0000, Ludvig Christensen via Binutils wrote:
> When compiling:
>
> bfd/bfd.c:733: error: ';' expected (got "bfd_error_type")
>
> Caused by:
> static TLS bfd_error_type bfd_error;
>
> I believe it can be traced back to when running ./configure:
> checking for thread local storage (TLS) class... none
I think we have a bug here. I'm guessing your bfd/config.h has
#undef TLS
If that's the case then we ought to have
#ifndef TLS
#define TLS
#endif
before uses of TLS in bfd.c
--
Alan Modra
More information about the Binutils
mailing list