I ran ./configure
, but when I try to make
llvm
, I get the following error:
[ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
In file included from /opt/static_analysis/llvm/include/llvm/Support/SwapByteOrder.h:19:0,
from /opt/static_analysis/llvm/include/llvm/Support/MathExtras.h:18,
from /opt/static_analysis/llvm/include/llvm/ADT/SmallVector.h:20,
from /opt/static_analysis/llvm/include/llvm/ADT/ArrayRef.h:14,
from /opt/static_analysis/llvm/include/llvm/ADT/APInt.h:19,
from /opt/static_analysis/llvm/include/llvm/ADT/APFloat.h:20,
from /opt/static_analysis/llvm/lib/Support/APFloat.cpp:15:
/opt/static_analysis/build/include/llvm/Support/DataTypes.h:77:3: error: #error "Don't have a definition for uint64_t on this platform"
# error "Don't have a definition for uint64_t on this platform"
^make[2]: \*** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o] Error 1
make[1]: \*** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: \*** [all] Error 2
P.S. I tried installing it by following these instructions - Getting Started: Building and Running Clang
sudo apt-get install clang
. – steeldriver Sep 12 '15 at 12:55