On Julia 1.6 using Plots is taking forever (EDIT: now done, took 21 minutes) to precompile so I ran strace on the Julia process:
strace: Process 4845 attached
strace: [ Process PID=4845 runs in x32 mode. ]
[hung forever here, then I got, while writing this post, precompiling is still ongoing.]
strace: [ Process PID=4845 runs in 64 bit mode. ]
statx(AT_FDCWD, "/home/pharaldsson_sym/.julia/packages/PlotThemes/4DCOG/src/lime.jl", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0444, stx_size=674, ...}) = 0
openat(AT_FDCWD, "/home/pharaldsson_sym/.julia/packages/PlotThemes/4DCOG/src/lime.jl", O_RDONLY|O_CLOEXEC) = 17
read(17, "# a blue/green/yellow theme of n"..., 32768) = 674
close(17) = 0
brk(0x22bd000) = 0x22bd000
EDIT: I see I started with: $ julia --compile=min -t2
maybe it’s slowing down.
EDIT2:
It finally ended:
julia> @time using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
┌ Warning: Module PlotUtils with build ID 6135914092619044 is missing from the cache.
│ This may mean PlotUtils [995b91a9-d308-5afd-9ec6-746e21dbc043] does not support precompilation but is imported by a module that does.
â”” @ Base loading.jl:907
1272.954376 seconds (5.11 M allocations: 375.400 MiB, 0.01% gc time)
I noticed from strace:
[..]
openat(AT_FDCWD, "/home/pharaldsson_sym/.julia/packages/PlotThemes/4DCOG/src/juno.jl", O_RDONLY|O_CLOEXEC) = 17
read(17, "#inspired by nucleus theme for A"..., 32768) = 529
close(17) = 0
statx(AT_FDCWD, "/home/pharaldsson_sym/.julia/packages/PlotThemes/4DCOG/src/gruvbox.jl", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0444, stx_size=2695, ...}) = 0
openat(AT_FDCWD, "/home/pharaldsson_sym/.julia/packages/PlotThemes/4DCOG/src/gruvbox.jl", O_RDONLY|O_CLOEXEC) = 17
read(17, "# https://github.com/morhetz/gru"..., 32768) = 2695
[..]
what can only be either (seems to be former copined into):
[ gruvbox](https://github.com/morhetz/gruvbox)
[ gruvbox-contrib](https://github.com/morhetz/gruvbox-contrib)
[..]
epoll_ctl(3, EPOLL_CTL_DEL, 14, 0x7ffd1b5107f0) = -1 ENOENT (No such file or directory)
close(14) = 0
epoll_ctl(3, EPOLL_CTL_DEL, 12, 0x7ffd1b5107f0) = -1 ENOENT (No such file or directory)
[..]