public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: gcc-patches@gcc.gnu.org, Gaius Mulley <gaiusmod2@gmail.com>,
	arthur.cohen@embecosm.com
Subject: Modula-2 / Rust: Many targets failing
Date: Mon, 19 Dec 2022 22:23:45 +0100	[thread overview]
Message-ID: <20221219212344.ewtuzd2jtztm77x2@lug-owl.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 12505 bytes --]

Hi!

With the recent merges for Modula-2 and Rust, I see a good number of
targets failing with --enable-languages=all, mostly due to issues with
the Modula-2 driver.


 Modula-2 related issues
=========================


 --target=x86_64-apple-darwin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	/var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/./gcc/as: 114: exec: -arch: not found
	SYSTEM module creates type: LOC
	SYSTEM module creates type: WORD
	SYSTEM module creates type: BYTE
	SYSTEM module creates type: ADDRESS
	SYSTEM module creates type: INTEGER8
	SYSTEM module creates type: INTEGER16
	SYSTEM module creates type: INTEGER32
	SYSTEM module creates type: INTEGER64
	SYSTEM module creates type: CARDINAL8
	SYSTEM module creates type: CARDINAL16
	SYSTEM module creates type: CARDINAL32
	SYSTEM module creates type: CARDINAL64
	SYSTEM module creates type: WORD16
	SYSTEM module creates type: WORD32
	SYSTEM module creates type: WORD64
	SYSTEM module creates type: BITSET8
	SYSTEM module creates type: BITSET16
	SYSTEM module creates type: BITSET32
	SYSTEM module creates type: REAL32
	SYSTEM module creates type: REAL64
	SYSTEM module creates type: REAL128
	SYSTEM module creates type: COMPLEX32
	SYSTEM module creates type: COMPLEX64
	SYSTEM module creates type: COMPLEX128
	SYSTEM module creates type: CSIZE_T
	SYSTEM module creates type: CSSIZE_T
	/var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/./gcc/as: 114: exec: -arch: not found
	make[1]: *** [../../gcc/gcc/m2/Make-lang.in:1524: /var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def] Error 1
	rm m2/gm2-compiler-boot/P2Build.mod m2/gm2-compiler-boot/P0SyntaxCheck.mod m2/gm2-compiler-boot/PCBuild.mod m2/gm2-compiler-boot/PHBuild.mod m2/gm2-compiler-boot/P1Build.mod m2/gm2-compiler-boot/P3Build.mod
	make[1]: Leaving directory '/var/lib/laminar/run/gcc-x86_64-apple-darwin/19/toolchain-build/gcc'
	make: *** [Makefile:4623: all-gcc] Error 2


 --target=sparc64-sun-solaris2.11 --with-gnu-ld --with-gnu-as --enable-threads=posix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar to x86_64-apple-darwin, but:
	/var/lib/laminar/run/gcc-sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix/19/toolchain-install/sparc64-sun-solaris2.11/bin/as: unrecognized option '-m64'

 --target=sparc-sun-solaris2.11
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar to x86_64-apple-darwin, but:
	/var/lib/laminar/run/gcc-sparc-sun-solaris2.11/16/toolchain-install/sparc-sun-solaris2.11/bin/as: unrecognized option '-m32'

 --target=powerpc64-darwin
 --target=powerpc-darwin8
 --target=powerpc-darwin7
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar to x86_64-apple-darwin

 --target=powerpc-lynxos
~~~~~~~~~~~~~~~~~~~~~~~~~
Same place, but
	/var/lib/laminar/run/gcc-powerpc-lynxos/20/toolchain-build/./gcc/as: 114: exec: -I: not found

 --target=mipsisa64sr71k-elf
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar to the others:
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-mipsisa64sr71k-elf/23/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-mipsisa64sr71k-elf/23/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-mipsisa64sr71k-elf/23/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	Assembler messages:
	Error: bad value (sr71k) for default CPU
	Internal error in mips_after_parse_args at config/tc-mips.c:15290.
	Please report this bug.

 --target=m32rle-elf
~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-m32rle-elf/21/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-m32rle-elf/21/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-m32rle-elf/21/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	/var/lib/laminar/run/gcc-m32rle-elf/21/toolchain-build/./gcc/as: 114: exec: --no-warn-explicit-parallel-conflicts: not found

 --target=i686-solaris2.11
 --target=i386-pc-solaris2.11
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar, but
	/var/lib/laminar/run/gcc-i686-solaris2.11/21/toolchain-install/i686-solaris2.11/bin/as: unrecognized option '-xarch=generic'

 --target=i686-apple-darwin
 --target=i686-apple-darwin9
 --target=i686-apple-darwin10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-i686-apple-darwin9/21/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-i686-apple-darwin9/21/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-i686-apple-darwin9/21/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	Assembler messages:
	Fatal error: invalid listing option `r'

 --target=m32c-elf
~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-m32c-elf/21/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-m32c-elf/21/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-m32c-elf/21/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	during RTL pass: pro_and_epilogue
	<built-in>: In function '_M2_SYSTEM_init':
	<built-in>: internal compiler error: in leaf_function_p, at final.cc:4054
	0x5d48dd leaf_function_p()
	      ../../gcc/gcc/final.cc:4054
	0x105c30c m32c_leaf_function_p
	      ../../gcc/gcc/config/m32c/m32c.cc:4018
	0x105c30c m32c_emit_prologue()
	      ../../gcc/gcc/config/m32c/m32c.cc:4072
	0x14a10da gen_prologue()
	      ../../gcc/gcc/config/m32c/prologue.md:26
	0x1058f55 target_gen_prologue
	      ../../gcc/gcc/config/m32c/blkmov.md:359
	0x9fe957 make_prologue_seq
	      ../../gcc/gcc/function.cc:5836
	0x9feb03 thread_prologue_and_epilogue_insns()
	      ../../gcc/gcc/function.cc:6068
	0x9ff262 rest_of_handle_thread_prologue_and_epilogue
	      ../../gcc/gcc/function.cc:6564
	0x9ff262 execute
	      ../../gcc/gcc/function.cc:6647
	Please submit a full bug report, with preprocessed source (by using -freport-bug).
	Please include the complete backtrace with any bug report.
	See <https://gcc.gnu.org/bugs/> for instructions.

 --target=epiphany-elf
 --target=epiphany-elf --with-stack-offset=16
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-epiphany-elfOPT-with-stack-offset=16/22/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-epiphany-elfOPT-with-stack-offset=16/22/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-epiphany-elfOPT-with-stack-offset=16/22/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	../../gcc/gcc/m2/gm2-libs/SYSTEM.mod: In function 'ShiftVal':
	../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: error: unrecognizable insn:
	   89 | END ShiftVal ;
	      | ^~~
	(insn 400 342 343 7 (parallel [
	            (set (mem/c:CC (plus:SI (reg/f:SI 11 fp)
	                        (const_int 92 [0x5c])) [7 %sfp+-12 S4 A32])
	                (reg:CC 18 r18))
	            (use (const_int -4337 [0xffffffffffffef0f]))
	            (clobber (scratch:SI))
	        ]) "../../gcc/gcc/m2/gm2-libs/SYSTEM.mod":80:32 discrim 1 -1
	     (nil))
	during RTL pass: reload
	../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: internal compiler error: in extract_insn, at recog.cc:2791
	0x63eb16 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
	      ../../gcc/gcc/rtl-error.cc:108
	0x63eb32 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
	      ../../gcc/gcc/rtl-error.cc:116
	0x63d5e3 extract_insn(rtx_insn*)
	      ../../gcc/gcc/recog.cc:2791
	0xca2664 extract_insn_cached(rtx_insn*)
	      ../../gcc/gcc/recog.cc:2680
	0x9bbeb6 cleanup_subreg_operands(rtx_insn*)
	      ../../gcc/gcc/final.cc:3054
	0xccd9a2 reload(rtx_insn*, int)
	      ../../gcc/gcc/reload1.cc:1232
	0xb52a84 do_reload
	      ../../gcc/gcc/ira.cc:5953
	0xb52a84 execute
	      ../../gcc/gcc/ira.cc:6127
	Please submit a full bug report, with preprocessed source (by using -freport-bug).
	Please include the complete backtrace with any bug report.
	See <https://gcc.gnu.org/bugs/> for instructions.

 --target=arm-symbianelf
~~~~~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-arm-symbianelf/22/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-arm-symbianelf/22/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-arm-symbianelf/22/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	cc1gm2: warning: command-line option '-fno-builtin' is valid for C/C++/D/ObjC/ObjC++ but not for Modula-2
	cc1gm2: warning: command-line option '-fno-short-enums' is valid for Ada/AdaSCIL/AdaWhy/C/C++/Fortran/LTO/ObjC/ObjC++ but not for Modula-2
	cc1gm2: warning: command-line option '-fshort-wchar' is valid for C/C++/LTO/ObjC/ObjC++ but not for Modula-2
	/var/lib/laminar/run/gcc-arm-symbianelf/22/toolchain-build/./gcc/as: 114: exec: -march=armv5t: not found
	cc1gm2: warning: command-line option '-fno-builtin' is valid for C/C++/D/ObjC/ObjC++ but not for Modula-2
	cc1gm2: warning: command-line option '-fno-short-enums' is valid for Ada/AdaSCIL/AdaWhy/C/C++/Fortran/LTO/ObjC/ObjC++ but not for Modula-2
	cc1gm2: warning: command-line option '-fshort-wchar' is valid for C/C++/LTO/ObjC/ObjC++ but not for Modula-2

 --target=bfin-openbsd
~~~~~~~~~~~~~~~~~~~~~~~
	/bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
	             ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
	             -I../../gcc/gcc/m2/gm2-libs \
	             "/var/lib/laminar/run/gcc-bfin-openbsd/22/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-bfin-openbsd/22/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-bfin-openbsd/22/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
	/var/lib/laminar/run/gcc-bfin-openbsd/22/toolchain-build/./gcc/as: 114: exec: -o: not found




 Rust related issues
=====================

 --target=msp430-elfbare
~~~~~~~~~~~~~~~~~~~~~~~~~
	/var/lib/laminar/run/gcc-msp430-elfbare/24/toolchain-build/./gcc/xgcc -B/var/lib/laminar/run/gcc-msp430-elfbare/24/toolchain-build/./gcc/  -xrust -frust-incomplete-and-experimental-compiler-do-not-use -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc/gcc/testsuite/selftests
	<built-in>: internal compiler error: Segmentation fault
	0xf2efbf crash_signal
	      ../../gcc/gcc/toplev.cc:314
	0x120c8c7 build_function_type(tree_node*, tree_node*, bool)
	      ../../gcc/gcc/tree.cc:7360
	0x120cc20 build_function_type_list(tree_node*, ...)
	      ../../gcc/gcc/tree.cc:7442
	0x120d16b build_common_builtin_nodes()
	      ../../gcc/gcc/tree.cc:9883
	0x8449b4 grs_langhook_init
	      ../../gcc/gcc/rust/rust-lang.cc:132
	0x8427b2 lang_dependent_init
	      ../../gcc/gcc/toplev.cc:1815
	0x8427b2 do_compile
	      ../../gcc/gcc/toplev.cc:2110
	Please submit a full bug report, with preprocessed source (by using -freport-bug).
	Please include the complete backtrace with any bug report.
	See <https://gcc.gnu.org/bugs/> for instructions.
	make[1]: *** [../../gcc/gcc/rust/Make-lang.in:275: s-selftest-rust] Error 1

-- 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

             reply	other threads:[~2022-12-19 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 21:23 Jan-Benedict Glaw [this message]
2023-02-22 11:25 ` Rust: In 'type_for_mode' langhook also consider all 'int_n' modes/types (was: Modula-2 / Rust: Many targets failing) Thomas Schwinge
2023-02-22 11:45   ` Richard Biener
2023-02-22 14:30   ` Arthur Cohen
2023-02-24  9:12     ` Jan-Benedict Glaw
2023-02-25 22:20   ` Jan-Benedict Glaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221219212344.ewtuzd2jtztm77x2@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=arthur.cohen@embecosm.com \
    --cc=gaiusmod2@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).