[MacPorts] LibcxxOnOlderSystems modified

MacPorts noreply at macports.org
Thu Aug 4 21:13:55 PDT 2016


Page "LibcxxOnOlderSystems" was changed by jeremyhu at macports.org
Diff URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems?action=diff&version=40>
Revision 40
Comment: Don't recommend 3.8 for now
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: LibcxxOnOlderSystems
=========================================================================
--- LibcxxOnOlderSystems (version: 39)
+++ LibcxxOnOlderSystems (version: 40)
@@ -51,7 +51,7 @@
 
 ==== Bootstrapping 3: Build a current version of clang against libc++ ====
 
-The instructions below are for the latest stable build of llvm at the time of this writing (3.8).  You should be able to easily replace 3.8 with 3.6, 3.7, 3.9, or later versions, but 3.4 is needed to bootstrap the process.
+The instructions below are for llvm-3.7.  Note that there are some known issues with clang-3.8 on Snow Leopard, and clang-3.9 fails to compile on Snow Leopard, so you should stick with 3.7 for now.  If you already installed 3.8, you'll have 3.7 because it's required as part of the bootstrapping process, so you should just edit default_compilers to remove macports-clang-3.8 until its issues have been resolved.
 
 1. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain:
 {{{
@@ -71,15 +71,15 @@
 }}}
 4. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency):
 {{{
-sudo port -v install clang-3.8
+sudo port -v install clang-3.7
 }}}
 5. Add the variant corresponding to the new version of llvm to `/opt/local/etc/macports/variants.conf`.  This ensures that cctools and ld64 will be reinstalled using the appropriate version of llvm:
 {{{
-+llvm38
++llvm37
 }}}
-6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.8` as preferred compiler:
+6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.7` as preferred compiler:
 {{{
-default_compilers  macports-clang-3.8 macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
+default_compilers  macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
 }}}
 7. Rebuild cctools and ld64 to use the newer version of llvm:
 {{{
@@ -93,9 +93,9 @@
 -ld64_136
 -ld64_236
 }}}
-9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker (note macports-clang-3.8 fails to compile it on Snow Leopard currently, so use macports-clang-3.7):
+9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
 {{{
-sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236 configure.compiler=macports-clang-3.7
+sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236
 }}}
 10. Uninstall the bootstrap toolchain:
 {{{
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'LibcxxOnOlderSystems' page.
If it was not you, please report to .


More information about the macports-changes mailing list