Changes between Version 9 and Version 10 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Jan 19, 2015, 8:50:02 AM (9 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Indicate the libmacho change has landed, simplify Leopard/ppc information

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v9 v10  
    6565== Leopard (ppc) ==
    6666
    67 PowerPC support is still under heavy development in llvm, so expect things to not be as stable as more established toolchains.  Additionally, it is non-trivial to bootstrap libc++ on Leopard because the libcxx port does not build with versions older than clang-3.6, and clang-3.5 and newer require libc++.  After setting up my Leopard/Intel Mac as described above, I've been able to *build* libc++ for ppc but it's not quite usable yet:
     67Darwin/PowerPC support is still quite experimental in llvm, so expect things to not be as stable as more established toolchains.  Additionally, it is non-trivial to bootstrap libc++ on Leopard because the libcxx port does not build with versions older than clang-3.6, and clang-3.5 and newer require libc++.  After setting up my Leopard/Intel Mac as described above (fully upgraded through r131812), I've been able to *build* libc++ for ppc but it's not quite tested yet.
    6868{{{
    6969sudo port -v -s install clang-3.6
     
    7272sudo port -v -f uninstall libcxx libcxxabi libmacho libunwind
    7373
    74 # ld crashes in getsectiondata linking the ppc slice of libmacho if libmacho is built with macports-clang-3.6
    75 sudo port -v -s install libunwind universal_archs="x86_64 i386 ppc" configure.compiler=gcc-4.2
    76 
    7774sudo port -v -s install libcxx universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.6
    7875}}}
    79 
    80 The linker crashes when creating a trivial hello world executable.  This is a similar crash when building libmacho:
    81 {{{
    82 clang++-mp-3.6 -stdlib=libc++ -arch ppc hello_world.cxx
    83 
    84 Thread 0 Crashed:
    85 0   libc++abi.dylib                     0x0000000100353f15 getsectiondata + 73 (getsecbyname.c:428)
    86 1   libc++abi.dylib                     0x00000001003580cf libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Re
    87 gisters_x86_64>::setInfoBasedOnIPRegister(bool) + 105
    88 2   libc++abi.dylib                     0x0000000100354c74 unw_init_local + 96
    89 3   libc++abi.dylib                     0x00000001003548e7 _Unwind_RaiseException + 72
    90 4   libc++abi.dylib                     0x00000001003500e8 __cxa_throw + 104
    91 5   ld                                  0x000000010000ecd6 Options::Options(int, char const**) + 0
    92 6   ld                                  0x000000010000c28f ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 13
    93 95
    94 7   ld                                  0x000000010000d2ce ld::tool::InputFiles::InputFiles(Options&, char const**) + 372
    95 8   ld                                  0x000000010000a086 main + 145
    96 9   ld                                  0x0000000100002774 start + 52
    97 }}}
    98 
    99 I suspect the issue is in libmacho and will be testing a fix for it soon.
    10076
    10177== Tiger ==