Bug 100832 - s390x-linux-gnu: wrong number of alternatives in the output template
Summary: s390x-linux-gnu: wrong number of alternatives in the output template
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 12.0
: P1 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2021-05-30 12:02 UTC by Jan-Benedict Glaw
Modified: 2021-09-03 13:28 UTC (History)
3 users (show)

See Also:
Host:
Target: s390x-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed: 2021-05-31 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Benedict Glaw 2021-05-30 12:02:49 UTC
Hi!

Running automated tests again, I found that targeted for s390x-linux-gnu (1a87f8381085de50726634e8cb4a651c05b272b5) won't build:


../gcc/configure --target=s390x-linux-gnu --enable-werror-always --enable-languages=all --disable-gcov --disable-shared --disable-threads --without-headers --prefix=/var/lib/laminar/run/gcc-s390x-linux-gnu/1/toolchain-install
[...]

make all-gcc
[...]

[all 2021-05-30 10:17:14] /bin/bash ../../gcc/gcc/../move-if-change tmp-modes.c insn-modes.c
[all 2021-05-30 10:17:14] echo timestamp > s-modes
[all 2021-05-30 10:17:14] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o insn-modes.o -MT insn-modes.o -MMD -MP -MF ./.deps/insn-modes.TPo insn-modes.c
[all 2021-05-30 10:17:15] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o insn-opinit.o -MT insn-opinit.o -MMD -MP -MF ./.deps/insn-opinit.TPo insn-opinit.c
[all 2021-05-30 10:17:35] /usr/lib/gcc-snapshot/bin/g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include  -I../../gcc/gcc/../libcpp/include  \
[all 2021-05-30 10:17:35] 	-o build/genoutput.o ../../gcc/gcc/genoutput.c
[all 2021-05-30 10:17:36] /usr/lib/gcc-snapshot/bin/g++   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc  -no-pie -o build/genoutput \
[all 2021-05-30 10:17:36]     build/genoutput.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
[all 2021-05-30 10:17:36] build/genoutput ../../gcc/gcc/common.md ../../gcc/gcc/config/s390/s390.md \
[all 2021-05-30 10:17:36]   insn-conditions.md > tmp-output.c
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: alternative number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: alternative number mismatch: operand 0 has 4, operand 2 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: wrong number of alternatives in the output template
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative number mismatch: operand 0 has 4, operand 2 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: wrong number of alternatives in the output template
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative number mismatch: operand 0 has 4, operand 2 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: wrong number of alternatives in the output template
[all 2021-05-30 10:17:36] make[1]: *** [Makefile:2468: s-output] Error 1
[all 2021-05-30 10:17:36] make[1]: Leaving directory '/var/lib/laminar/run/gcc-s390x-linux-gnu/1/toolchain-build/gcc'
[all 2021-05-30 10:17:36] make: *** [Makefile:4418: all-gcc] Error 2
Comment 1 Martin Liška 2021-05-31 09:12:37 UTC
Confirmed, started with r12-1104-gdd1ef00c45ba99ea10082f913c20319b1951defe.
Comment 2 Roger Sayle 2021-08-31 12:02:41 UTC
I believe this issue was fixed by Ilya's patch back in May.
r12-1104-g22d834e32b509b22f68000b7f012d8e45d833ea8
Comment 3 Jan-Benedict Glaw 2021-09-03 13:28:56 UTC
Confirmed with current trunk (8d34ffb4e8ed5300d0276b55f573add6db2517e8), this error does no longer show up.

Thanks!