[LLVMdev] Compiling llvm and Clang in solaris 10

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Jun 25 09:49:48 PDT 2013


On Jun 25, 2013, at 8:42 AM, Stefan Teleman <stefan.teleman at gmail.com> wrote:

> On Tue, Jun 25, 2013 at 10:50 AM, Jorge Rodrigues <skeept at gmail.com> wrote:
>> Is there anything I can do regarding the linker issue? The solaris linker is
>> in /usr/ccs/bin/ld but I think llvm wants to use the gnu linker. gcc in my
>> system was compiled with the solaris linker.
> 
> The current Solaris implementation in
> ${top}/tools/clang/lib/Driver/Tools.cpp has all the GCC and
> linker-related machinery hardcoded.
> 
> I have a number of patches for Solaris which would make all the linker
> stuff work much better (and would give one the option to choose
> between different linkers at link time) but I haven't gotten the green
> light from Oracle to make these patches public yet - i'm waiting on
> the internal approval chain to complete.
> 
> We *really* want to contribute Solaris support (Intel and SPARC) to
> clang/llvm, and these legal approvals are not only required, but also
> in everyone's best interests (not just our own).
> 
> i'm waiting for legal approvals at this point, and i don't have a
> better solution handy at the moment. The only thing i can offer is
> "stay tuned, we're working on it". :-)

Sounds great!

Solaris is quite different from the usual crop of BSDs and Linuxen. If you want to make sure that LLVM and Clang stay working on Solaris, you should look into setting up a buildbot. Random stuff will keep breaking if it isn’t being tested continuously.

Bug reports and patches for the SPARC v9 support are also welcome ;-)

Thanks,
/jakob





More information about the llvm-dev mailing list