Re: GDB 13.1 and clang

Eli Zaretskii via Gdb
2023-03-09T07:07:48Z

> Date: Wed, 8 Mar 2023 16:36:45 -0500
> From: Simon Marchi via Gdb <gdb@sourceware.org>
>
> > There is another version installed here:
> >
> > $ pkg which /usr/local/include/diagnostics.h
> > /usr/local/include/diagnostics.h was installed by package binutils-2.37_2,1
> >
> > We have /usr/local/include early in the include list on FreeBSD to pick up some
> > of the required libraries installed as packages. I will check for a package
> > update or I revisit the build flags to see how it can be handled.
> Huh, diagnostics.h is an internal header file, I don't think binutils
> packages should ship it. I just looked up, and Ubuntu and Arch packages
> ship it as well... sigh.

diagnostics.h is included by bfd.h, which is installed by Binutils'
"make install", so I don't think they can avoid shipping
diagnostics.h. They should maybe have a separate header file for
that, under some FOO_internal.h name or something, which could serve
for that purpose. But this should be taken up with Binutils
maintainers, of course.