https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129184
Bug ID: 129184
Summary: gcc-autoregen: generated files out of sync
(gcc/config.in ordering, gm2-libs-host.h.in
hand-edited)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: yansendao at 126 dot com
Target Milestone: ---
The gcc-autoregen buildbot has had no green run since build #29691
(2026-11-25 02:46 UTC). Build #29910 (2026-12-01 11:12 UTC) still fails with
the same `git diff --exit-code` mismatch. The builder regenerates the
autotools files with autoconf-2.69/automake-1.15.1 and requires the result to
match the tree byte for byte, so a sticky mismatch makes every later commit
fail and inflates the blamelist (build #29896 mailed 205 authors).
Two generated files currently differ.
1. gcc/config.in, from commit 94a2913f9189 ("bpf: require assembler support
for the arena address space [PR124974]")
HAVE_AS_BPF_ADDR_SPACE_CAST was committed before
HAVE_AS_AVR_MRMW_OPTION. autoheader emits the templates sorted by macro
name, so regeneration moves the AVR entry before the BPF one. This is
fixed by rerunning autoregen and committing gcc/config.in as generated.
2. gcc/m2/gm2-libs/gm2-libs-host.h.in, from commit 1c1078eef8ac ("modula2:
Allow m2-whole-program to rebuild m2 front end")
That commit hand-edited the autoheader-generated file: it added an
#ifndef GM2_LIBS_HOST_H / #define / #endif include guard and removed the
PACKAGE_* templates. autoregen.py runs, in gcc/m2/gm2-libs,
autoheader-2.69 -f config-host.ac
which recreates the original autoheader output (no include guard, with
PACKAGE_*), so this hunk can never disappear by itself. The guard can be
expressed in config-host.ac with AH_TOP/AH_BOTTOM; the removal of the
PACKAGE_* templates is not expressible in autoheader output and needs a
separate decision (e.g. stop regenerating this file). This part needs the
m2 maintainer.
Last green build: #29691, 2026-11-25 02:46 UTC.
First red build: #29692, 2026-11-25 03:03 UTC (a different cause, now gone).
Current failing diff: #29896 and #29910.
Step 2 (autoregen.py, shows the autoheader-2.69 invocation):
https://builder.sourceware.org/buildbot/#/builders/269/builds/29896/steps/2/logs/stdio
Step 3 (git diff):
https://builder.sourceware.org/buildbot/#/builders/269/builds/29896/steps/3/logs/stdio
Diff of the generated files (head of the step 3 log):
diff --git a/gcc/config.in b/gcc/config.in
-/* Define if your bpf assembler supports the addr_space_cast instruction,
- which the arena address space needs. */
-#undef HAVE_AS_BPF_ADDR_SPACE_CAST
+/* Define if your avr assembler supports -mrmw option. */
+#undef HAVE_AS_AVR_MRMW_OPTION
...
diff --git a/gcc/m2/gm2-libs/gm2-libs-host.h.in
b/gcc/m2/gm2-libs/gm2-libs-host.h.in
-#ifndef GM2_LIBS_HOST_H
-#define GM2_LIBS_HOST_H
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_URL
+#undef PACKAGE_VERSION
-#endif