Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerpc64-linux-gnu #113

Open
LinuxUserGD opened this issue Aug 9, 2022 · 1 comment
Open

powerpc64-linux-gnu #113

LinuxUserGD opened this issue Aug 9, 2022 · 1 comment

Comments

@LinuxUserGD
Copy link
Contributor

Host system: x86_64-gentoo-linux-musl

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> section group signature: _ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
>>> prevailing definition is in ../../../../lib/libLLVMAArch64CodeGen.a(AArch64LowerHomogeneousPrologEpilog.cpp.o)
>>> referenced by ios.instantiations.cpp
>>>               /home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o:(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::swap(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> section group signature: _ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
>>> prevailing definition is in ../../../../lib/libLLVMAArch64CodeGen.a(AArch64LowerHomogeneousPrologEpilog.cpp.o)
>>> referenced by ios.instantiations.cpp
>>>               /home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o:(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::swap(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZTv0_n24_NSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> section group signature: _ZTv0_n24_NSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
>>> prevailing definition is in ../../../../lib/libLLVMAArch64CodeGen.a(AArch64LowerHomogeneousPrologEpilog.cpp.o)
>>> referenced by ios.instantiations.cpp
>>>               /home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o:(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::swap(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZTv0_n24_NSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> section group signature: _ZTv0_n24_NSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
>>> prevailing definition is in ../../../../lib/libLLVMAArch64CodeGen.a(AArch64LowerHomogeneousPrologEpilog.cpp.o)
>>> referenced by ios.instantiations.cpp
>>>               /home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o:(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::swap(std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> prevailing definition is in ../../../../lib/libLLVMAArch64CodeGen.a(AArch64LowerHomogeneousPrologEpilog.cpp.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const* std::__1::__scan_keyword<std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const*, std::__1::ctype<char> >(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >&, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const*, std::__1::ctype<char> const&, unsigned int&, bool)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2IDnEEPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2IDnEEPKc
>>> prevailing definition is in ../../../../lib/libLLVMSupport.a(Program.cpp.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(std::__1::money_get<char, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::do_get(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, bool, std::__1::ios_base&, unsigned int&, __float128&) const) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(std::__1::money_get<char, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::do_get(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, bool, std::__1::ios_base&, unsigned int&, __float128&) const) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__116__throw_bad_castEv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNSt3__116__throw_bad_castEv
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(std::__1::money_get<char, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::do_get(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, bool, std::__1::ios_base&, unsigned int&, __float128&) const) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__120__throw_length_errorEPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(__cxx_global_array_dtor) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt12length_errorC2EPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(__cxx_global_array_dtor) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZSt28__throw_bad_array_new_lengthv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZSt28__throw_bad_array_new_lengthv
>>> prevailing definition is in ../../../../lib/libLLVMSupport.a(CommandLine.cpp.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(__cxx_global_array_dtor) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> section group signature: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by locale.cpp
>>>               /home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o:(__cxx_global_array_dtor) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/255e98d206e78de13b3d4de5ba569cca/mutex.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by mutex.cpp
>>>               /home/user/.cache/zig/o/255e98d206e78de13b3d4de5ba569cca/mutex.o:(std::__1::mutex::lock()) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/c03117f12c5770e51b699d5a97030176/random.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by random.cpp
>>>               /home/user/.cache/zig/o/c03117f12c5770e51b699d5a97030176/random.o:(std::__1::random_device::random_device(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned long, char const*, unsigned long)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNKSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE20__throw_length_errorEv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: _ZNKSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE20__throw_length_errorEv
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/5b95d7c8f015234d5498a3de977efcb8/locale.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(unsigned long, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long) const) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__120__throw_length_errorEPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::__assign_external(wchar_t const*)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZSt28__throw_bad_array_new_lengthv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: _ZSt28__throw_bad_array_new_lengthv
>>> prevailing definition is in ../../../../lib/libLLVMSupport.a(CommandLine.cpp.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::to_wstring(int)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt12length_errorC2EPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o)
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by string.cpp
>>>               /home/user/.cache/zig/o/0136d2bc4deaf274e3a1a47fb7a55a23/string.o:(std::__1::to_wstring(int)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/71017f5d1151b6d384ee256d24266527/charconv.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by charconv.cpp
>>>               /home/user/.cache/zig/o/71017f5d1151b6d384ee256d24266527/charconv.o:(char* std::__1::__itoa::append8_no_zeros<unsigned int>(char*, unsigned int)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o)
>>> section group signature: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorEv
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by system_error.cpp
>>>               /home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o:(std::__1::system_error::__init(std::__1::error_code const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__120__throw_length_errorEPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o)
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by system_error.cpp
>>>               /home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o:(std::__1::system_error::system_error(std::__1::error_code, char const*)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt12length_errorC2EPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o)
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by system_error.cpp
>>>               /home/user/.cache/zig/o/a51f8044cb8835861b5b6d2948848802/system_error.o:(std::__1::system_error::system_error(std::__1::error_code, char const*)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text.__clang_call_terminate
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o)
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in /home/user/.cache/zig/o/18e86770c05eed59357ac542cf2119cd/libc++abi.a(/home/user/.cache/zig/o/7c8e9436097c12c02adb8e7aecdf30fd/cxa_guard.o)
>>> referenced by thread.cpp
>>>               /home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o:(std::__1::thread::~thread()) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt3__120__throw_length_errorEPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o)
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by thread.cpp
>>>               /home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o:(std::__1::__thread_specific_ptr<std::__1::__thread_struct>::__at_thread_exit(void*)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a

ld.lld: error: relocation refers to a discarded section: .text._ZNSt12length_errorC2EPKc
>>> defined in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o)
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a(/home/user/.cache/zig/o/e63fc3dc40e5133d49284b6260a57cd3/ios.instantiations.o)
>>> referenced by thread.cpp
>>>               /home/user/.cache/zig/o/0e9dec2c2e48a69d68572f5053a7f02c/thread.o:(std::__1::__thread_specific_ptr<std::__1::__thread_struct>::__at_thread_exit(void*)) in archive /home/user/.cache/zig/o/9db5ebbb031ede5c57e5b12fe83b3584/libc++.a
make[2]: *** [tools/lld/tools/lld/CMakeFiles/lld.dir/build.make:243: bin/lld] Error 1
make[1]: *** [CMakeFiles/Makefile2:36682: tools/lld/tools/lld/CMakeFiles/lld.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
@alexrp
Copy link
Member

alexrp commented Sep 4, 2024

The main blocker here is going to be the fact that LLD just doesn't support ELFv1 for PPC64 at all, and glibc only supports ELFv2 for little endian, so we can't just simply force ELFv2.

In other words: We need the self-hosted linker to gain support for this before we can get anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants