On Mon, Dec 16, 2024 at 07:07:12PM +0100, Jeremie Courreges-Anglas wrote:
> 
> So we got recent reports about some gcc ports failing to build for
> obscure reasons.  The last known failure was spotted  by tb@:
> 
>   https://pbot.rmdir.de/Br7B606-XUwXsk9LMLLDNA
> 
> The issue is the ugly ansidecl.h header shipped by devel/gdb and
> picked up by the compiler instead of the local copy in
> ${WRKSRC}/include.  This ansidecl.h header is installed as a support
> header for other bfd headers.  I guess the header installed with
> gdb-13.2 doesn't provide anymore the necessary compat defines used in
> the affected gcc copies.

Thanks for hunting this down. I verified that this avoids the issue in
rsicv-elf/gcc I ran into intermittently.

> If we want to ship some recent libbfd support, I think we should do it
> from devel/binutils.  But right now nothing in the ports tree uses
> libbfd, so the easiest way forward is to just drop bfd from devel/gdb.
> I have verified that lang/rust still builds with this diff.

Makes sense to me. I haven't verified that part.

> I might also add fixes to the various devel/*/gcc ports at a later
> point, just in case we decide to install libbfd again.

That would also make sense.

> ok?

ok tb

Reply via email to