Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Upgrading autoconf and automake
@ 2026-11-07 18:06 Pietro Monteiro via Gdb
  2026-11-17 14:59 ` Tom Tromey
  0 siblings, 1 reply; 11+ messages in thread
From: Pietro Monteiro via Gdb @ 2026-11-07 18:06 UTC (permalink / raw)
  To: binutils, gdb; +Cc: Simon Marchi

I decided to try upgrading autoconf and automake to the latest
available versions, respectively 2.73 and 1.19*. I did the upgrade for
GCC put the result in a branch on the forge
(https://forge.sourceware.org/pietro/gcc.git branch upgrade-autotools).

I also did the the upgrade for binutils-gdb tree and put it in a
branch on the forge too
(https://forge.sourceware.org/pietro/binutils-gdb.git branch
upgrade-autotools).

So far I did only some basic testing. The patch at the tip of that
branch has a changes to libiberty configure.ac that I still need to
sent for review.

One point that came up in the discussion about this upgrade in the GCC
mailinglist[1] is that binutils requires C99. So I want to make sure
we aren't regressing there.

What kind of testing should be done? Are other people able to help
here, specially for targets that don't use the GNU toolchain?

Thanks,
Pietro

* Automake 1.20 was just released. But I haven't looked into the
  release notes and I won't try to upgrade to it unless someone knows
  of good reason for it.

[1] https://inbox.sourceware.org/gcc/18b284b3-1b50-481a-a7ee-6e3e12073df0@app.fastmail.com/t/#u

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

* Re: Upgrading autoconf and automake
  2026-11-07 18:06 Upgrading autoconf and automake Pietro Monteiro via Gdb
@ 2026-11-17 14:59 ` Tom Tromey
  2026-11-17 22:35   ` Pietro Monteiro via Gdb
                     ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Tom Tromey @ 2026-11-17 14:59 UTC (permalink / raw)
  To: Pietro Monteiro; +Cc: binutils, gdb, Simon Marchi

>>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:

> I decided to try upgrading autoconf and automake to the latest
> available versions, respectively 2.73 and 1.19*.

Thank you for doing this.

> What kind of testing should be done? Are other people able to help
> here, specially for targets that don't use the GNU toolchain?

In the binutils-gdb tree, the hosts matter more than the targets.

I don't think there are many things built for the target.  Maybe just
gdbserver, which has only been ported to a handful of platforms (and
some of those ports are probably dead).

I would suggest trying a Linux build, a mingw build (these can be done
on a Linux machine with cross toolchains), and ideally an AIX build
(there's a machine in the compile farm).

That probably covers most gdb hosts (I don't know what binutils
expects).

You'll notice macOS is missing but there's no active maintenance for
that in gdb.

Tom

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

* Re: Upgrading autoconf and automake
  2026-11-17 14:59 ` Tom Tromey
@ 2026-11-17 22:35   ` Pietro Monteiro via Gdb
  2026-11-19 15:54     ` Tom Tromey
  2026-11-24  2:35   ` Pietro Monteiro via Gdb
  2026-11-24  6:45   ` Pietro Monteiro via Gdb
  2 siblings, 1 reply; 11+ messages in thread
From: Pietro Monteiro via Gdb @ 2026-11-17 22:35 UTC (permalink / raw)
  To: Tom Tromey; +Cc: binutils, gdb, Simon Marchi

On Tue, Nov 17, 2026, at 9:59 AM, Tom Tromey wrote:
>>>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>
>> I decided to try upgrading autoconf and automake to the latest
>> available versions, respectively 2.73 and 1.19*.
>
> Thank you for doing this.
>
>> What kind of testing should be done? Are other people able to help
>> here, specially for targets that don't use the GNU toolchain?
>
> In the binutils-gdb tree, the hosts matter more than the targets.
>
> I don't think there are many things built for the target.  Maybe just
> gdbserver, which has only been ported to a handful of platforms (and
> some of those ports are probably dead).
>
> I would suggest trying a Linux build, a mingw build (these can be done
> on a Linux machine with cross toolchains), and ideally an AIX build
> (there's a machine in the compile farm).

Is `$REPO/configure —enable-gdb` and then `make && make check` enough?

Maybe also “ --enable-targets=all”
and “ --enable-binary-file-formats=all”?

> That probably covers most gdb hosts (I don't know what binutils
> expects).
>
> You'll notice macOS is missing but there's no active maintenance for
> that in gdb.
>
> Tom

Thanks,
Pietro

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

* Re: Upgrading autoconf and automake
  2026-11-17 22:35   ` Pietro Monteiro via Gdb
@ 2026-11-19 15:54     ` Tom Tromey
  2026-11-19 16:13       ` Simon Marchi via Gdb
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Tromey @ 2026-11-19 15:54 UTC (permalink / raw)
  To: Pietro Monteiro; +Cc: Tom Tromey, binutils, gdb, Simon Marchi

>>>>> "Pietro" == Pietro Monteiro <pietro@sociotechnical.xyz> writes:

Pietro> Is `$REPO/configure —enable-gdb` and then `make && make check` enough?

Yeah.  On some platforms the test suite results aren't clean though.

Pietro> Maybe also “ --enable-targets=all”
Pietro> and “ --enable-binary-file-formats=all”?

It can't hurt.

I guess I'd expect most configure problems to be detected just by
building.

Tom

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

* Re: Upgrading autoconf and automake
  2026-11-19 15:54     ` Tom Tromey
@ 2026-11-19 16:13       ` Simon Marchi via Gdb
  2026-11-19 17:10         ` Mark Wielaard
  2026-11-24  2:26         ` Pietro Monteiro via Gdb
  0 siblings, 2 replies; 11+ messages in thread
From: Simon Marchi via Gdb @ 2026-11-19 16:13 UTC (permalink / raw)
  To: Tom Tromey, Pietro Monteiro; +Cc: binutils, gdb, Simon Marchi

On 11/19/26 10:54 AM, Tom Tromey wrote:
>>>>>> "Pietro" == Pietro Monteiro <pietro@sociotechnical.xyz> writes:
> 
> Pietro> Is `$REPO/configure —enable-gdb` and then `make && make check` enough?
> 
> Yeah.  On some platforms the test suite results aren't clean though.

For GDB, I'd say just do a smoke test like:

  make check TESTS="gdb.base/break.exp"

Any more subtle bug, if any, will (hopefully) come up as people
routinely test on the platforms they care about.

Simon

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

* Re: Upgrading autoconf and automake
  2026-11-19 16:13       ` Simon Marchi via Gdb
@ 2026-11-19 17:10         ` Mark Wielaard
  2026-11-24  2:26         ` Pietro Monteiro via Gdb
  1 sibling, 0 replies; 11+ messages in thread
From: Mark Wielaard @ 2026-11-19 17:10 UTC (permalink / raw)
  To: Simon Marchi; +Cc: Tom Tromey, Pietro Monteiro, binutils, gdb, Simon Marchi

Hi,

On Thu, Nov 19, 2026 at 11:13:20AM -0500, Simon Marchi via Gdb wrote:
> On 11/19/26 10:54 AM, Tom Tromey wrote:
> >>>>>> "Pietro" == Pietro Monteiro <pietro@sociotechnical.xyz> writes:
> > 
> > Pietro> Is `$REPO/configure —enable-gdb` and then `make && make check` enough?
> > 
> > Yeah.  On some platforms the test suite results aren't clean though.
> 
> For GDB, I'd say just do a smoke test like:
> 
>   make check TESTS="gdb.base/break.exp"
> 
> Any more subtle bug, if any, will (hopefully) come up as people
> routinely test on the platforms they care about.

There are also the gdb buildbot try bots:
https://builder.sourceware.org/buildbot/#/builders?tags=gdb-try

It isn't too diverse, but should at least show issues with gnu/linux,
solaris11, 32/64bit and big/little endian setups.

It seems it is only documented for binutils, but works the same for
gdb: https://sourceware.org/binutils/wiki/Buildbot

Cheers,

Mark

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

* Re: Upgrading autoconf and automake
  2026-11-19 16:13       ` Simon Marchi via Gdb
  2026-11-19 17:10         ` Mark Wielaard
@ 2026-11-24  2:26         ` Pietro Monteiro via Gdb
  2026-11-24 14:55           ` Simon Marchi via Gdb
  1 sibling, 1 reply; 11+ messages in thread
From: Pietro Monteiro via Gdb @ 2026-11-24  2:26 UTC (permalink / raw)
  To: Simon Marchi, Tom Tromey; +Cc: binutils, gdb, Simon Marchi



On 2026-11-19 11:13, Simon Marchi wrote:
> On 11/19/26 10:54 AM, Tom Tromey wrote:
>>>>>>> "Pietro" == Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>
>> Pietro> Is `$REPO/configure —enable-gdb` and then `make && make check` enough?
>>
>> Yeah.  On some platforms the test suite results aren't clean though.
> 
> For GDB, I'd say just do a smoke test like:
> 
>    make check TESTS="gdb.base/break.exp"


On my x86_64-linux-gnu laptop I get:

  === gdb Summary ===

# of expected passes            117


I did a try build as Mark suggested. I had a weird failure on the 
binutils debian x86_64 build that I can't reproduce it locally. All the 
other binutils and gdb builds were successful:
https://builder.sourceware.org/buildbot/#/changes/156604

pietro

> 
> Any more subtle bug, if any, will (hopefully) come up as people
> routinely test on the platforms they care about.
> 
> Simon


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

* Re: Upgrading autoconf and automake
  2026-11-17 14:59 ` Tom Tromey
  2026-11-17 22:35   ` Pietro Monteiro via Gdb
@ 2026-11-24  2:35   ` Pietro Monteiro via Gdb
  2026-11-24 18:21     ` Simon Marchi via Gdb
  2026-11-24  6:45   ` Pietro Monteiro via Gdb
  2 siblings, 1 reply; 11+ messages in thread
From: Pietro Monteiro via Gdb @ 2026-11-24  2:35 UTC (permalink / raw)
  To: Tom Tromey; +Cc: binutils, gdb, Simon Marchi



On 2026-11-17 09:59, Tom Tromey wrote:
>>>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
> 
>> I decided to try upgrading autoconf and automake to the latest
>> available versions, respectively 2.73 and 1.19*.
> 
> Thank you for doing this.
> 
>> What kind of testing should be done? Are other people able to help
>> here, specially for targets that don't use the GNU toolchain?
> 
> In the binutils-gdb tree, the hosts matter more than the targets.
> 
> I don't think there are many things built for the target.  Maybe just
> gdbserver, which has only been ported to a handful of platforms (and
> some of those ports are probably dead).
> 
> I would suggest trying a Linux build, a mingw build (these can be done
> on a Linux machine with cross toolchains), and ideally an AIX build
> (there's a machine in the compile farm).

I can't build neither gdb 18.1 nor master on the cfarm AIX host 
(cfarm119). It has gcc 13 installed. Do I need a newer version?

pietro

> That probably covers most gdb hosts (I don't know what binutils
> expects).
> 
> You'll notice macOS is missing but there's no active maintenance for
> that in gdb.
> 
> Tom


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

* Re: Upgrading autoconf and automake
  2026-11-17 14:59 ` Tom Tromey
  2026-11-17 22:35   ` Pietro Monteiro via Gdb
  2026-11-24  2:35   ` Pietro Monteiro via Gdb
@ 2026-11-24  6:45   ` Pietro Monteiro via Gdb
  2 siblings, 0 replies; 11+ messages in thread
From: Pietro Monteiro via Gdb @ 2026-11-24  6:45 UTC (permalink / raw)
  To: Tom Tromey; +Cc: binutils, gdb, Simon Marchi



On 2026-11-17 09:59, Tom Tromey wrote:
>>>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
> 
>> I decided to try upgrading autoconf and automake to the latest
>> available versions, respectively 2.73 and 1.19*.
> 
> Thank you for doing this.
> 
>> What kind of testing should be done? Are other people able to help
>> here, specially for targets that don't use the GNU toolchain?
> 
> In the binutils-gdb tree, the hosts matter more than the targets.
> 
> I don't think there are many things built for the target.  Maybe just
> gdbserver, which has only been ported to a handful of platforms (and
> some of those ports are probably dead).
> 
> I would suggest trying a Linux build, a mingw build (these can be done
> on a Linux machine with cross toolchains), and ideally an AIX build
> (there's a machine in the compile farm).

I was able to do a mingw build using across toolchain. I tried running 
it under wine but it fails because it can't find some dlls. I guess I 
have to configure wine to look for the in my toolchain dir.

pietro


> That probably covers most gdb hosts (I don't know what binutils
> expects).
> 
> You'll notice macOS is missing but there's no active maintenance for
> that in gdb.
> 
> Tom


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

* Re: Upgrading autoconf and automake
  2026-11-24  2:26         ` Pietro Monteiro via Gdb
@ 2026-11-24 14:55           ` Simon Marchi via Gdb
  0 siblings, 0 replies; 11+ messages in thread
From: Simon Marchi via Gdb @ 2026-11-24 14:55 UTC (permalink / raw)
  To: Pietro Monteiro, Tom Tromey; +Cc: binutils, gdb, Simon Marchi

On 11/23/26 9:26 PM, Pietro Monteiro wrote:
> 
> 
> On 2026-11-19 11:13, Simon Marchi wrote:
>> On 11/19/26 10:54 AM, Tom Tromey wrote:
>>>>>>>> "Pietro" == Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>>
>>> Pietro> Is `$REPO/configure —enable-gdb` and then `make && make check` enough?
>>>
>>> Yeah.  On some platforms the test suite results aren't clean though.
>>
>> For GDB, I'd say just do a smoke test like:
>>
>>    make check TESTS="gdb.base/break.exp"
> 
> 
> On my x86_64-linux-gnu laptop I get:
> 
>  === gdb Summary ===
> 
> # of expected passes            117
> 
> 
> I did a try build as Mark suggested. I had a weird failure on the binutils debian x86_64 build that I can't reproduce it locally. All the other binutils and gdb builds were successful:
> https://builder.sourceware.org/buildbot/#/changes/156604
> 
> pietro

../../binutils-gdb/bfd/elfxx-x86.c: In function ‘_bfd_x86_elf_link_setup_gnu_properties’:
../../binutils-gdb/bfd/elfxx-x86.c:4836:16: error: incompatible types when returning type ‘_Bool’ but ‘bfd *’ was expected
 4836 |         return false;
      |                ^~~~~
make[3]: *** [Makefile:1924: elfxx-x86.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

This is:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556

This builder is using gcc 14.2, but the fix is only in gcc 14.3, and gcc
15 and up.

Your autoconf upgrade is probably causing the build to use C23 instead
of a previous standard version, or the compiler's default.  Which is
fine, if binutils wanted to use a specific C version, they should
specify it in their configure.ac.

I suggest you send a patch to binutils to change that false to NULL.

Simon

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

* Re: Upgrading autoconf and automake
  2026-11-24  2:35   ` Pietro Monteiro via Gdb
@ 2026-11-24 18:21     ` Simon Marchi via Gdb
  0 siblings, 0 replies; 11+ messages in thread
From: Simon Marchi via Gdb @ 2026-11-24 18:21 UTC (permalink / raw)
  To: Pietro Monteiro, Tom Tromey; +Cc: binutils, gdb, Simon Marchi

On 11/23/26 9:35 PM, Pietro Monteiro via Gdb wrote:
> 
> 
> On 2026-11-17 09:59, Tom Tromey wrote:
>>>>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>
>>> I decided to try upgrading autoconf and automake to the latest
>>> available versions, respectively 2.73 and 1.19*.
>>
>> Thank you for doing this.
>>
>>> What kind of testing should be done? Are other people able to help
>>> here, specially for targets that don't use the GNU toolchain?
>>
>> In the binutils-gdb tree, the hosts matter more than the targets.
>>
>> I don't think there are many things built for the target.  Maybe just
>> gdbserver, which has only been ported to a handful of platforms (and
>> some of those ports are probably dead).
>>
>> I would suggest trying a Linux build, a mingw build (these can be done
>> on a Linux machine with cross toolchains), and ideally an AIX build
>> (there's a machine in the compile farm).
> 
> I can't build neither gdb 18.1 nor master on the cfarm AIX host (cfarm119). It has gcc 13 installed. Do I need a newer version?

Apparently on AIX we need to build with -pthread for those types to be
visible:

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

I just did a successful build with:

export PATH=/opt/freeware/bin:/opt/cfarm/bison-latest/bin:/opt/cfarm/make-latest/bin:/opt/cfarm/m4-latest/bin:$PATH
../../src/binutils-gdb/configure --disable-sim --with-gmp=/opt/cfarm CXXFLAGS="-g -O2 -pthread"
gmake all-gdb

Note that on this machine, it is best to create a directory with your
name in /scratch and work in that for anything big.

I tested with your autoconf 2.73 patch, seems fine.

Simon

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

end of thread, other threads:[~2026-11-24 18:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 18:06 Upgrading autoconf and automake Pietro Monteiro via Gdb
2026-11-17 14:59 ` Tom Tromey
2026-11-17 22:35   ` Pietro Monteiro via Gdb
2026-11-19 15:54     ` Tom Tromey
2026-11-19 16:13       ` Simon Marchi via Gdb
2026-11-19 17:10         ` Mark Wielaard
2026-11-24  2:26         ` Pietro Monteiro via Gdb
2026-11-24 14:55           ` Simon Marchi via Gdb
2026-11-24  2:35   ` Pietro Monteiro via Gdb
2026-11-24 18:21     ` Simon Marchi via Gdb
2026-11-24  6:45   ` Pietro Monteiro via Gdb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox