https://sourceware.org/bugzilla/show_bug.cgi?id=31982
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #6 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
On Fedora 40/x86-64, I got
[hjl@gnu-cfl-3 lib64]$ readelf --dyn-syms -W /usr/lib64/libstdc++.so.6.0.33 |
grep 00000000000c1a20
1727: 00000000000c1a20 42 FUNC WEAK DEFAULT 4
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_@@GLIBCXX_3.4.21
4081: 00000000000c1a20 42 FUNC WEAK DEFAULT 4
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcmRKS3_@@GLIBCXX_3.4.21
[hjl@gnu-cfl-3 lib64]$ readelf --dyn-syms -W /usr/lib64/libstdc++.so.6.0.33 |
grep 00000000000c1a20 | c++filt
1727: 00000000000c1a20 42 FUNC WEAK DEFAULT 4
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string(char const*, unsigned long, std::allocator<char>
const&)@@GLIBCXX_3.4.21
4081: 00000000000c1a20 42 FUNC WEAK DEFAULT 4
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string(char const*, unsigned long, std::allocator<char>
const&)@@GLIBCXX_3.4.21
[hjl@gnu-cfl-3 lib64]$
What do you get?
--
You are receiving this mail because:
You are on the CC list for the bug.