Re: NetBSD/vax 11.0RC1
Kalvis Duckmanton <[email protected]> Thu, 12 Mar 2026 13:25:05 +1100
| Newsgroups | gmane.os.netbsd.ports.vax |
|---|---|
| Message-ID | <[email protected]> |
On 11/3/26 01:13, Maciej W. Rozycki wrote: > On Mon, 23 Feb 2026, Ken Wellsch wrote: > >> /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../include -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../libgcc -I ../libgcc -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -DNB_FIX_VAX_BACKEND -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -O -c -o mmapio.lo /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmapio.c >> libtool: compile: cc -DHAVE_CONFIG_H -I. -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../include -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../libgcc -I ../libgcc -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -DNB_FIX_VAX_BACKEND -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -O -c /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmapio.c -fPIC -DPIC -o .libs/mmapio.o >> libtool: compile: cc -DHAVE_CONFIG_H -I. -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../include -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../libgcc -I ../libgcc -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -DNB_FIX_VAX_BACKEND -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -O -c /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmapio.c -o mmapio.o >/dev/null 2>&1 >> /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../include -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../libgcc -I ../libgcc -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -DNB_FIX_VAX_BACKEND -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -O -c -o mmap.lo /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmap.c >> libtool: compile: cc -DHAVE_CONFIG_H -I. -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../include -I /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/../libgcc -I ../libgcc -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -DNB_FIX_VAX_BACKEND -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -O -c /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmap.c -fPIC -DPIC -o .libs/mmap.o >> during RTL pass: bbro >> /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmap.c: In function 'backtrace_free': >> /usr/src/tools/gcc/../../external/gpl3/gcc/dist/libbacktrace/mmap.c:238:1: internal compiler error: in redirect_jump, at jump.cc:1495 >> 238 | } >> | ^ >> 0xeea666 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, void**, diagnostic_t) >> ???:0 >> 0xeea8ef internal_error(char const*, ...) >> ???:0 >> 0xfbaab2 fancy_abort(char const*, int, char const*) >> ???:0 >> 0x456702 redirect_jump(rtx_jump_insn*, rtx_def*, int) >> ???:0 >> 0x77087f force_nonfallthru_and_redirect(edge_def*, basic_block_def*, rtx_def*) >> ???:0 >> 0x771fbc cfg_layout_finalize() >> ???:0 >> 0x77d525 (anonymous namespace)::pass_reorder_blocks::execute(function*) >> ???:0 >> Please submit a full bug report, with preprocessed source (by using -freport-bug). >> Please include the complete backtrace with any bug report. >> See <http://www.NetBSD.org/support/send-pr.html> for instructions. >> nbgmake[2]: *** [mmap.lo] Error 1 >> nbgmake[2]: Leaving directory `/usr/obj/tools/gcc/build/libbacktrace' >> nbgmake[1]: *** [all] Error 2 >> nbgmake[1]: Leaving directory `/usr/obj/tools/gcc/build/libbacktrace' >> nbgmake: *** [all-libbacktrace] Error 2 > If this is reproducible with upstream GCC, then I can have a look into > it. > > Maciej I think I have a test case. https://www.netbsd.org/~kalvisd/gcc-vax-internal-error-bbro.i Compile with cc -O -c gcc-vax-internal-error-bbro.i I tried the native gcc 14.3.0.nb2 from -current for VAX, the cross gcc 14.3.0.nb2 from -current for VAX on amd64 and cross gcc 15.2.0 from upstream for VAX on amd64 (and i686) - all of them failed with the same internal error. Compilation without optimisation was successful. cheers kalvis