I'm having similar issues as Neko-san, but their PKGBUILD edits didn't seem to work for me, nor did your suggested LDFLAG edit Myrddin.
This is what I'm seeing when I try to use Neko-san's PKGBUILD:
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o): in function `std::_Deque_base<std::experimental::filesystem::v1::__cxx11::path, std::allocator<std::experimental::filesystem::v1::__cxx11::path> >::_M_initialize_map(unsigned long)':
(.text._ZNSt11_Deque_baseINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_initialize_mapEm[_ZNSt11_Deque_baseINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_initialize_mapEm]+0xf1): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o): in function `std::deque<std::experimental::filesystem::v1::__cxx11::path, std::allocator<std::experimental::filesystem::v1::__cxx11::path> >::_M_reallocate_map(unsigned long, bool)':
(.text._ZNSt5dequeINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_reallocate_mapEmb[_ZNSt5dequeINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_reallocate_mapEmb]+0x188): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o):(.text._ZNSt6vectorINSt12experimental10filesystem2v17__cxx114path5_CmptESaIS5_EEaSERKS7_.isra.0+0x2bf): more undefined references to `std::__throw_bad_array_new_length()' follow
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:1739: openrgb] Error 1
==> ERROR: A failure occurred in build().
Aborting...
error making: openrgb-git
I see the same error that Neko-san originally reported if I just try the LDFLAG fix.
I'm new to this, how would I invoke the -v flag for clang to tell me what actually went wrong with that linker error?
Pinned Comments