[MacPorts] #60091: i686-w64-mingw32-gcc-nothreads build failure - Segmentation fault
MacPorts
noreply at macports.org
Wed May 6 03:37:02 UTC 2020
#60091: i686-w64-mingw32-gcc-nothreads build failure - Segmentation fault
-----------------------------------------+--------------------------------
Reporter: mmaenz | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: catalina, haspatch
Port: i686-w64-mingw32-gcc, mpfr |
-----------------------------------------+--------------------------------
Changes (by ryandesign):
* cc: larryv (added)
* keywords: catalina => catalina, haspatch
* port: i686-w64-mingw32-gcc => i686-w64-mingw32-gcc, mpfr
Comment:
After trying to rebuild various rdependencies of i686-w64-mingw32-gcc-
nothreads with no change, in the end I think ''only '''mpfr''' needs to be
rebuilt'' to fix this problem.
Our package of mpfr @4.0.2_0 for Catalina was built October 29, 2019, at
which point the latest version of Xcode was 11.1, so that's probably what
we were using on our build server, though we may have still been using
11.0.
If it really is a case of an old Xcode 11 building mpfr incorrectly, then
we should not only increase the revision of mpfr but also ensure that a
recent enough Xcode is being used. I don't know what the earliest version
of Xcode 11 is that builds it correctly, but Gcenx reported success
[comment:11 above] on February 28, 2020, at which point the latest version
was Xcode 11.3.1, so we could use that as the minimum:
{{{
#!diff
--- Portfile.orig
+++ Portfile
@@ -11,6 +11,7 @@
name mpfr
# The actual version is generated below, after patchfiles is defined.
set base_version 4.0.2
+revision 1
categories devel math
platforms darwin
license LGPL-3+
@@ -57,6 +58,12 @@
# blacklisted here
compiler.blacklist {clang == 211.10.1}
+# Early versions of Xcode 11 seem to miscompile mpfr such that compiling
+# i686-w64-mingw32-gcc-nothreads crashes. Xcode 11.3.1 and later seem to
+# be ok. See https://trac.macports.org/ticket/60091
+compiler.blacklist-append \
+ {clang >= 1100 < 1100.0.33.17}
+
test.run yes
test.target check
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60091#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list