bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31982] [2.43 Regression] mir 2.17 build failure during an LTO en


From: hjl.tools at gmail dot com
Subject: [Bug ld/31982] [2.43 Regression] mir 2.17 build failure during an LTO enabled build
Date: Thu, 29 Aug 2024 13:00:57 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]