I had the same issue as @xuiqzy, however disabling debug did not do anything. Searching on the internet, I found this bug report: https://forum.opennmt.net/t/linker-error-when-compiling-ctranslate2-with-march-corei7-avx-cxx-flags/3951
I do have -march=native
in my makepkg.conf
, hence why I ran across the compile error, and using the fix as described in the bug report, adding -DENABLE_CPU_DISPATCH=OFF
did in fact fix the compile error.
I leave it up to you @yochananmarqos to add it to the PKGBUILD or not, but for anyone else running with -march=native
or a specific CPU architecture, try adding the flag and see if it works. I'm just leaving this comment here for future reference.
Pinned Comments
yochananmarqos commented on 2024-10-24 19:03 (UTC)
PSA: I just enabled OPENBLAS, but I had to disable both MKL and DNNL to do it. Please let me know how that goes.