From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B7CB3850408; Mon, 19 Oct 2020 22:13:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7CB3850408 From: "euloanty at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97481] GCC ice when build with RISCV on msys2 Date: Mon, 19 Oct 2020 22:13:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: euloanty at live dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 22:13:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97481 --- Comment #5 from fdlbxtqi --- (In reply to Jim Wilson from comment #2) > riscv-unknown-linux-gnu is not a supported target. You must use either > riscv32-unknown-linux-gnu or riscv64-unknwon-linux-gnu. Both compilers > support both word sizes, the only difference is which is the default word > size. This may be part of the reason why it failed. >=20 > The attachment doesn't show any ICE. It is just a config.log file, and I > don't see anything interesting in there. >=20 > Note that mingw64 builds of a linux toolchain are unlikely to work as gli= bc > requires a case sensitive file system. I'd suggest using WSL2 as somethi= ng > more likely to work, but I haven't tried that myself. >=20 > It looks like you have a badly broken compiler build. You will need to > figure out why it is broken. This doesn't seem to be a gcc problem, but > rather a build problem on your side. unlvs@DESKTOP-DFHPDC1 MINGW64 /glibc_riscv64_build $ ../glibc_riscv64/configure --prefix=3D${PREFIX}/${TARGET} --build=3D$(gcc -dumpmachine) --host=3D${TARGET} --target=3D${TARGET} --disable-multilib --disable-werror libc_cv_forced_unwind=3Dyes libc_cv_c_cleanup=3Dyes --enable-add-ons configure: loading site script /mingw64/etc/config.site checking build system type... x86_64-w64-mingw32 checking host system type... riscv64-unknown-linux-gnu checking for riscv64-linux-gcc... riscv64-linux-gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether riscv64-linux-gcc accepts -g... yes checking for gcc... gcc checking for riscv64-linux-readelf... riscv64-linux-readelf checking for riscv64-linux-g++... riscv64-linux-g++ checking whether we are using the GNU C++ compiler... yes checking whether riscv64-linux-g++ accepts -g... yes checking whether riscv64-linux-g++ can link programs... no checking for sysdeps preconfigure fragments... aarch64 alpha arc arm csky h= ppa i386 m68k microblaze checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E mips nios2 powerpc riscv : internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See for instructions. : internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See for instructions. : internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See for instructions. : internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Unable to determine XLEN unlvs@DESKTOP-DFHPDC1 MINGW64 /glibc_riscv64_build I have tried riscv64. same issues.=