[LLVMdev] LLVM builds on x86-64 Solaris
wilsonkk at shaw.ca
Mon Nov 19 12:31:36 PST 2007
Not sure if anyone had tried this but I managed to get LLVM and clang to
build on Nexenta Alpha 7. This is an OpenSolaris/GNU OS.
There wasn't much to change for LLVM, except "#undef"ing a lot of x86
register name equivalents and the like (ie. EAX,ESP,CS,FS...).
There were a couple of similar undef's needed for clang, as well. The
clang testsuite ran fine except for mandel.c again?!? Same file that
wouldn't build on Sparc/Linux, but a different error. I will look at it.
I will try to get llvm-gcc to build but there will probably be some
major issues there ;) We'll see.
P.S. Is there an easier way to do this. Like undef'ing everything once
in some higher level #include?? I had to manually change about 50 files
and I couldn't find where OpenSolaris was #defining these things! Or are
they #defined in gcc somewhere on Solaris?
More information about the llvm-dev