我按照clang / llvm指示去了TEE(这是我第五次这样做,所以我非常肯定我把所有东西都放在了正确的位置)。我遵循的指示如下:https://clang.llvm.org/get_started.html (步骤1-7,包括可选的)。
此时一切正常,没有错误消息。
当我尝试使用' make'时,当它到达libcxx时,它有链接器错误:
.
.
.
[100%] Built target cxx_objects
[100%] Linking CXX shared library ../../../lib/libc++.so
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::(anonymous namespace)::__throw_runtime_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)':
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0xf): undefined reference to `__cxa_allocate_exception'
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0x33): undefined reference to `__cxa_throw'
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0x3e): undefined reference to `__cxa_free_exception'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::ctype_byname<wchar_t>::do_widen(char) const':
locale.cpp:(.text._ZNKSt3__112ctype_bynameIwE8do_widenEc+0x43): undefined reference to `__cxa_call_unexpected'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::ctype_byname<wchar_t>::do_widen(char const*, char const*, wchar_t*) const':
locale.cpp:(.text._ZNKSt3__112ctype_bynameIwE8do_widenEPKcS3_Pw+0x7a): undefined reference to `__cxa_call_unexpected'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::ctype_byname<wchar_t>::do_narrow(wchar_t, char) const':
locale.cpp:(.text._ZNKSt3__112ctype_bynameIwE9do_narrowEwc+0x46): undefined reference to `__cxa_call_unexpected'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::ctype_byname<wchar_t>::do_narrow(wchar_t const*, wchar_t const*, char, char*) const':
locale.cpp:(.text._ZNKSt3__112ctype_bynameIwE9do_narrowEPKwS3_cPc+0x8d): undefined reference to `__cxa_call_unexpected'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::locale::__imp::use_facet(long) const [clone .part.18]':
locale.cpp:(.text.unlikely._ZNKSt3__16locale5__imp9use_facetEl.part.18+0x7): undefined reference to `__cxa_allocate_exception'
locale.cpp:(.text.unlikely._ZNKSt3__16locale5__imp9use_facetEl.part.18+0x28): undefined reference to `__cxa_throw'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function `std::__1::__time_get_c_storage<char>::__weeks() const':
locale.cpp:(.text._ZNKSt3__120__time_get_c_storageIcE7__weeksEv+0x21): undefined reference to `__cxa_guard_acquire'
locale.cpp:(.text._ZNKSt3__120__time_get_c_storageIcE7__weeksEv+0x167): undefined reference to `__cxa_guard_release'
locale.cpp:(.text._ZNKSt3__120__time_get_c_storageIcE7__weeksEv+0x178): undefined reference to `__cxa_guard_acquire'
locale.cpp:(.text._ZNKSt3__120__time_get_c_storageIcE7__weeksEv+0x35a): undefined reference to `__cxa_guard_release'
locale.cpp:(.text._ZNKSt3__120__time_get_c_storageIcE7__weeksEv+0x383): undefined reference to `__cxa_guard_abort'
.
.
.
我做错了什么?再次,一个新的Ubuntu安装,所以我没有安装任何apt安装或更改我的PATH或类似的东西。