[LLVMdev] Compiling llvm and Clang in solaris 10

Jorge Rodrigues skeept at gmail.com
Fri Jun 21 16:00:25 PDT 2013


I run configure in a build folder using

CC=gcc CXX=g++  ../configure --prefix=/project/scratch/packages2/clang  \
  --enable-targets=host --enable-shared

The configure runs fine but when I type make I get the error:

make[1]: Entering directory
`/project/scratch/tmp/llvm-3.3/build/lib/Support'
llvm[1]: Compiling APFloat.cpp for Release+Asserts build
In file included from
/project/scratch/tmp/llvm-3.3/include/llvm/ADT/Hashing.h:50:0,
                 from
/project/scratch/tmp/llvm-3.3/lib/Support/APFloat.cpp:18:
/project/scratch/tmp/llvm-3.3/include/llvm/Support/Host.h:23:28: fatal
error: machine/endian.h: No such file or directory
 #include <machine/endian.h>
                            ^
compilation terminated.
/project/packages/sun/5.10/x86/gnu/bin/rm: cannot remove
`/project/scratch/tmp/llvm-3.3/build/lib/Support/Release+Asserts/APFloat.d.tmp':
No such file or directory
make[1]: ***
[/project/scratch/tmp/llvm-3.3/build/lib/Support/Release+Asserts/APFloat.o]
Error 1
make[1]: Leaving directory `/project/scratch/tmp/llvm-3.3/build/lib/Support'
make: *** [all] Error 1

Any idea how I can solve this? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130621/321fa797/attachment.html>


More information about the llvm-dev mailing list