[Openmp-dev] ld too old?

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Thu Dec 19 15:39:39 PST 2019


Is the ld I'm using too old? I can work around this with -fuse-ld=lld
though.

$ clang++ -fopenmp -fopenmp-targets=nvptx64 test.cpp
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::basic_string(char const*,
std::allocator<char> const&)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&,
unsigned long)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_dispose()@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::operator=(char
const*)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_capacity(unsigned
long)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_data()
const at GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::c_str() const at GLIBCXX_3.4.21
'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_S_copy_chars(char*, char*,
char*)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_M_data(char*)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_M_local_data()@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string()@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::~basic_string()@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::operator=(std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_set_length(unsigned
long)@GLIBCXX_3.4.21'
/usr/local/software/jureca/Stages/2019a/software/binutils/2.32-GCCcore-8.3.0/bin/ld:
/p/project/cjzam11/kitayama1/opt/clang/201912192353/bin/../lib/libomptarget.so:
undefined reference to `std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Alloc_hider::_Alloc_hider(char*, std::allocator<char>
const&)@GLIBCXX_3.4.21'
clang-10: error: linker command failed with exit code 1 (use -v to see
invocation)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191220/2da8b0ee/attachment.html>


More information about the Openmp-dev mailing list