public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1
@ 2023-03-09  3:19 chrisj at rtems dot org
  2023-03-09  3:24 ` [Bug gdb/30214] " tromey at sourceware dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: chrisj at rtems dot org @ 2023-03-09  3:19 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

            Bug ID: 30214
           Summary: GDB 13.1 does not compile on FreeBSD 13.1
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: chrisj at rtems dot org
  Target Milestone: ---

Created attachment 14742
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14742&action=edit
FreeBSD 13 include path fix

If the binutils package is install GDB 13.1 does not compile when building an
ARM GDB for RTEMS. The error is:

 In file included from ../../gdb-13.1/gdb/xml-tdesc.c:23:
 In file included from ../../gdb-13.1/gdb/target.h:42:
 In file included from ../../gdb-13.1/gdb/infrun.h:21:
 In file included from ../../gdb-13.1/gdb/gdbthread.h:26:
 In file included from ../../gdb-13.1/gdb/breakpoint.h:38:
 ../../gdb-13.1/gdb/target/waitstatus.h:113:1: error: use of undeclared
 identifier 'DIAGNOSTIC_ERROR_SWITCH'
 DIAGNOSTIC_ERROR_SWITCH
 ^

The binutils package is:

 $ pkg which /usr/local/include/diagnostics.h
 /usr/local/include/diagnostics.h was installed by package binutils-2.37_2,1

The attached patch from John resolved the problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
@ 2023-03-09  3:24 ` tromey at sourceware dot org
  2023-03-09  8:40 ` mark at klomp dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-03-09  3:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.2
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Chris Johns from comment #0)

>  /usr/local/include/diagnostics.h was installed by package binutils-2.37_2,1

Installing these things always seemed like a mistake to me :{

> The attached patch from John resolved the problem.

Seems fine, what is John's last name + some email addr for attribution in git?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
  2023-03-09  3:24 ` [Bug gdb/30214] " tromey at sourceware dot org
@ 2023-03-09  8:40 ` mark at klomp dot org
  2023-03-09 21:57 ` chrisj at rtems dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mark at klomp dot org @ 2023-03-09  8:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Tom Tromey from comment #1)
> (In reply to Chris Johns from comment #0)
> > The attached patch from John resolved the problem.
> 
> Seems fine, what is John's last name + some email addr for attribution in
> git?

John Baldwin <jhb@FreeBSD.org>
https://inbox.sourceware.org/gdb/70b50c1d-29bf-2c5c-2dbb-c2ed7dc55ab2@FreeBSD.org/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
  2023-03-09  3:24 ` [Bug gdb/30214] " tromey at sourceware dot org
  2023-03-09  8:40 ` mark at klomp dot org
@ 2023-03-09 21:57 ` chrisj at rtems dot org
  2023-03-10 14:40 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: chrisj at rtems dot org @ 2023-03-09 21:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

--- Comment #3 from Chris Johns <chrisj at rtems dot org> ---
Mark, thanks for providing the needed details and Tom I am sorry I should have
provided more context in the report.

Is there anything further I need to do to help?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
                   ` (2 preceding siblings ...)
  2023-03-09 21:57 ` chrisj at rtems dot org
@ 2023-03-10 14:40 ` tromey at sourceware dot org
  2023-03-10 20:05 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-03-10 14:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Chris Johns from comment #3)
> Mark, thanks for providing the needed details and Tom I am sorry I should
> have provided more context in the report.

No problem.

> Is there anything further I need to do to help?

Nope.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
                   ` (3 preceding siblings ...)
  2023-03-10 14:40 ` tromey at sourceware dot org
@ 2023-03-10 20:05 ` cvs-commit at gcc dot gnu.org
  2023-03-10 20:09 ` cvs-commit at gcc dot gnu.org
  2023-03-10 20:10 ` jhb at FreeBSD dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-10 20:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by John Baldwin <jhb@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a2fbb6903889c8fe32f4f3b890ef4b8c565d6b84

commit a2fbb6903889c8fe32f4f3b890ef4b8c565d6b84
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Fri Mar 10 12:01:40 2023 -0800

    PR gdb/30214: Prefer local include paths to system include paths

    Some systems may install binutils headers into a system location
    (e.g. /usr/local/include on FreeBSD) which may also include headers
    for other external packages used by GDB such as zlib or zstd.  If a
    system include path such as /usr/local/include is added before local
    include paths to directories within a clone or release tarball, then
    headers from the external binutils package are used which can result
    in build failures if the external binutils package is out of sync with
    the version of GDB being built.

    To fix, sort the include paths in INTERNAL_CFLAGS_BASE to add CFLAGS
    for "local" componenets before external components.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30214
    Reviewed-By: Tom Tromey <tom@tromey.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
                   ` (4 preceding siblings ...)
  2023-03-10 20:05 ` cvs-commit at gcc dot gnu.org
@ 2023-03-10 20:09 ` cvs-commit at gcc dot gnu.org
  2023-03-10 20:10 ` jhb at FreeBSD dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-10 20:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-13-branch branch has been updated by John Baldwin <jhb@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a980a7d24b9ab416a70880182d4e6b4975967d38

commit a980a7d24b9ab416a70880182d4e6b4975967d38
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Fri Mar 10 12:01:40 2023 -0800

    PR gdb/30214: Prefer local include paths to system include paths

    Some systems may install binutils headers into a system location
    (e.g. /usr/local/include on FreeBSD) which may also include headers
    for other external packages used by GDB such as zlib or zstd.  If a
    system include path such as /usr/local/include is added before local
    include paths to directories within a clone or release tarball, then
    headers from the external binutils package are used which can result
    in build failures if the external binutils package is out of sync with
    the version of GDB being built.

    To fix, sort the include paths in INTERNAL_CFLAGS_BASE to add CFLAGS
    for "local" componenets before external components.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30214
    Reviewed-By: Tom Tromey <tom@tromey.com>
    (cherry picked from commit a2fbb6903889c8fe32f4f3b890ef4b8c565d6b84)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/30214] GDB 13.1 does not compile on FreeBSD 13.1
  2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
                   ` (5 preceding siblings ...)
  2023-03-10 20:09 ` cvs-commit at gcc dot gnu.org
@ 2023-03-10 20:10 ` jhb at FreeBSD dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jhb at FreeBSD dot org @ 2023-03-10 20:10 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30214

jhb at FreeBSD dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |jhb at FreeBSD dot org
                 CC|                            |jhb at FreeBSD dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from jhb at FreeBSD dot org ---
Fix merged to master and gdb-13-branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-10 20:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09  3:19 [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1 chrisj at rtems dot org
2023-03-09  3:24 ` [Bug gdb/30214] " tromey at sourceware dot org
2023-03-09  8:40 ` mark at klomp dot org
2023-03-09 21:57 ` chrisj at rtems dot org
2023-03-10 14:40 ` tromey at sourceware dot org
2023-03-10 20:05 ` cvs-commit at gcc dot gnu.org
2023-03-10 20:09 ` cvs-commit at gcc dot gnu.org
2023-03-10 20:10 ` jhb at FreeBSD dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).