<div dir="ltr"><div>Is the ld I'm using too old? I can work around this with -fuse-ld=lld though.</div><div> </div>$ clang++ -fopenmp -fopenmp-targets=nvptx64 test.cpp<br>/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'<br>/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'<br>/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'<br>/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'<br>/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'<br>/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@GLIBCXX_3.4.21'<br>/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@GLIBCXX_3.4.21'<br>/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'<br>/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'<br>/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'<br>/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'<br>/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'<br>/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'<br>/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'<br>/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'<br>clang-10: error: linker command failed with exit code 1 (use -v to see invocation)<br></div>