LLVM/Clang build available
#1
LLVM/Clang build available
Updated: 16 Dec 2021

There are updated builds (version 14.0.0-pre5.2 or newer) available in two forms:

I've been using this for a while to build a variety of things and haven't run into any compiler-related issues.  There are a few env related issues occasionally that are still to be resolved (libcxx provides a hacky vasprintf that may conflict with some other compat library that provides one), but in general it seems stable!  Please enjoy, and if you run into problems, file bugs for me at https://github.com/vvuk/llvm-project/issues

The standalone tarballs use the /usr/sgug prefix that mirrors the rpm releases, but don't require anything from SGUG; if you're not using the RPM environment (you should, so easy!), just treat it as a "sgug" vendor directory Smile

This compiler supports both N32 and 64-bit ABIs, but it's only really stable for N32.  It _will_ compile 64-bit binaries, and I include a full libcxx build for 64-bit, but the codegen there is known to be buggy; at the very least, it will commonly emit unaligned loads/stores that need MIPS_FIXADE to be enabled.

I'll be tracking LLVM releases and will aim to get to a stable 14.0.0 release when LLVM itself releases LLVM 14.


Original/older content:

Hi folks!  After a bunch of work, I just got a working clang that's able to self-compile itself, and has been able to compile a bunch of things I've thrown at it.  Thanks to aurxenon for kicking off this idea Smile

You'll need:
http://misc.bitops.com/irix/llvm-irix-093021.tar.gz
http://misc.bitops.com/irix/llvm-gcc-includes.tar.gz

untar both in /, they'll create /usr/sgug/llvm and /usr/lib/clang (with some includes). Both of this stuff will be fixed, very soon there will be a single tarball for /usr/llvm, as well as a RPM for the SGUG distribution.

You'll have to add /usr/sgug/llvm/bin to PATH, and /usr/sgug/llvm/lib/mips64-sgi-irix6.5-gnuabin32 to LD_LIBRARYN32_PATH and
and /usr/sgug/llvm/lib/mips64-sgi-irix6.5 to LD_LIBRARY64_PATH for libc++.

The default target is mips64-sgi-irix6.5-gnuabin32, i.e. the N32 abi. If you set -target=mips64-sgi-irix6.5, that will build for the 64-bit ABI. Both should work. This isn't a final build of any kind, there are still some tweaks to do, and some packaging fixes -- as well as cleaning up the borrowed gcc fixed-includes headers.

Please let me know what breaks -- I'm looking for feedback / bug reports at this point to see if there's anything major that's broken.

(Edit: holy crap are is this forum's formatting annoyingly broken; sorry 'bout the initial colours)
(This post was last modified: 12-16-2021, 10:56 PM by vvuk. Edit Reason: Updated info in top post )
vvuk
O2

Trade Count: (0)
Posts: 43
Threads: 4
Joined: Aug 2021
Location: California
Find Reply
10-01-2021, 04:53 AM


Messages In This Thread
LLVM/Clang build available - by vvuk - 10-01-2021, 04:53 AM
RE: LLVM/Clang build available - by TruHobbyist - 10-01-2021, 07:47 AM
RE: LLVM/Clang build available - by jan-jaap - 10-01-2021, 08:02 AM
RE: LLVM/Clang build available - by vvuk - 10-01-2021, 04:06 PM
RE: LLVM/Clang build available - by Raion - 10-01-2021, 05:02 PM
RE: LLVM/Clang build available - by Raion - 10-01-2021, 05:05 PM
RE: LLVM/Clang build available - by jpstewart - 10-01-2021, 11:06 PM
RE: LLVM/Clang build available - by Raion - 10-06-2021, 04:09 AM
RE: LLVM/Clang build available - by vvuk - 11-23-2021, 04:43 AM
RE: LLVM/Clang build available - by Raion - 11-23-2021, 05:01 AM
RE: LLVM/Clang build available - by vvuk - 11-23-2021, 04:46 PM
RE: LLVM/Clang build available - by Raion - 11-23-2021, 06:23 PM
RE: LLVM/Clang build available - by vvuk - 12-16-2021, 10:57 PM
RE: LLVM/Clang build available - by Raion - 12-16-2021, 11:24 PM
RE: LLVM/Clang build available - by Raion - 08-06-2022, 05:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)