public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "chrisj at rtems dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/30214] New: GDB 13.1 does not compile on FreeBSD 13.1
Date: Thu, 09 Mar 2023 03:19:10 +0000	[thread overview]
Message-ID: <bug-30214-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-03-09  3:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-09  3:19 chrisj at rtems dot org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30214-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).