this means that HostPlatform() matches anything derived from HostPlatform() which differs only on the march tag, which is ignored. In particular this means we'll try to dlopen an AVX512 library on the build machine, but for example on Yggdrasil we don't have an AVX512-equipped system, so we get an illegal instruction error.
At the moment the auditor tries to dlopen the library under this condition: https://github.com/JuliaPackaging/BinaryBuilder.jl/blob/39554446b20e8ff9427d9cbd2b163776a4744b2f/src/Auditor.jl#L140 but
this means that
HostPlatform()
matches anything derived fromHostPlatform()
which differs only on themarch
tag, which is ignored. In particular this means we'll try to dlopen an AVX512 library on the build machine, but for example on Yggdrasil we don't have an AVX512-equipped system, so we get an illegal instruction error.We need a custom comparison strategy for the
march
key, similarly to what we do for theos_version
in JuliaBase
: https://github.com/JuliaLang/julia/blob/62e0729dbc5f9d5d93d14dcd49457f02a0c6d3a7/base/binaryplatforms.jl#L287-L317