[oi-dev] clang open source packages and nightly binaries

C Bergström cbergstrom at pathscale.com
Sun Oct 23 02:49:27 UTC 2016


It's been on my TODO list forever and fully open source clang packages
are available.


Download
--------------------------
# Packages only contain clang, clang++ and the necessary headers and
runtime components. No libclang or anything else is included. It has
no gcc dependency at all and should function entirely standalone

# The CDN aggressively caches and we're thinking to switch to naming
with the date in the URL. Thoughts?
wget http://c591116.r14.cf2.rackcdn.com/clang-suite/Solaris/nightly/clang-suite-nightly-installer.run


Install
--------------------------
chmod +x clang-suite-nightly-installer.run

# --help for options or --mode unattended if you don't need to see the license
./clang-suite-nightly-installer.run

Source and patches
--------------------------
We're building things a little different. This was inspired by our
internal build which tightly builds and couples all components
together without gcc deps. (Not saying this is the "right way", but
it's how we're doing it)

# Source is here
https://github.com/pathscale/clang-suite/

# The handful of small patches we're apply are here
# We will slowly work to get them upstream
https://github.com/pathscale/clang-suite/tree/master/patches


Usage
--------------------------
 /opt/clangsuite-4.0.0.19/bin/clang++ hello.cxx

-static is WORKING, but with a caveat that we shared link libc/libm,
we may add more system libs as requested

Thoughts
--------------------------
I'd like to setup an official Solaris 11 or 12 (or someone can get me
access) and I'll do my best to see if we can make 1 clang package
which works across both and produces binaries that are portable by
default.

Future
--------------------------
I plan to do my best to have nightly builds against nightly clang and
all components to hopefully get OI/Solaris as a rock solid platform.


Alternative Platforms
--------------------------
http://c591116.r14.cf2.rackcdn.com/clang-suite/Linux/nightly/clang-suite-nightly-installer.run

http://c591116.r14.cf2.rackcdn.com/clang-suite/FreeBSD/nightly/clang-suite-nightly-installer.run

http://c591116.r14.cf2.rackcdn.com/clang-suite/Linux/AArch64/nightly/clang-suite_nightly_aarch64.tar.bz2


OSX and Linux Power8 are coming soon (few days)

Windows 64bit is most likely a few months




More information about the oi-dev mailing list