I think I’ve figured out the problem… During this week, I tried to reproduce the problem on another OS. So, I followed the same steps I described here in the post using PoP!_OS 22.04 LTS. In this case, the problem didn’t occur.
My main system is ArchLinux. Since it’s been installed for over two years, I decided to try to reproduce the problem on a “clean install”. As a result, this time Julia didn’t even start. The error reported was:
$ julia
ERROR: Unable to load dependent library /home/alex/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin/../lib/julia/libopenlibm.so
Message:/home/alex/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin/../lib/julia/libopenlibm.so: cannot enable executable stack as shared object requires: Invalid argument
With a quick google search, I found this blog post: https://discourse.julialang.org/t/error-cannot-enable-executable-stack-when-starting-julia-solved/125655
It describes the problem in more detail… But in short, it may have something to do with a glib update (see https://github.com/JuliaLang/julia/issues/57250) for more details…)
The suggestion that worked on (clean Arch Linux install) was:
git clone https://aur.archlinux.org/execstack.git
sudo pacman -S elfutils (if you don't have it installed)
cd execstack/
makepkg
sudo pacman -U execstack-....pkg.tar.zst
execstack -c /home/user/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin/../lib/julia/libopenlibm.so
julia
] + add PackageCompiler
using Pkg
Pkg.generate("MyApp")
exit()
julia -q --project
using PackageCompiler
create_app("MyApp", "MyAppCompiled")
As soon as possible, I’ll test it on my main system (Arch ~2 years old) and update the post.
*Conclusion: It seems to have nothing to do with PackageCompiler.jl, but I think it’s better not to change the post name because others may have similar problems…