PackageCompiler dependency issues (1.1; failing with dependency errors)

What is the correct way to use PackageCompiler in 1.1?

I naively tried:

using PackageCompiler
compile_incremental(:Plots, force=false)

And it keeps throwing dependency errors, like: “LoadError: … Package … is required, but does not seem to be installed”. First about VisualRegressionTests, then about UnicodePlots and StatsPlots and then, having installed these, about Images. Knowing that the dependency tree can be arbitrarily deep, I gave up at this point.

Am I doing anything wrong? Any idea why it doesn’t find these dependencies?

There is an issue in PackageCompiler about this, which recommends using the now-defunct notoml branch, but that’s basically it.

I also tried it with the GR package and there I get some error about “Task cannot be serialized”. Might PackageCompiler be defunct in 1.1?

I’m on Windows.

Try the master branch with pkg> dev:

Better to use/recommend add PackageCompiler#master.


No, there’s a bug in PackageCompiler which means that you get that serialization error unless you dev (yes, this is very weird, and no, I don’t know why it happens).

Thanks a lot! This fixes the serialization errors!

I’m still getting the various dependency errors precompiling Plots, though. Anyone else here seeing these?

  1. Yes, same dependencies errors using Julia v1.1.1 ( official binaries) on Linux. Also tried pkg> instantiate, but it didn’t find any missing dependencies.

  2. Also, if somebody is using Julia binaries installed from Linux distribution’s repositories (in this case Arch Linux), there is error building Arpack while doing compile_incremental(:Plots, force=false), also when tried to build manually, but still:

(v1.1) pkg> build Arpack
  Building Arpack → `~/.julia/packages/Arpack/cu5By/deps/build.log`
┌ Error: Error building `Arpack`: 
│ ERROR: LoadError: LibraryProduct(nothing, ["libarpack"], :libarpack, "Prefix(/home/kest/.julia/packages/Arpack/cu5By/deps/usr)") is not satisfied, cannot generate deps.jl!
│ Stacktrace:
│  [1] #write_deps_file#152(::Bool, ::Function, ::String, ::Array{LibraryProduct,1}) at /home/kest/.julia/packages/BinaryProvider/TcAwt/src/Products.jl:414
│  [2] (::getfield(BinaryProvider, Symbol("#kw##write_deps_file")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at ./none:0
│  [3] top-level scope at none:0
│  [4] include(::String) at ./client.jl:403
│  [5] top-level scope at none:0
│ in expression starting at /home/kest/.julia/packages/Arpack/cu5By/deps/build.jl:74
└ @ Pkg.Operations /build/julia/src/julia-1.1.1/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

But error is not occurring using official Julia binaries from! Maybe different GCC versions used to compile Julia caused that (could be related: Installation error when Julia is built from source · Issue #5 · JuliaLinearAlgebra/Arpack.jl · GitHub).

  1. Answering:

@pfitzseb, I am using add PackageCompiler@master and no serialization errors, maybe this could be the cause:
“The package dev command works similar to add but instead of locking the package to the state it was when you added it, the environment using the package will continuously use the latests changes to the package.”