[cfe-dev] Need some humoring, my linux build is buggy and I can't fix it

Nat! via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 3 12:46:58 PDT 2016


>
> So OK, lets run clang tests and see if it the test suite catches this
> and maybe some other errors:
>
> ```
> $ make clang-test
> ...
> [ 80%] Built target libclang
> Linking CXX executable libclangTests
> Linking CXX executable libclangTests
> /home/nat/srcO/mulle-clang-install/build/llvm.d/lib/libgtest.a(gtest-all.cc.o):
> In function `llvm::raw_os_ostream::raw_os_ostream(std::ostream&)':
> /home/nat/srcO/mulle-clang-install/src/llvm/include/llvm/Support/raw_os_ostream.h:36:
> undefined reference to `vtable for llvm::raw_os_ostream'
> /home/nat/srcO/mulle-clang-install/build/llvm.d/lib/libgtest.a(gtest-all.cc.o):
> In function `llvm::convertible_fwd_ostream::~convertible_fwd_ostream()':
> /home/nat/srcO/mulle-clang-install/src/llvm/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:107:
> undefined reference to `llvm::raw_os_ostream::~raw_os_ostream()'
> collect2: error: ld returned 1 exit status
> unittests/libclang/CMakeFiles/libclangTests.dir/build.make:87: recipe
> for target 'unittests/libclang/libclangTests' failed
> make[3]: *** [unittests/libclang/libclangTests] Error 1
> CMakeFiles/Makefile2:6456: recipe for target
> 'unittests/libclang/CMakeFiles/libclangTests.dir/all' failed
> make[2]: *** [unittests/libclang/CMakeFiles/libclangTests.dir/all] Error 2
> CMakeFiles/Makefile2:6551: recipe for target
> 'test/CMakeFiles/clang-test.dir/rule' failed
> make[1]: *** [test/CMakeFiles/clang-test.dir/rule] Error 2
> Makefile:1463: recipe for target 'clang-test' failed
> make: *** [clang-test] Error 2
> ```
>

I could fix the original problem by recompiling llvm and clang with 
clang 3.8 itself (instead of going with what gcc 5.3.1 produced).

I still would like run the tests on linux though...

Ciao
    Nat!





More information about the cfe-dev mailing list