<div dir="ltr"><div> </div><div>I run configure in a build folder using </div><div> </div><div>CC=gcc CXX=g++  ../configure --prefix=/project/scratch/packages2/clang  \<br>  --enable-targets=host --enable-shared</div><div>
 </div><div>The configure runs fine but when I type make I get the error:</div><div> </div><div>make[1]: Entering directory `/project/scratch/tmp/llvm-3.3/build/lib/Support'<br>llvm[1]: Compiling APFloat.cpp for Release+Asserts build<br>
In file included from /project/scratch/tmp/llvm-3.3/include/llvm/ADT/Hashing.h:50:0,<br>                 from /project/scratch/tmp/llvm-3.3/lib/Support/APFloat.cpp:18:<br>/project/scratch/tmp/llvm-3.3/include/llvm/Support/Host.h:23:28: fatal error: machine/endian.h: No such file or directory<br>
 #include <machine/endian.h><br>                            ^<br>compilation terminated.<br>/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<br>
make[1]: *** [/project/scratch/tmp/llvm-3.3/build/lib/Support/Release+Asserts/APFloat.o] Error 1<br>make[1]: Leaving directory `/project/scratch/tmp/llvm-3.3/build/lib/Support'<br>make: *** [all] Error 1<br></div><div>
 </div><div>Any idea how I can solve this? Thanks.</div></div>