<div dir="ltr"><div>I am attempting to compile Clang on Cygwin.  I get an error and would appreciate any pointers on how to proceed.</div><div><br></div><div>I checked out llvm, clang, clang extra tools, and compiler-rt.</div><div><br></div><div>I compiled using:</div><div>cmake ../llvm</div><div>make</div><div><br></div><div>I get the following failure:</div><div><br></div><div>[ 57%] Built target gtest_main<br>[ 57%] Building C object projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.o<br>In file included from /home/DiltsDa/arm/llvm/projects/compiler-rt/lib/builtins/x86_64/../int_types.h:21:0,<br>                 from /home/DiltsDa/arm/llvm/projects/compiler-rt/lib/builtins/x86_64/../int_lib.h:51,<br>                 from /home/DiltsDa/arm/llvm/projects/compiler-rt/lib/builtins/x86_64/floatdidf.c:9:<br>/home/DiltsDa/arm/llvm/projects/compiler-rt/lib/builtins/x86_64/../int_endianness.h:109:2: error: #error Unable to determine endian<br> #error Unable to determine endian<br>  ^<br>projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/build.make:57: recipe for target 'projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.o' failed<br>make[2]: *** [projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.o] Error 1<br>CMakeFiles/Makefile2:7316: recipe for target 'projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/all' failed<br>make[1]: *** [projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/all] Error 2<br>Makefile:136: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></div></div>