I noticed that devel/llvm now has target support for mips64 and mips64el. The following patch is needed for those two archs. LLVM builds and seems to work OK from my admittedly basic testing on mips64el.

Clang builds only with a newer version of gas (I used 2.22) but it does not compile anything; it crashes when you try to compile even a simple Hello World. I've reported it upstream but I'm unable to follow any of their suggestions - my yeeloong cannot compile clang with -O0 or a debug build because it runs out of memory (ulimit -d is maxed at 1G in the kernel).

Thanks.

~Brian

Index: patch-lib_Support_Memory_cpp
===================================================================
RCS file: patch-lib_Support_Memory_cpp
diff -N patch-lib_Support_Memory_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patch-lib_Support_Memory_cpp        21 Aug 2012 18:38:10 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- lib/Support/Memory.cpp.orig        Fri Aug 17 00:51:58 2012
++++ lib/Support/Memory.cpp     Fri Aug 17 00:52:16 2012
+@@ -17,7 +17,7 @@
+ #include "llvm/Config/config.h"
+ + #if defined(__mips__)
+-#include <sys/cachectl.h>
++#include <mips64/sysarch.h>
+ #endif
+ + namespace llvm {

Reply via email to