[cfe-dev] Trouble building Clang on CentOS 6

Uri Moszkowicz via cfe-dev cfe-dev at lists.llvm.org
Wed Aug 30 14:35:58 PDT 2017


Hi,
I'm having trouble building Clang on CentOS 6 and am hoping someone here
can help. I followed the instructions on this website:

http://btorpey.github.io/blog/2015/01/02/building-clang/

I'm using GCC 6.3.0 and Python 2.7.13, both also built from source using
these options:

-DCMAKE_C_COMPILER=<gcc-6.3.0>/redhat6/bin/gcc
-DCMAKE_CXX_COMPILER=<gcc-6.3.0>/redhat6/bin/g++
-DCMAKE_CXX_LINK_FLAGS='-L<gcc-6.3.0>/redhat6/lib64
-Wl,-rpath,<gcc-6.3.0>/redhat6/lib64'
-DLLVM_ENABLE_ASSERTIONS=ON
-DCMAKE_BUILD_TYPE=Release
-DLLVM_TARGETS_TO_BUILD=X86
-DGCC_INSTALL_PREFIX=<gcc-6.3.0>/redhat6
-DPYTHON_EXECUTABLE:FILEPATH=<python-2.7.13>/redhat6/bin/python
-DCMAKE_INSTALL_PREFIX=<clang-4.0.1>/redhat6

The errors I'm seeing look like this (I used -j32):

[  4%] Building CXX object
lib/TableGen/CMakeFiles/LLVMTableGen.dir/Main.cpp.o
[  4%] Building CXX object
lib/Option/CMakeFiles/LLVMOption.dir/OptTable.cpp.o
[  6%] Building C object
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/absvdi2.c.o
[  6%] Building CXX object
projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.x86_64.dir/sanitizer_coverage_mapping_libcdep.cc.o
Scanning dependencies of target LLVMSupport
g++: fatal error: no input files
compilation terminated.
make[2]: *** [bin/llvm-PerfectShuffle] Error 1
make[1]: *** [utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/all]
Error 2

[ 28%] Linking CXX static library ../libLLVMSupport.a
[ 28%] Built target LLVMSupport
[ 28%] Built target RTAsan.x86_64
make: *** [all] Error 2
make install
[  0%] Built target LLVMDemangle
[  3%] Built target LLVMSupport
[  3%] Built target LLVMTableGen
[  4%] Built target obj.llvm-tblgen
Scanning dependencies of target llvm-tblgen
[  4%] Linking CXX executable ../../bin/llvm-tblgen
g++: fatal error: no input files
compilation terminated.
make[2]: *** [bin/llvm-tblgen] Error 1
make[1]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2
make: *** [all] Error 2

Any thoughts about what else I need to do?

Thanks,
Uri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170830/116d0e18/attachment.html>


More information about the cfe-dev mailing list