[135110] trunk/dports/lang
larryv at macports.org
larryv at macports.org
Wed Apr 15 12:31:58 PDT 2015
Revision: 135110
https://trac.macports.org/changeset/135110
Author: larryv at macports.org
Date: 2015-04-15 12:31:57 -0700 (Wed, 15 Apr 2015)
Log Message:
-----------
gcc48, gcc49: Work around build failure with recent Clang (#47410)
Recent versions of Clang emit inconsistent DWARF CIE version
information, causing comparison failures during GCC bootstrap.
I verified that the following compilers are problematic:
- Apple LLVM 6.1.0 (clang-602.0.49 from Xcode 6.3)
- clang-3.7 @3.7-r234122
- clang-3.6 @3.6.0_0
- clang-3.5 @3.5.1_3
Revision Links:
--------------
https://trac.macports.org/changeset/234122
Modified Paths:
--------------
trunk/dports/lang/gcc48/Portfile
trunk/dports/lang/gcc49/Portfile
Modified: trunk/dports/lang/gcc48/Portfile
===================================================================
--- trunk/dports/lang/gcc48/Portfile 2015-04-15 19:31:49 UTC (rev 135109)
+++ trunk/dports/lang/gcc48/Portfile 2015-04-15 19:31:57 UTC (rev 135110)
@@ -112,6 +112,21 @@
# http://trac.macports.org/ticket/29104
compiler.blacklist-append {llvm-gcc-4.2 < 2336.1}
+# Recent versions of Clang emit inconsistent DWARF CIE version
+# information, causing bootstrap comparison failures (#47410). The
+# offending compilers are:
+# - Apple LLVM 6.1.0 (clang-602.0.49)
+# - clang-3.7 @3.7-r234122
+# - clang-3.6 @3.6.0_0
+# - clang-3.5 @3.5.1_3
+pre-configure {
+ if {(${configure.compiler} eq "clang"
+ && [compiler_blacklist_versions._version_matches clang >= 602.0.49])
+ || [string match {macports-clang-3.[567]} ${configure.compiler}]} {
+ configure.args-append --with-build-config=bootstrap-debug
+ }
+}
+
# "-stdlib" would be passed on to the bootstrap compiler if present
configure.cxx_stdlib
Modified: trunk/dports/lang/gcc49/Portfile
===================================================================
--- trunk/dports/lang/gcc49/Portfile 2015-04-15 19:31:49 UTC (rev 135109)
+++ trunk/dports/lang/gcc49/Portfile 2015-04-15 19:31:57 UTC (rev 135110)
@@ -119,6 +119,21 @@
# http://trac.macports.org/ticket/29104
compiler.blacklist-append {llvm-gcc-4.2 < 2336.1}
+# Recent versions of Clang emit inconsistent DWARF CIE version
+# information, causing bootstrap comparison failures (#47410). The
+# offending compilers are:
+# - Apple LLVM 6.1.0 (clang-602.0.49)
+# - clang-3.7 @3.7-r234122
+# - clang-3.6 @3.6.0_0
+# - clang-3.5 @3.5.1_3
+pre-configure {
+ if {(${configure.compiler} eq "clang"
+ && [compiler_blacklist_versions._version_matches clang >= 602.0.49])
+ || [string match {macports-clang-3.[567]} ${configure.compiler}]} {
+ configure.args-append --with-build-config=bootstrap-debug
+ }
+}
+
# "-stdlib" would be passed on to the bootstrap compiler if present
configure.cxx_stdlib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150415/8e07f428/attachment.html>
More information about the macports-changes
mailing list