[MacPorts] LibcxxOnOlderSystems modified

MacPorts noreply at macports.org
Tue Jan 13 09:41:11 PST 2015


Page "LibcxxOnOlderSystems" was changed by jeremyhu at macports.org
Diff URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems?action=diff&version=5>
Revision 5
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: LibcxxOnOlderSystems
=========================================================================
--- LibcxxOnOlderSystems (version: 4)
+++ LibcxxOnOlderSystems (version: 5)
@@ -15,7 +15,7 @@
 
 delete_la_files is not necessary, it is reccomended since you need to set buildfromsource.
 
-== Leopard and Snow Leopard ==
+== Leopard and Snow Leopard (Intel) ==
 
 Leopard and Snow Leopard do not have libc++ installed by the OS, but MacPorts can build and install system roots that contain these runtimes for your use.  After installing these roots (which is done automatically when the libcxxabi and libcxx ports activate), you can choose to continue using libstdc++ as the default C++ runtime in MacPorts or configure MacPorts to use the new libc++ runtime.
 
@@ -61,3 +61,22 @@
 {{{
 sudo port -v install clang-3.4 configure.compiler=macports-clang-3.5
 }}}
+
+== Leopard (ppc) ==
+
+Power PC support is still in active development in llvm, so expect it 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++.  Starting on an Intel Mac with libc++ already, I've been able to build libc++ for ppc but have not yet tested it:
+{{{
+sudo port -v -s install clang-3.6
+
+# Doesn't actually install the intel libc++ from the system, just the root
+sudo port -v -f uninstall libcxx libcxxabi libmacho libunwind
+
+# ld crashes in getsectiondata linking the ppc slice of libmacho if libmacho is built with macports-clang-3.6
+sudo port -v -s install libunwind universal_archs="x86_64 i386 ppc" configure.compiler=gcc-4.2
+
+sudo port -v -s install libcxx universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.6
+}}}
+
+== Tiger ==
+
+I do not have a Tiger machine or VM, so I am not sure how feasible it is to get things working on Tiger.  If you are adventurous, I suggest you follow the Leopard instructions above and report issues.  Note that it will take a while to build libcxx because we'll need to build apple-gcc42 and use it to build clang-3.4 and use it to build libcxx.
-------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