Hi Brad, ports, The devel/llvm port can't be built as-is on macppc, it has been reported out of list by Peter J. Philipp, and i have the same issue. g++-4.9 doesn't include <codecvt>, and that is needed to build lldb:
---
/usr/ports/pobj/llvm-6.0.1/llvm-6.0.1.src/tools/lldb/include/lldb/Host/
Editline.h:49:19: fatal error: codecvt: No such file or directory
#include <codecvt>
^
compilation terminated.
ninja: build stopped: subcommand failed.
---
bcallah@ gave me the following tweak to circumvent the problem. It has
to be in pre-configure to avoid a failure during patching. That's ugly
but it works.
Comments/feedback are welcome!
Charlène.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.199
diff -u -p -r1.199 Makefile
--- Makefile 21 Nov 2018 08:03:05 -0000 1.199
+++ Makefile 26 Nov 2018 17:55:27 -0000
@@ -108,6 +108,9 @@ post-extract:
pre-configure:
@${SUBST_CMD} ${WRKSRC}/tools/clang/lib/Driver/ToolChains/OpenBSD.cpp
-@ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
+.if ${MACHINE_ARCH} == "powerpc"
+ @rm -rf ${WRKSRC}/tools/lldb
+.endif
post-build:
cd ${WRKSRC}/docs && make -f Makefile.sphinx man
llvm.nolldb.diff
Description: Binary data
