LINUX.ORG.RU

Не собирается Clang Static Analyzer

 


0

1

Последняя версия.
Debian 8. cmake-3.9.1.

CMakeFiles/cxx_objects.dir/__/src/strstream.cpp.o:(.data.rel.ro._ZTINSt3__19strstreamE[_ZTINSt3__19strstreamE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/strstream.cpp.o:(.data.rel.ro._ZTINSt3__110ostrstreamE[_ZTINSt3__110ostrstreamE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/strstream.cpp.o:(.data.rel.ro._ZTINSt3__110istrstreamE[_ZTINSt3__110istrstreamE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/strstream.cpp.o:(.data.rel.ro._ZTINSt3__112strstreambufE[_ZTINSt3__112strstreambufE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o: In function `std::__1::generic_category()':
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:169: undefined reference to `__cxa_guard_acquire'
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:169: undefined reference to `__cxa_guard_release'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o: In function `std::__1::system_category()':
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:211: undefined reference to `__cxa_guard_acquire'
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:211: undefined reference to `__cxa_guard_release'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o: In function `std::__1::__throw_system_error(int, char const*)':
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:289: undefined reference to `__cxa_allocate_exception'
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:289: undefined reference to `__cxa_throw'
/usr/bin/llvm/llvm/projects/libcxx/src/system_error.cpp:289: undefined reference to `__cxa_free_exception'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTVNSt3__112__do_messageE[_ZTVNSt3__112__do_messageE]+0x20): undefined reference to `__cxa_pure_virtual'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTVNSt3__114error_categoryE[_ZTVNSt3__114error_categoryE]+0x20): undefined reference to `__cxa_pure_virtual'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTVNSt3__114error_categoryE[_ZTVNSt3__114error_categoryE]+0x40): undefined reference to `__cxa_pure_virtual'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTINSt3__123__system_error_categoryE[_ZTINSt3__123__system_error_categoryE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTINSt3__124__generic_error_categoryE[_ZTINSt3__124__generic_error_categoryE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTINSt3__112system_errorE[_ZTINSt3__112system_errorE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTINSt3__112__do_messageE[_ZTINSt3__112__do_messageE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o:(.data.rel.ro._ZTINSt3__114error_categoryE[_ZTINSt3__114error_categoryE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o: In function `std::__1::__thread_local_data()':
/usr/bin/llvm/llvm/projects/libcxx/src/thread.cpp:128: undefined reference to `__cxa_guard_acquire'
/usr/bin/llvm/llvm/projects/libcxx/src/thread.cpp:128: undefined reference to `__cxa_guard_release'
/usr/bin/llvm/llvm/projects/libcxx/src/thread.cpp:128: undefined reference to `__cxa_guard_abort'
CMakeFiles/cxx_objects.dir/__/src/typeinfo.cpp.o:(.data.rel.ro._ZTISt9type_info[_ZTISt9type_info]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
CMakeFiles/cxx_objects.dir/__/src/variant.cpp.o:(.data.rel.ro._ZTISt18bad_variant_access[_ZTISt18bad_variant_access]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
CMakeFiles/cxx_objects.dir/__/src/vector.cpp.o: In function `__throw_length_error':
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:225: undefined reference to `__cxa_allocate_exception'
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:225: undefined reference to `__cxa_throw'
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:225: undefined reference to `__cxa_free_exception'
CMakeFiles/cxx_objects.dir/__/src/vector.cpp.o: In function `__throw_out_of_range':
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:236: undefined reference to `__cxa_allocate_exception'
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:236: undefined reference to `__cxa_throw'
/usr/bin/llvm/llvm/projects/libcxx/include/stdexcept:236: undefined reference to `__cxa_free_exception'
collect2: error: ld returned 1 exit status
projects/libcxx/lib/CMakeFiles/cxx_shared.dir/build.make:128: recipe for target 'lib/libc++.so.1.0' failed
make[2]: *** [lib/libc++.so.1.0] Error 1
CMakeFiles/Makefile2:14266: recipe for target 'projects/libcxx/lib/CMakeFiles/cxx_shared.dir/all' failed
make[1]: *** [projects/libcxx/lib/CMakeFiles/cxx_shared.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2


Ты видишь «undefined reference to»? Значит вероятно линкуется не с той версией какой-то либы, хотя судя по всему находит всё что надо. Чисто мое предположеие.

I-Love-Microsoft ★★★★★
()
Ответ на: комментарий от i-rinat

Я на Debian 8 посмотрел, вроде всё есть. Может ТС что-то не то поставил или не то ищет.

xaizek ★★★★★
()

А... кажется, до меня дошло. У тебя слишком свежий Clang или слишком старый GCC. В GCC в 5.0 началась смена ABI, и долгое время бинарники, собранные Clang'ом не линковались с библиотеками, собранными GCC из-за разного кодирования имён символов. Потом в Clang всё-таки реализовали как-то новый манглинг. Как раз где-то в районе 3.8-3.9.

Так что либо Clang возьми постарее, либо дистрибутив обнови. Debian 8 это уже oldstable.

i-rinat ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.