Port-vax archive

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

Re: gcc issues.



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.

  Johnny

On 2019-12-03 02:56, Paul Koning wrote:
7.4.0 is the next to last maintenance release in the V7 stream; V8 is also maintained, and V9 is current.  It might be worth trying this with the latest V9.x, though chances are that won't help.  But submitting a bug report is best done with the latest current-stream release.

paul

On Dec 2, 2019, at 8:43 PM, Johnny Billquist <bqt%softjar.se@localhost <mailto:bqt%softjar.se@localhost>> wrote:

On 2019-12-03 01:57, Paul Koning wrote:
What version of GCC is that?

Gnat:/home/bqt> gcc --version
gcc (nb3 20190319) 7.4.0
Copyright (C) 2017 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.

A possible solution may be to get the current version.  I don't know if a lot of work has been done on fixing VAX port issues, but I believe there has been some activity.

The system I'm running on is current. It was build as a cross compile only a few days ago.

Reporting the issue via the GCC bug tracker may be a good idea.  As the report says, this is a compiler bug.  Specifically, it's generating an intermediate code operation (RTL operation) for which the back end definitions don't supply corresponding machine code. It looks like it wants to generate a CVTQL foo[Rn], Rm -- but that's not a VAX opcode.  What produces this and how to tell it not to I don't remember.

And I have no clue. :-)

 Johnny

paul
On Dec 2, 2019, at 6:07 PM, Johnny Billquist <bqt%softjar.se@localhost <mailto:bqt%softjar.se@localhost>> wrote:

Is there anyone with the time, knowledge and skills to look at the gcc issues? I just did another test to build current, and the build bailed out when trying to recompile gcc (everything else up until that point actually passed).

System info:

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 <mailto:root%GW.SoftJAR.SE@localhost>:/usr/obj/sys/arch/vax/compile/GENERIC vax

Error message:

[...]
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.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-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.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 /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c/c-decl.c: In function 'tree_node* finish_enum(tree, tree, tree)': /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c/c-decl.c:8405:1: error: unrecognizable insn:
}
^
(insn 75 74 76 16 (set (reg:SI 176)
       (subreg:SI (mem:DI (plus:SI (mult:SI (reg:SI 174)
                       (const_int 8 [0x8]))
                   (reg/f:SI 121 [ _205 ])) [48 *_223+0 S8 A32]) 4)) "/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/wide-int.h":826 -1
    (nil))
/usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/c/c-decl.c:8405:1: internal compiler error: in extract_insn, at recog.c:2311
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 ***


--
Johnny Billquist                  || "I'm on a bus
                                 ||  on a psychedelic trip
email: bqt%softjar.se@localhost <mailto:bqt%softjar.se@localhost>             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


--
Johnny Billquist                  || "I'm on a bus
                                 ||  on a psychedelic trip
email:bqt%softjar.se@localhost <mailto:bqt%softjar.se@localhost>            ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


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