And for completeness sake, here is the results from when I tried on Sep 4:c++ -fno-PIE -c -DIN_GCC_FRONTEND -O -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 -DHAVE_CONFIG_H -I. -Ic -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/../include -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/../libcpp/include -I/usr/src/obj/tooldir.NetBSD-10.99.7-vax/include -I/usr/src/obj/tooldir.NetBSD-10.99.7-vax/include -I/usr/src/obj/tooldir.NetBSD-10.99.7-vax/include -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/../libdecnumber -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/../libbacktrace -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -o c/c-decl.o -MT c/c-decl.o -MMD -MP -MF c/.deps/c-decl.TPo /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c/c-decl.c In file included from /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/coretypes.h:436, from /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c/c-decl.c:30: /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/wide-int.h: In function 'bool wi::lts_p(const T1&, const T2&) [with T1 = generic_wide_int<wi::extended_tree<192> >; T2 = generic_wide_int<wi::extended_tree<192> >]': /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/wide-int.h:1926:1: error: unrecognizable insn:
1926 | } | ^ (insn 47 42 48 12 (set (reg:SI 41) (subreg:SI (mem:DI (plus:SI (mult:SI (reg:SI 39) (const_int 8 [0x8]))(reg/f:SI 30 [ _27 ])) [70 *_56+0 S8 A32]) 4)) "/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/wide-int.h":865:37 -1
(nil)) during RTL pass: vregs/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/wide-int.h:1926:1: internal compiler error: in extract_insn, at recog.c:2294
no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See <http://www.NetBSD.org/support/send-pr.html> for instructions. nbgmake[1]: *** [c/c-decl.o] Error 1 nbgmake[1]: Leaving directory `/usr/obj/tools/gcc/build/gcc' nbgmake: *** [all-gcc] Error 2 *** Failed target: .build_done Johnny On 2023-11-06 15:40, Martin Husemann wrote:
On Mon, Nov 06, 2023 at 03:28:08PM +0100, Johnny Billquist wrote:Not really. It's still on a old, broken gcc from a vax point of view.There are several fixes and you are confusing them here. The most important fixes were done by Kalvis recently and have not been integrated in upstream (official) gcc yet. I hope this will happe soonish too. We have those fixes in -current for gcc 10.5 and with that a full build is supposedly possible. We pulled them up to -10 (also with gcc 10.5) and this is the first report that they are not working there.fixes that have been done on this in current is sortof a bandaid for some of the issues, but not really enough. I've tried building on -10 a few times. It has never worked. And I don't expect it will. gcc/vax have had a lot of fixes done (I'm sad to admit I don't remember the name of the guy who did a tremendous work on gcc here), but we still don't have that version of gcc in NetBSD. :-(Maciej did the upstream work and we have it with gcc 12 in -current (but not yet enabled by default because it does not work as is). Without Kalvis' changes that gcc 12 is not able to build NetBSD natively (but Kalvis did a version of the changes for gcc 12, they just have not gone into the NetBSD tree). Martin
-- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt%softjar.se@localhost || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol