I keep hitting this any time I need to build/rebuild this package.
/usr/bin/ld: /mnt/DATA/tim/.cache/yay/ffmpeg-full/src/staging/lib/libwhisper.a(whisper.cpp.o): warning: relocation against `_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' in read-only section `.text._ZNKSt7__cxx1112regex_traitsIcE5valueEci.isra.0[_ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi]'
/usr/bin/ld: /mnt/DATA/tim/.cache/yay/ffmpeg-full/src/staging/lib/libwhisper.a(whisper.cpp.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [ffbuild/library.mak:132: libavfilter/libavfilter.so.11] Error 1
rm fftools/resources/graph.html.gz fftools/resources/graph.css.min.gz fftools/resources/graph.css.c fftools/resources/graph.css.min fftools/resources/graph.html.c
I've been addressing it by adding a cmake option to the whisper compile. CMAKE_POSITION_INDEPENDENT_CODE=ON
Pinned Comments
dbermond commented on 2024-06-24 15:59 (UTC)
@LordSIGSEGV avoid creating files not tracked by pacman in the system reserved directories, specially symlinks to shared libraries, as this have the potential to completely break your system. I have already notified the quirc maintainer in the aur web page of the package in April-2024. While this issue is not solved in quirc, I recommend to use quirc-git, which currently has a better packaging and does not suffer from this problem.