Public bug reported: Hi,
I try to build GHDL with LLVM 3.5 backend on Ubuntu 14.04.2 LTS. I have interesting linker errors like: /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Errno.o): In function `llvm::sys::StrError(int)': (.text._ZN4llvm3sys8StrErrorEi+0x59): undefined reference to `std::string::assign(char const*, unsigned long)' Seems like the LLVM lib cannot link the Standard C++ lib. The missed symbol even doesn't exist in libc++, although there is a similar one: $ objdump -TC /usr/lib/x86_64-linux-gnu/libc++.so.1.0|grep -F 'assign(char const*, unsigned long)' 00000000000bbf9e w DF .text 00000000000000a2 Base std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*, unsigned long) In the header /usr/include/c++/v1/string the string type is typedef-ed from basic_string: typedef basic_string<char> string; I guess it is an Ubuntu packaging issue, the LLVM libs were compiled with a Standard C++ implementation which differs from the libc++ Ubuntu package. I have the following packages installed: llvm-3.5 llvm-3.5-dev llvm-3.5-runtime libc++-dev libc++-helpers libc++1 ** Affects: llvm-toolchain-3.5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1427163 Title: llvm libs don't link with libc++ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-3.5/+bug/1427163/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs