JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
391 stars 99 forks source link

Packages depend on BinaryBuilder.jl installation fails with illegal instruction on armv6l devices #576

Open terasakisatoshi opened 4 years ago

terasakisatoshi commented 4 years ago

Thank you.

terasakisatoshi commented 4 years ago

It is easy to reproduce getting error msg with Illegal instruction using the following Dockerfile:

FROM terasakisatoshi/jlcross:rpizero-v1.3.0

RUN julia -e 'using Pkg; Pkg.add("FFMPEG")'
notinaboat commented 3 years ago

Related? https://github.com/JuliaPackaging/Yggdrasil/pull/1707

notinaboat commented 3 years ago

It looks like the latest _jll releases include armv6l binaries: https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl/releases ... but only for julia 1.6: https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl/blob/ff43d4a8b3d577794a48ab4f5a3c6171c5c98971/Project.toml#L11-L13

I was able to work around "Invalid ARM instruction" by manually downloading the armv6l _jll release tarball and overwriting the content of the ~/.julia/artifacts ...

pi@raspberrypi:~/.julia/artifacts/6051ba7f32a666a7c54493c4271750b5a9e43379 $ wget https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases/download/CompilerSupportLibraries-v0.3.6%2B1/CompilerSupportLibraries.v0.3.6.armv6l-linux-gnueabihf-libgfortran5.tar.gz

pi@raspberrypi:~/.julia/artifacts/6051ba7f32a666a7c54493c4271750b5a9e43379 $ tar xzf CompilerSupportLibraries.v0.3.6.armv6l-linux-gnueabihf-libgfortran5.tar.gz

... using pkg> dev to forcibly updatethe _jll packages to git master works too.

terasakisatoshi commented 3 years ago

Thank you for looking issue i posted. I need check again! > It looks like the latest _jll releases include armv6l binaries: