LLVM on IRIX - Chris Hanson
#1
LLVM on IRIX - Chris Hanson
I am on the LLVM-dev mailing list, and Chris Hanson, a gentleman on there did some research into this:

Quote:
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

I did advise him of the GNU BFD/ld ports on IRIX, just to see what happens, but generally the responses I've gotten from LLVM devs indicates that they will accept any patches upstream for LLVM and the LLVM utilities like lld to get it working on IRIX, as long as the changes are maintained by someone. So unlike GCC, this is a good long term option.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,264
Threads: 537
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
11-06-2019, 03:16 AM


Messages In This Thread
LLVM on IRIX - Chris Hanson - by Raion - 11-06-2019, 03:16 AM
RE: LLVM on IRIX - Chris Hanson - by Eschaton - 11-10-2019, 12:30 AM
RE: LLVM on IRIX - Chris Hanson - by Raion - 11-10-2019, 04:17 AM
RE: LLVM on IRIX - Chris Hanson - by Eschaton - 11-11-2019, 09:59 PM
RE: LLVM on IRIX - Chris Hanson - by Raion - 11-11-2019, 11:40 PM
RE: LLVM on IRIX - Chris Hanson - by mgtremaine - 11-14-2019, 10:34 PM
RE: LLVM on IRIX - Chris Hanson - by vishnu - 11-15-2019, 07:41 AM
RE: LLVM on IRIX - Chris Hanson - by Raion - 11-15-2019, 08:41 PM
RE: LLVM on IRIX - Chris Hanson - by vishnu - 11-24-2019, 11:07 PM
RE: LLVM on IRIX - Chris Hanson - by Eschaton - 11-28-2019, 07:43 PM
RE: LLVM on IRIX - Chris Hanson - by Raion - 11-28-2019, 07:45 PM
RE: LLVM on IRIX - Chris Hanson - by vishnu - 11-29-2019, 03:25 AM
RE: LLVM on IRIX - Chris Hanson - by Eschaton - 11-29-2019, 10:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)