Hi,
I was asked to post a patch for a bugzilla PR to gcc-patches@. Two questions
regarding https://gcc.gnu.org/contribute.html#testing :
1) This web page says:
"For a normal native configuration, running
make bootstrap
make -k check
from the top level of the GCC tree (not the gcc subdirectory) will
accomplish this."
But what I get, from a git checkout of the GCC tree:
$ make bootstrap
make: *** No rule to make target 'bootstrap'. Stop.
I think the instructions should be amended to read:
./configure [options]
make bootstrap
make -k check
Right?
2) That's what I did:
$ ./configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu
--prefix=/arch/x86_64-linux-gnu/gnu-inst-gcc/testing --enable-shared
--enable-nls --enable-threads=posix --enable-__cxa_atexit --disable-multilib
--with-as=/arch/x86_64-linux-gnu/gnu-inst-binutils/2.38/bin/as
--with-ld=/arch/x86_64-linux-gnu/gnu-inst-binutils/2.38/bin/ld
--with-gmp=/arch/x86_64-linux-gnu/gnu-inst-gcc/testing
--with-mpfr=/arch/x86_64-linux-gnu/gnu-inst-gcc/testing
--with-mpc=/arch/x86_64-linux-gnu/gnu-inst-gcc/testing
--with-isl=/arch/x86_64-linux-gnu/gnu-inst-gcc/testing
--enable-languages=c,c++,objc,obj-c++,lto,jit,fortran,go,d,m2
--enable-host-shared 2>&1 | tee log0
$ make bootstrap 2>&1 | tee log1
and it fails like this:
/GCC/gcc/host-x86_64-pc-linux-gnu/gcc/xgcc
-B/GCC/gcc/host-x86_64-pc-linux-gnu/gcc/
-B/arch/x86_64-linux-gnu/gnu-inst-gcc/testing/x86_64-pc-linux-gnu/bin/
-B/arch/x86_64-linux-gnu/gnu-inst-gcc/testing/x86_64-pc-linux-gnu/lib/ -isystem
/arch/x86_64-linux-gnu/gnu-inst-gcc/testing/x86_64-pc-linux-gnu/include
-isystem
/arch/x86_64-linux-gnu/gnu-inst-gcc/testing/x86_64-pc-linux-gnu/sys-include
-fno-checking -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-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 -fpic -mlong-double-80 -DUSE_ELF_SYMVER
-fcf-protection -mshstk -I. -I. -I../../host-x86_64-pc-linux-gnu/gcc
-I../.././libgcc -I../.././libgcc/. -I../.././libgcc/../gcc
-I../.././libgcc/../include -I../.././libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o bid128_add.o -MT
bid128_add.o -MD -MP -MF bid128_add.dep -c
../.././libgcc/config/libbid/bid128_add.c
during RTL pass: expand
../.././libgcc/config/libbid/bid128_add.c: In function ‘__bid128_add’:
../.././libgcc/config/libbid/bid128_add.c:637:42: internal compiler error:
Aborted
637 | else if (rnd_mode == ROUNDING_DOWN && x_sign != y_sign)
0x178a410 crash_signal
../.././gcc/toplev.cc:316
0x7fd115f1c51f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7fd115f709fc __pthread_kill_implementation
./nptl/pthread_kill.c:44
0x7fd115f709fc __pthread_kill_internal
./nptl/pthread_kill.c:78
0x7fd115f709fc __GI___pthread_kill
./nptl/pthread_kill.c:89
0x7fd115f1c475 __GI_raise
../sysdeps/posix/raise.c:26
0x7fd115f027f2 __GI_abort
./stdlib/abort.c:79
0x110f4ff choose_mult_variant(machine_mode, long, algorithm*, mult_variant*,
int)
../.././gcc/expmed.cc:3282
0x1149c12 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
../.././gcc/expr.cc:10225
0x114e729 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../.././gcc/expr.cc:11216
0x1145ae1 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
../.././gcc/expr.cc:9408
0xf2ed74 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
../.././gcc/expr.h:313
0x11441c7 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
../.././gcc/expr.cc:8986
0x114d793 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
../.././gcc/expr.cc:10987
0xf69453 expand_gimple_stmt_1
../.././gcc/cfgexpand.cc:3984
0xf6971f expand_gimple_stmt
../.././gcc/cfgexpand.cc:4045
0xf72801 expand_gimple_basic_block
../.././gcc/cfgexpand.cc:6101
0xf752b2 execute
../.././gcc/cfgexpand.cc:6836
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [Makefile:650: bid128_add.o] Error 1
make[3]: Leaving directory '/GCC/gcc/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:20611: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/GCC/gcc'
make[1]: *** [Makefile:30945: stage1-bubble] Error 2
make[1]: Leaving directory '/GCC/gcc'
make: *** [Makefile:31282: bootstrap] Error 2
I am surprised to see such a failure, since x86_64-linux-gnu is the most
common platform.
What am I supposed to do?
- Use the latest release tag (13.2.0) instead of the tip of 'master',
and test my contribution there?
- Wait a few days, do a 'git pull', and retry?
- Something else?
Bruno