Changes between Version 39 and Version 40 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Aug 5, 2016, 4:13:52 AM (8 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Don't recommend 3.8 for now

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v39 v40  
    5252==== Bootstrapping 3: Build a current version of clang against libc++ ====
    5353
    54 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.
     54The 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.
    5555
    56561. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain:
     
    72724. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency):
    7373{{{
    74 sudo port -v install clang-3.8
     74sudo port -v install clang-3.7
    7575}}}
    76765. 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:
    7777{{{
    78 +llvm38
     78+llvm37
    7979}}}
    80 6. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.8` as preferred compiler:
     806. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.7` as preferred compiler:
    8181{{{
    82 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
     82default_compilers  macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
    8383}}}
    84847. Rebuild cctools and ld64 to use the newer version of llvm:
     
    9494-ld64_236
    9595}}}
    96 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):
     969. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
    9797{{{
    98 sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236 configure.compiler=macports-clang-3.7
     98sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236
    9999}}}
    10010010. Uninstall the bootstrap toolchain: