Hello all,
On Linux/Debian/Trixie/x86-64
/usr/src/Lang/gcc contains the GCC trunk source tree (commit 2a8af97e3528f)
/usr/src/Lang/_GccTrunk is my build tree with configuration
usr/src/Lang/gcc/configure --enable-shared --enable-threads=posix
--with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace
--disable-multilib --with-gcc-major-version-only --program-suffix=-trunk
--enable-cet --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu --enable-host-shared
--enable-languages=c,c++,jit,lto -with-tune=native --enable-plugins
--enable-libgdiagnostics CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'
the build fails reproductibly at
make[3]: Entering directory '/usr/src/Lang/_GccTrunk/gcc'
if [ -f ../stage_final ] \
&& cmp -s ../stage_current ../stage_final; then \
cp ../prev-gcc/cc1plus-checksum.cc cc1plus-checksum.cc; \
else \
build/genchecksum cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o
cp/constexpr.o cp/constraint.o cp/coroutines.o cp/cp-gimplify.o cp/cp-objcp-
common.o cp/cp-ubsan.o cp/cvt.o cp/contracts.o cp/cxx-pretty-print.o cp/decl.o
cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o
cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/mapper-client.o cp/mapper-
resolver.o cp/method.o cp/module.o cp/name-lookup.o cp/optimize.o cp/parser.o
cp/pt.o cp/ptree.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o
cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o c-family/c-common.o c-
family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-
gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-
family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-
family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-
ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-
family/c-spellcheck.o c-family/c-type-mismatch.o i386-c.o glibc-c.o simple-
diagnostic-path.o lazy-diagnostic-path.o libbackend.a main.o libcommon-target.a
libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a
../libcody/libcody.a libcommon.a ../libcpp/libcpp.a ../libiberty/pic/libiberty.a
../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a \
checksum-options > cc1plus-checksum.cc.tmp && \
/usr/src/Lang/gcc/gcc/../move-if-change cc1plus-checksum.cc.tmp cc1plus-
checksum.cc; \
fi
make[3]: Leaving directory '/usr/src/Lang/_GccTrunk/gcc'
Checking multilib configuration for libgcc...
make[3]: Entering directory '/usr/src/Lang/_GccTrunk/x86_64-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Early copyback; see "all" above for the rationale. The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash /usr/src/Lang/gcc/libgcc/../mkinstalldirs ../.././gcc
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o
crtprec64.o crtprec80.o crtfastmath.o"; \
for file in $parts; do \
rm -f ../.././gcc/$file; \
/usr/bin/install -c -m 644 $file ../.././gcc/;\
case $file in \
*.a)\
x86_64-linux-gnu-ranlib --plugin /usr/libexec/gcc/x86_64-linux-
gnu/14/liblto_plugin.so ../.././gcc/$file ;;\
esac; \
done
# @multilib_flags@ is still needed because this may use
# /usr/src/Lang/_GccTrunk/./gcc/xgcc -B/usr/src/Lang/_GccTrunk/./gcc/ -
B/usr/local/x86_64-linux-gnu/bin/ -B/usr/local/x86_64-linux-gnu/lib/ -isystem
/usr/local/x86_64-linux-gnu/include -isystem /usr/local/x86_64-linux-gnu/sys-
include -fno-checking and -O2 -O2 -g -DIN_GCC -W -Wall -Wno-error=narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fpic -mlong-double-80 -
DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-
stack-protector directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/bash /usr/src/Lang/gcc/libgcc/../mkinstalldirs .
/usr/src/Lang/_GccTrunk/./gcc/xgcc -B/usr/src/Lang/_GccTrunk/./gcc/ -
B/usr/local/x86_64-linux-gnu/bin/ -B/usr/local/x86_64-linux-gnu/lib/ -isystem
/usr/local/x86_64-linux-gnu/include -isystem /usr/local/x86_64-linux-gnu/sys-
include -fno-checking -O2 -O2 -g -DIN_GCC -W -Wall -Wno-error=narrowing -
Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fpic -mlong-double-80 -
DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-
stack-protector -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--
version-script=libgcc.map -o ./libgcc_s.so.1.tmp -O2 -g -B./ _muldi3_s.o
_negdi2_s.o _lshrdi3_s.o _ashldi