[llvm-dev] LLVM on IRIX

Chris Hanson via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 5 11:51:14 PST 2019


Just in case anyone is interested…

I recently got an SGI Octane, installed Irix 6.5.30 and MIPSpro 7.4.4, and was frustrated by the lack of a modern C/C++ compiler. (I wanted to build CMake so I could build some other software, but it requires C++11 which postdates MIPSpro.)

So on my Linux box, I built clang, compiler_rt, and lld from LLVM master, pointed them at a sysroot made from my Octane, and was able to compile a hello world MIPS n64 .o and executable with it, with no changes to any of the LLVM projects.

Unfortunately the compiled .o won’t link using the MIPSpro tools, and the executable won’t run, in both cases it appears because there are ELF features unsupported by MIPSpro’s linker and Irix’s runtime loader.

This says to me that someone who knows ELF better than I could probably just do some work on lld and get a toolchain running that can target Irix, and probably even run there.

 -- Chris



More information about the llvm-dev mailing list