Changes between Version 9 and Version 10 of LibcxxOnOlderSystems
- Timestamp:
- Jan 19, 2015, 8:50:02 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v9 v10 65 65 == Leopard (ppc) == 66 66 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: 67 Darwin/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. 68 68 {{{ 69 69 sudo port -v -s install clang-3.6 … … 72 72 sudo port -v -f uninstall libcxx libcxxabi libmacho libunwind 73 73 74 # ld crashes in getsectiondata linking the ppc slice of libmacho if libmacho is built with macports-clang-3.675 sudo port -v -s install libunwind universal_archs="x86_64 i386 ppc" configure.compiler=gcc-4.276 77 74 sudo port -v -s install libcxx universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.6 78 75 }}} 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.cxx83 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::Re87 gisters_x86_64>::setInfoBasedOnIPRegister(bool) + 10588 2 libc++abi.dylib 0x0000000100354c74 unw_init_local + 9689 3 libc++abi.dylib 0x00000001003548e7 _Unwind_RaiseException + 7290 4 libc++abi.dylib 0x00000001003500e8 __cxa_throw + 10491 5 ld 0x000000010000ecd6 Options::Options(int, char const**) + 092 6 ld 0x000000010000c28f ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 1393 9594 7 ld 0x000000010000d2ce ld::tool::InputFiles::InputFiles(Options&, char const**) + 37295 8 ld 0x000000010000a086 main + 14596 9 ld 0x0000000100002774 start + 5297 }}}98 99 I suspect the issue is in libmacho and will be testing a fix for it soon.100 76 101 77 == Tiger ==