https://sourceware.org/bugzilla/show_bug.cgi?id=31982
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Matthias Klose from comment #5) > fails with > > /usr/bin/ld: /tmp/ccijjp3k.ltrans5.ltrans.o: in function > `StaticDisplayConfig_nonexistent_config_file_is_no_error_Test::TestBody()': > /usr/src/mir-2.14.1-7/tests/miral/static_display_config.cpp:154:(. > text+0x6d94): warning: the use of `tmpnam' is dangerous, better use `mkstemp' > /usr/bin/ld: ../libmir-test-assist.a(mmap_wrapper.cpp.o): in function > `std::literals::string_literals::operator"" s[abi:cxx11](char const*, > unsigned long)': > /usr/include/c++/14/bits/basic_string.h:4694:(.text+0x6f8): undefined > reference to `std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >::basic_string(char const*, unsigned long, > std::allocator<char> const&)' > /usr/bin/ld: /usr/include/c++/14/bits/basic_string.h:4694:(.text+0xa64): > undefined reference to `std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> >::basic_string(char const*, > unsigned long, std::allocator<char> const&)' > collect2: error: ld returned 1 exit status I can't reproduce it on Fedora 40/x86-64. It may have something to do with how your GCC is configured and the command-line options passed to linker. Please show the output of # gcc -v as well as pass -v to the final link command and show the full linker command line. -- You are receiving this mail because: You are on the CC list for the bug.