You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rhash 1.4.6 erroneously detects sse4 and sha1/sha-ni on old x86-64-v1 cpu on FreeBSD 14.5 #312
While compiling rhash on FreeBSD 14.5-RELEASE on an old x86-64-v1 cpu, the configure script detects sha1 and enables both -msse4 and -msha during compilation - instructions that are missing on that particular microarchitecture level and causes CMake to crash with Illegal operation on every Port that nneds it.
===> Configuring for rhash-1.4.6
Checking for sources ... RHash 1.4.6
Checking for target OS ... FreeBSD
Checking for cc version ... clang 21.1.8
Checking for linker support for dlopen ... yes
Checking for sha1 intrinsics ... yes
The cpu in question does have sse3 and ssse3 though which is part of the x86-64-v2 microarchitecture level. Perhaps this is related to the faulty detection?
I have tested the patch in 2852673 which was referenced in the similar issue #308 but it still detects the non existing instructions. Please let me know if I can provide further information or perform other test.
Activity