On 06.11.2016 18:04, Benson Muite wrote: > Hi, > > Am trying to build clang and llvm version 3.8 to be able to build > pocl-0.13 on a system running scientific linux. When trying build POCL > using the resulting clang and llvm binaries, I get the following message: > > CMake Error at cmake/LLVM.cmake:634 (message): > LLVM link test FAILED. This mostly happens when your LLVM installation > does not have all dependencies installed.
I'm getting the same with 3.8.1 from llvm.org. The full output is: -- LLVM link test output: Change Dir: /home/buildbot/pocl/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec3002022382/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec3002022382.dir/build.make CMakeFiles/cmTryCompileExec3002022382.dir/build make[1]: Entering directory `/home/buildbot/pocl/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/buildbot/pocl/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec3002022382.dir/llvm_link_test_v9scJ.cc.o /usr/bin/c++ -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIE -I/opt/llvm/clang+llvm-3.8.1-armv7a-linux-gnueabihf/include -I/home/linaro/devel/llvm/release/final/llvm.src/tools/clang/include -I/opt/llvm/clang+llvm-3.8.1-armv7a-linux-gnueabihf/tools/clang/include -I/opt/llvm/clang+llvm-3.8.1-armv7a-linux-gnueabihf/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -ffunction-sections -fdata-sections -O3 -fno-exceptions -fno-rtti -o CMakeFiles/cmTryCompileExec3002022382.dir/llvm_link_test_v9scJ.cc.o -c /home/buildbot/pocl/build/llvm_link_test_v9scJ.cc c++: error: unrecognized command line option '-Wcovered-switch-default' I.e. we try to test LLVM linking capabilities with /usr/bin/c++? Oops... exporting CC=clang and CXX=clang++ helps as a quick work-around kalle ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
