c++ - Fatal error when compiling llvm/clang - 'cstddef' file not found -
when trying compile llvm/clang
../llvm/configure --enable-cxx11=yes --enable-libcpp=yes --enable-optimized=yes --prefix=/usr/local --enable-targets=all --with-gcc-toolchain=/usr/local/bin --enable-bindings=auto the following error occurs:
[...]llvm/include/llvm/support/alignof.h:19:10: fatal error: 'cstddef' file not found #include <cstddef> ^ 1 error generated. rm: [...]/llvm_build/lib/support/release+asserts/apfloat.d.tmp: no such file or directory make[1]: *** [[...]/llvm_build/lib/support/release+asserts/apfloat.o] error 1 make: *** [all] error 1 but cstddef indeed exist (in /usr/local/include/c++/4.8.0/). adding --includedir=/usr/local/include/c++/4.8.0/ configure not also.
what can cause this?
try building cmake or re-installing dependancies below
cmake .. -dcmake_build_type=release -dllvm_targets_to_build="x86_64;jsbackend" \ -dllvm_include_examples=off i ran similar errors , installed essential gcc-4.8 , libstdc++-4.8 libraries. worked me atleast.
sudo apt-get install build-essential good luck. hope works
Comments
Post a Comment