Open1

Julia v1.6.0 の RasPi Zero ビルド

$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
$ docker run -it --rm \
    -v `pwd`:/workspace \
    pinto0309/raspios_lite_armhf:2021-03-04_buster bash

$ apt update && apt upgrade -y
$ apt install -y build-essential libatomic1 python gfortran perl wget \
m4 cmake pkg-config git libopenblas-base libopenblas-dev \
libatlas3-base libatlas-base-dev liblapack-dev libmpfr-dev \
libgmp3-dev libgfortran3

$ cd workspace
$ nano Make.user
JULIA_CPU_TARGET=arm1176jzf-s
prefix=/home/pi/work/julia-1.6.1
override USE_SYSTEM_BLAS=1
override USE_SYSTEM_LAPACK=1
override USE_SYSTEM_LIBM=1
override USE_SYSTEM_GMP=1
override USE_SYSTEM_MPFR=1
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
USE_BINARYBUILDER=1
LDFLAGS=-latomic

###$ git clone --depth=1 -b v1.6.0 https://github.com/JuliaLang/julia.git julia
$ git clone --depth=1 https://github.com/JuliaLang/julia.git julia
$ cp Make.user julia
$ cd julia && make OPENBLAS_USE_THREAD=0 -j15
ログインするとコメントできます