Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc issues.



On 2019-12-04 03:21, Johnny Billquist wrote:
On 2019-12-04 03:19, Christos Zoulas wrote:
In article <32ed4375-71c1-0f21-003a-fff717211308%update.uu.se@localhost>,
Johnny Billquist  <bqt%update.uu.se@localhost> wrote:
On 2019-12-03 18:40, Christos Zoulas wrote:
In article <a975135a-bc13-87d7-53c9-a450e6fb36ed%softjar.se@localhost>,
Johnny Billquist  <bqt%softjar.se@localhost> wrote:
Well, it's the version NetBSD builds and includes. And it is then
obviously also the version trying to be built.

I'm sortof hesitant trying to get some other version, since it would
probably be complex to bootstrap it, and I haven't looked at that.

You can always try switching to gcc-8 first. I've tested the build,
but I haven't tried to run it yet (simh).

How do I switch that? Is gcc-8 included in the base distribution?
(Preferrably switched in a way it is used by build.sh)

echo HAVE_GCC=8 >> /etc/mk.conf
and then cross-build as usual

Excellent. Thanks. Will start building right away...

And now I have a result. I get the same error with gcc 8, as far as I can tell...

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 -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/dist/gcc -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/c -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include -I/usr/src/obj/tooldir.NetBSD-9.99.18-vax/include -I/usr/src/obj/tooldir.NetBSD-9.99.18-vax/include -I/usr/src/obj/tooldir.NetBSD-9.99.18-vax/include -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber -I/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/src/tools/gcc/../../external/gpl3/gcc/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/dist/gcc/c/c-decl.c /usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/c/c-decl.c: In function 'tree_node* finish_enum(tree, tree, tree)': /usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/c/c-decl.c:8583:1: error: unrecognizable insn:
 }
 ^
(insn 77 76 78 16 (set (reg:SI 181)
        (subreg:SI (mem:DI (plus:SI (mult:SI (reg:SI 179)
                        (const_int 8 [0x8]))
(reg/f:SI 123 [ _205 ])) [50 *_223+0 S8 A32]) 4)) "/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/wide-int.h":831 -1
     (nil))
during RTL pass: vregs
/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/c/c-decl.c:8583:1: internal compiler error: in extract_insn, at recog.c:2304
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
*** Failed command: (cd build && /usr/bin/env -i gcc_cv_libc_provides_ssp=yes gcc_cv_as_sparc_gotdata_op=no AR=ar AWK=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbawk CC=cc CFLAGS=-O CONFIG_SHELL=/bin/sh CPPFLAGS= CXX=c++ CXXFLAGS=-O INSTALL=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/vax--netbsdelf-install\ -c\ \ -r LDFLAGS= LEX=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nblex FLEX=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nblex M4=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbm4 MAKE=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbgmake PATH="/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin:$PATH" RANLIB=ranlib YACC=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbyacc MACHINE= MAKEINFO=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\ \ -DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DESTDIR= INSTALL=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/vax--netbsdelf-install\ -c\ \ -r /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbgmake -e MACHINE= MAKEINFO=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS\ -DTARGET_SYSTEM_ROOT=0\ \ -DTARGET_SYSTEM_ROOT_RELOCATABLE AR=ar RANLIB=ranlib BISON=true DESTDIR= INSTALL=/usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/vax--netbsdelf-install\ -c\ \ -r all-gcc)
*** Error code 2

Stop.
nbmake[5]: stopped in /usr/src/tools/gcc

*** Failed target:  dependall
*** Failed command: cd "/usr/src/tools/gcc"; /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmake realall
*** Error code 1

Stop.
nbmake[4]: stopped in /usr/src/tools/gcc

*** Failed target:  dependall-gcc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gcc dependall
*** Error code 1

Stop.
nbmake[3]: stopped in /usr/src/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-gcc
*** Error code 1

Stop.
nbmake[2]: stopped in /usr/src/tools

*** Failed target:  do-tools
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget tools build_install
*** Error code 1

Stop.
nbmake[1]: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-9.99.18-vax/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-tools
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make build
*** BUILD ABORTED ***
Gnat:/usr/src> gcc --version
gcc (nb1 20190930) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Gnat:/usr/src> uname -a
NetBSD Gnat.BQTnet.SE 9.99.18 NetBSD 9.99.18 (GENERIC) #0: Mon Nov 25 23:09:06 CET 2019 root%GW.SoftJAR.SE@localhost:/usr/obj/sys/arch/vax/compile/GENERIC vax


   Johnny

--
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


Home | Main Index | Thread Index | Old Index