Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Burgess <aburgess@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB 18.0.90 available for testing
Date: Sun, 09 Aug 2026 11:22:14 +0300	[thread overview]
Message-ID: <865x1j1z61.fsf@gnu.org> (raw)
In-Reply-To: <6a74ce98.f1a44df3.162c5d.ceef@mx.google.com> (message from Andrew Burgess on Thu, 06 Aug 2026 19:12:40 +0100)

> Date: Thu, 06 Aug 2026 19:12:40 +0100
> From: Andrew Burgess <aburgess@redhat.com>
> 
> Hello,
> 
> I have just finished creating the gdb-18.0.90 pre-release.
> It is available for download at the following location:
> 
>     https://sourceware.org/pub/gdb/snapshots/branch/gdb-18.0.90.tar.xz
> 
> A gzip'ed version is also available: gdb-18.0.90.tar.gz.
> 
> Please give it a test if you can and report any problems you might find.

I've built this pretest for native MinGW debugging on MS-Windows, and
encountered the following minor issues:

1. When configured with  --enable-binary-file-formats='coff,xcoff,elf,macho',
the build fails during final linking of GDB:

       CXXLD  gdb.exe
     d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: machoread.o: in function `macho_check_dsym':
     d:\gnu\gdb-18.0.90\gdb/machoread.c:738:(.text+0xb16): undefined reference to `bfd_mach_o_lookup_command'
     d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: d:\gnu\gdb-18.0.90\gdb/machoread.c:757:(.text+0xbe6): undefined reference to `bfd_mach_o_lookup_command'
     collect2.exe: error: ld returned 1 exit status

This is because bfd/mach-o.c is not compiled for some reason, although
the configure script specified 'macho' as a binary format to support.
I see that when I built GDB 17, I used mach-o, not macho.  But the
configure --help screen says to use 'macho':

  --enable-binary-file-formats=FORMATS
                          enable support for selected file formats (default
                          'all') available formats: coff, elf, macho, xcoff,
                          all

  (I fixed this by reconfiguring without 'macho'.)

2. Recompilation of libsframe/sframe.c emits warnings:

       CC       libsframe_la-sframe.lo
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:127: warning: "PACKAGE" redefined
       127 | #define PACKAGE "libctf"
	   |
     In file included from sframe.c:20:
     config.h:66: note: this is the location of the previous definition
	66 | #define PACKAGE "libsframe"
	   |
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:133: warning: "PACKAGE_NAME" redefined
       133 | #define PACKAGE_NAME "libctf"
	   |
     In file included from sframe.c:20:
     config.h:72: note: this is the location of the previous definition
	72 | #define PACKAGE_NAME "libsframe"
	   |
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:136: warning: "PACKAGE_STRING" redefined
       136 | #define PACKAGE_STRING "libctf 1.2.0"
	   |
     In file included from sframe.c:20:
     config.h:75: note: this is the location of the previous definition
	75 | #define PACKAGE_STRING "libsframe BFD_VERSION"
	   |
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:139: warning: "PACKAGE_TARNAME" redefined
       139 | #define PACKAGE_TARNAME "libctf"
	   |
     In file included from sframe.c:20:
     config.h:78: note: this is the location of the previous definition
	78 | #define PACKAGE_TARNAME "libsframe"
	   |
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:145: warning: "PACKAGE_VERSION" redefined
       145 | #define PACKAGE_VERSION "1.2.0"
	   |
     In file included from sframe.c:20:
     config.h:84: note: this is the location of the previous definition
	84 | #define PACKAGE_VERSION "BFD_VERSION"
	   |
     In file included from ./../libctf/swap.h:23,
		      from sframe.c:27:
     ./../libctf/config.h:173: warning: "VERSION" redefined
       173 | #define VERSION "1.2.0"
	   |
     In file included from sframe.c:20:
     config.h:112: note: this is the location of the previous definition
       112 | #define VERSION "BFD_VERSION"
	   |

This is because sframe.c includes libctf/swap.h, which includes
libctf/config.h, which defines these macros for libctf, not for
libsframe.  Strangely, the initial compilation didn't produce these
warnings, but when I needed to recompile sframe.c later, it did.

Other than that, the MinGW GDB builds okay, passes all the self-tests
("maint selftest"), and seems to work fine.

Thanks.

  reply	other threads:[~2026-08-09  8:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 18:12 Andrew Burgess
2026-08-09  8:22 ` Eli Zaretskii [this message]
2026-08-11 16:25   ` Andrew Burgess

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=865x1j1z61.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=aburgess@redhat.com \
    --cc=gdb-patches@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