public
Created

clang-svn compile failure when --coverage

  • Download Gist
config.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
-- The C compiler identification is Clang
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/local/bin/clang
-- Check for working C compiler: /usr/local/bin/clang -- broken
CMake Error at /usr/local/Cellar/cmake/2.8.7/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/local/bin/clang" is not able to compile a simple test
program.
 
It fails with the following output:
 
Change Dir: /Users/nibbles/Temp/dlrdave-SmallAndFast-68c3ceb/build/CMakeFiles/CMakeTmp
 
 
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
 
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
 
/usr/local/Cellar/cmake/2.8.7/bin/cmake -E cmake_progress_report
/Users/nibbles/Temp/dlrdave-SmallAndFast-68c3ceb/build/CMakeFiles/CMakeTmp/CMakeFiles
1
 
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
 
/usr/local/bin/clang -O0 --coverage -o
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/Users/nibbles/Temp/dlrdave-SmallAndFast-68c3ceb/build/CMakeFiles/CMakeTmp/testCCompiler.c
 
 
Linking C executable cmTryCompileExec
 
/usr/local/Cellar/cmake/2.8.7/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
 
/usr/local/bin/clang -O0 --coverage -Wl,-search_paths_first
-Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec
 
Undefined symbols for architecture x86_64:
 
"_llvm_gcda_start_file", referenced from:
___llvm_gcov_writeout in testCCompiler.c.o
"_llvm_gcda_emit_function", referenced from:
___llvm_gcov_writeout in testCCompiler.c.o
"_llvm_gcda_emit_arcs", referenced from:
___llvm_gcov_writeout in testCCompiler.c.o
"_llvm_gcda_end_file", referenced from:
___llvm_gcov_writeout in testCCompiler.c.o
 
ld: symbol(s) not found for architecture x86_64
 
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
 
make[1]: *** [cmTryCompileExec] Error 1
 
make: *** [cmTryCompileExec/fast] Error 2

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.