From f9692c722a1a852f641c53664950b16f8c3ef217 Mon Sep 17 00:00:00 2001 From: Martin Lisowski Date: Tue, 7 Jan 2025 15:28:48 +0100 Subject: [PATCH] Skip building libstdc++ on MSYS(Windows) due to internal compiler error --- ports/port.script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/port.script b/ports/port.script index 7df932f..5146362 100644 --- a/ports/port.script +++ b/ports/port.script @@ -399,7 +399,8 @@ void PortGCC() { // Build libstdc++. // TODO Waiting on GCC 11.3 to do this for the port. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017. // TODO Work out why this sometimes hangs on Darwin. - if SystemGetHostName() != "Darwin" { + // Also skip building libstdc++ on MSYS/Windows because it leads to gcc internal compiler error, Segfault + if SystemGetHostName() != "Darwin" && !StringStartsWith(SystemGetHostName(), "MSYS") { assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make all-target-libstdc++-v3 -j %processorCount%"); assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make install-target-libstdc++-v3"); }