Setting up Solaris GDB builders
Mark Wielaard
mark@klomp.org
Wed Sep 16 22:08:46 GMT 2026
Hi Rainer,
On Sun, Aug 23, 2026 at 11:43:48AM +0200, Rainer Orth wrote:
> When setting up the Solaris binutils workers/builders, I mentioned the
> possibility to also create matching GDB builders. GDB is now almost
> ready for this.
>
> Here's the setup I envision:
>
> * We can just reuse the existing solaris11-sparcv9 and solaris11-amd64
> workers. Unlike what I thought initially, there's no need to set up
> separate workers for gdb.
Great.
> * To keep build times in check, I'd like the double ncpus/maxcpus of the
> workers to 8.
Set to 8. Do you still want max_builds=1? That is one build at a
time. You could also keep cpus at 4 but set max_builds to 2. So if
there is a binutils and gdb build pending then they can be done in
parallel.
> * There's no need for 32-bit GDB builders, so we should go for only
> gdb-solaris11-amd64 and gdb-solaris11-sparcv9.
OK. I also added try builders.
> * There are a couple of peculiarities about the builders:
>
> ** They shouldn't include sim. Right now, it doesn't even build (PR
> sim/34536), but even if it did, there's little point, so excluding it
> will reduce build time.
>
> ** In a similar vein, the builds should be configured without
> --enable-targets=all. While the build itself has recently been fixed
> in response to PR build/34537, I'm primarily interested in a
> native-only configuration.
OK added a special gdb_configure_solaris11_step that doesn't include
--enable-targets=all, but does add --disable-sim.
> ** The PATH for the builders again needs to differ from the binutils
> ones: they can and should use the native tools only, i.e. use a PATH
> of /usr/gnu/bin:/usr/bin:/usr/sbin.
env PATH for all builders set to /usr/gnu/bin:/usr/bin:/usr/sbin.
> Currently, there's one remaining failure, reported as PR testsuite/34535.
> A patch is currently in review:
>
> Handle missing catchpoint support in gdb.base/break.exp [PR34535]
> https://sourceware.org/pipermail/gdb-patches/2026-August/229610.html
> https://sourceware.org/pipermail/gdb-patches/2026-August/229689.html
>
> Once that's in, the builders will have clean results for the limited set
> of tests used.
So I assume you want to build only the gdb_test_exp tests like (most)
other gdb builders.
I wasn't sure if you wanted to test
--target_board=native-[extended-]gdbserver
so that isn't included for now. But can of course be added.
I checked in the attached patch. Lets see how that works out.
Thanks,
Mark
-------------- next part --------------
>From 8856bace69fb341392a432b10d714445ec636a95 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 17 Sep 2026 00:04:55 +0200
Subject: [PATCH] Add gdb-solaris11-sparcv9 and gdb-solaris11-amd64 (plus try)
builders
Increase cpus for solaris11 workers to 8.
Add gdb-[try-]solaris11-sparcv9 and gdb-[try-]solaris11-amd64
builders. New gdb_configure_solaris11_step no targets all, disable
sim. gdb_factory_solaris11 used by all new builders.
---
builder/master.cfg | 62 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 60 insertions(+), 2 deletions(-)
diff --git a/builder/master.cfg b/builder/master.cfg
index 1d9fae5b2e2b..38bf956ac4e2 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -190,14 +190,14 @@ c['workers'].append(debian_ppc64_worker)
solaris11_sparcv9_worker = worker.Worker("solaris11-sparcv9",
getpw("solaris11-sparcv9"),
max_builds=1,
- properties={'ncpus': 4, 'maxcpus': 4},
+ properties={'ncpus': 8, 'maxcpus': 8},
notify_on_missing=['ro@CeBiTec.Uni-Bielefeld.DE']);
c['workers'].append(solaris11_sparcv9_worker)
solaris11_amd64_worker = worker.Worker("solaris11-amd64",
getpw("solaris11-amd64"),
max_builds=1,
- properties={'ncpus': 4, 'maxcpus': 4},
+ properties={'ncpus': 8, 'maxcpus': 8},
notify_on_missing=['ro@CeBiTec.Uni-Bielefeld.DE']);
c['workers'].append(solaris11_amd64_worker)
@@ -1168,6 +1168,8 @@ gdb_scheduler = schedulers.SingleBranchScheduler(
"gdb-debian-ppc64",
"gdb-fedora-ppc64le",
"gdb-ubuntu-riscv",
+ "gdb-solaris11-sparcv9",
+ "gdb-solaris11-amd64",
"gdb-debian-amd64-full",
"gdb-debian-arm64-full",
"gdb-riscv-full"])
@@ -1189,6 +1191,8 @@ gdb_try_scheduler = schedulers.AnyBranchScheduler(
"gdb-try-debian-armhf",
"gdb-try-fedora-arm64",
# "gdb-try-gentoo-sparc",
+ "gdb-try-solaris11-sparcv9",
+ "gdb-try-solaris11-amd64",
"gdb-try-debian-i386",
"gdb-try-fedora-s390x",
"gdb-try-fedora-ppc64le"])
@@ -3702,6 +3706,14 @@ gdb_configure_no_sim_step = steps.Configure(
name='configure',
haltOnFailure=True,
logfiles={"config.log": "config.log"})
+# disable sim and only native targets (no --enable-targets=all)
+gdb_configure_solaris11_step = steps.Configure(
+ workdir='gdb-build',
+ command=['../binutils-gdb/configure',
+ '--disable-sim'],
+ name='configure',
+ haltOnFailure=True,
+ logfiles={"config.log": "config.log"})
# Use only address sanitizer, code doesn't build with undefined sanitizer.
# Disable sim since it doesn't even build with address sanitizer,
gdb_configure_sanitize_step = steps.Configure(
@@ -3919,6 +3931,18 @@ gdb_no_sim_factory.addSteps(bunsen_logfile_upload_cpio_steps(
tagsuffix='/extended-gdbserver'))
gdb_no_sim_factory.addStep(gdb_rm_step)
+gdb_factory_solaris11 = util.BuildFactory()
+gdb_factory_solaris11.addStep(gdb_git_step)
+gdb_factory_solaris11.addStep(gdb_rm_step)
+gdb_factory_solaris11.addStep(gdb_configure_solaris11_step)
+gdb_factory_solaris11.addStep(gdb_make_step)
+gdb_factory_solaris11.addStep(make_gdb_check_step())
+gdb_factory_solaris11.addSteps(bunsen_logfile_upload_cpio_steps(
+ ["*.sum", "*.log"],
+ workdir='gdb-build',
+ tagsuffix='/native'))
+gdb_factory_solaris11.addStep(gdb_rm_step)
+
# gdb checks plus python black formatter and make tags checkers
gdb_extra_factory = util.BuildFactory()
gdb_extra_factory.addStep(gdb_git_step)
@@ -4242,6 +4266,40 @@ gdb_ubuntu_riscv_builder = util.BuilderConfig(
factory=gdb_factory)
c['builders'].append(gdb_ubuntu_riscv_builder)
+gdb_solaris11_sparcv9_builder = util.BuilderConfig(
+ name="gdb-solaris11-sparcv9",
+ workernames=['solaris11-sparcv9'],
+ tags=["gdb", "solaris", "sparcv9"],
+ env={'PATH': '/usr/gnu/bin:/usr/bin:/usr/sbin'},
+ factory=gdb_factory_solaris11)
+c['builders'].append(gdb_solaris11_sparcv9_builder)
+
+gdb_try_solaris11_sparcv9_builder = util.BuilderConfig(
+ name="gdb-try-solaris11-sparcv9",
+ collapseRequests=True,
+ workernames=['solaris11-sparcv9'],
+ tags=["gdb-try", "solaris", "sparcv9"],
+ env={'PATH': '/usr/gnu/bin:/usr/bin:/usr/sbin'},
+ factory=gdb_factory_solaris11)
+c['builders'].append(gdb_try_solaris11_sparcv9_builder)
+
+gdb_solaris11_amd64_builder = util.BuilderConfig(
+ name="gdb-solaris11-amd64",
+ workernames=['solaris11-amd64'],
+ tags=["gdb", "solaris", "amd64"],
+ env={'PATH': '/usr/gnu/bin:/usr/bin:/usr/sbin'},
+ factory=gdb_factory_solaris11)
+c['builders'].append(gdb_solaris11_amd64_builder)
+
+gdb_try_solaris11_amd64_builder = util.BuilderConfig(
+ name="gdb-try-solaris11-amd64",
+ collapseRequests=True,
+ workernames=['solaris11-amd64'],
+ tags=["gdb-try", "solaris", "amd64"],
+ env={'PATH': '/usr/gnu/bin:/usr/bin:/usr/sbin'},
+ factory=gdb_factory_solaris11)
+c['builders'].append(gdb_try_solaris11_amd64_builder)
+
gdb_snapshots_builder = util.BuilderConfig(
name="gdb-snapshots",
collapseRequests=True,
--
2.55.0
More information about the Buildbot
mailing list