Re: GDB 13.1 and clang

Eli Zaretskii via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> Date: Wed, 8 Mar 2023 16:36:45 -0500
> From: Simon Marchi via Gdb <[email protected]>
> 
> > 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.