community/opencv-4.8.1-r0: linking error, unknown relocation (60) against symbol on riscv64
openvcv
fails to build on arch:riscv64 with:
ninja: job failed: : && /usr/bin/clang++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -g -g1 -Wl,--as-needed,-O1,--sort-common -fuse-ld=lld CMakeFiles/cmTC_e63de.dir/testCXXCompiler.cxx.o -o cmTC_e63de && :
ld.lld: error: /usr/lib/Scrt1.o:(.debug_rnglists+0x15): unknown relocation (60) against symbol .LFE0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x16): unknown relocation (60) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x16): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_rnglists+0x15): unknown relocation (61) against symbol .LFB0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x17): unknown relocation (60) against symbol .LVL2
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x17): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x1b): unknown relocation (60) against symbol .LVL2
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x1b): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x1c): unknown relocation (60) against symbol .LVL3
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x1c): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x22): unknown relocation (60) against symbol .LVL3
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x22): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x23): unknown relocation (60) against symbol .LFE0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x23): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x34): unknown relocation (60) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x34): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x35): unknown relocation (60) against symbol .LVL2
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x35): unknown relocation (61) against symbol .LVL0
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x3a): unknown relocation (60) against symbol .LVL2
ld.lld: error: /usr/lib/Scrt1.o:(.debug_loclists+0x3a): unknown relocation (61) against symbol .LVL0
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
See: