Starting recently, I have been getting “LLVM ERROR: out of memory”.
(https://github.com/JuliaLang/julia/issues/27002)
Just wondering if there’s anyone who is successfully building Julia master on Raspberry Pi,
and if so could you provide me with any insights into getting it working? Thanks in advance.
You could try reducing the number of precompile statements (perhaps remove them completely). Basically empty the precompile.jl file. Julia will be quite sluggish to start but perhaps the compilation goes through.
The place where this happens is when the syimg is being created and the memory this uses depend quite strongly on how much stuff is in the precompile.jl. Therefore, the first thing I would change it to reduce the number of stuff in precompile.jl.
Yes, if I empty out base/precompile.jl the build does complete successfully.
And yes, the resulting julia is quite sluggish (takes almost a full minute to start up).
Is there a recommended way to judiciously prune base/precompile.jl so that less
frequently used methods are left out, but enough is left in so that start up time is
more reasonable, and the build still succeeds?
Also, might it be beneficial to run a 64-bit OS? Is there one that Julia people
recommend for the Raspberry Pi? Any other ideas are welcome.
Trying to run on raspberry pi zero 2w, the compiling of Makie for some graphics in the Genie web server. I’ve not played much with Docker and was wondering if I should start trying to mess with the jlcross to precompile on the Mac first. Any thoughts on this jlcross? It’s been quite a while since an update. Last version mentioned was 1.6. Is there a better way to do this now?
If we have a Raspberry Pi 5 with 64-bit operating system,
we can install Julia via juliaup, install packages, and do something such as precompilation in the Raspberry Pi 5.
Then, just copy ~/.julia to your target raspberry pi zero 2w.
I haven’t tried it, but in theory it should work.