Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompilation fails in Julia 1.6.7 (current LTS) #131

Closed
jonas-schulze opened this issue Jan 11, 2023 · 2 comments
Closed

Precompilation fails in Julia 1.6.7 (current LTS) #131

jonas-schulze opened this issue Jan 11, 2023 · 2 comments

Comments

@jonas-schulze
Copy link

Adding TranscodingStreams to a fresh environment using the current Julia LTS fails. The last version that succeeded is v0.5. I noticed this behavior trying to use MAT (JuliaIO/MAT.jl#179), which got TranscodingStreams as a depency via CodecZlib.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.7 (2022-07-19)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.6) pkg> activate --temp
  Activating new environment at `/tmp/jl_AqElEJ/Project.toml`

(jl_AqElEJ) pkg> add TranscodingStreams
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `/tmp/jl_AqElEJ/Project.toml`
  [3bb67fe8] + TranscodingStreams v0.9.11
    Updating `/tmp/jl_AqElEJ/Manifest.toml`
  [3bb67fe8] + TranscodingStreams v0.9.11
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [9a3f8284] + Random
  [9e88b42a] + Serialization
  [8dfed614] + Test

(jl_AqElEJ) pkg> ┌ Error: Pkg.precompile error
│   exception =
│    IOError: stat("/root/.julia/packages/TranscodingStreams/DYpJd/src/TranscodingStreams.jl"): permission denied (EACCES)
│    Stacktrace:
│     [1] uv_error
│       @ ./libuv.jl:97 [inlined]
│     [2] stat(path::String)
│       @ Base.Filesystem ./stat.jl:69
│     [3] samefile
│       @ ./stat.jl:319 [inlined]
│     [4] stale_cachefile(modpath::String, cachefile::String; ignore_loaded::Bool)
│       @ Base ./loading.jl:1784
│     [5] stale_cachefile
│       @ ./loading.jl:1727 [inlined]
│     [6] _is_stale
│       @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:905 [inlined]
│     [7] macro expansion
│       @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1132 [inlined]
│     [8] (::Pkg.API.var"#212#239"{Bool, Vector{Task}, Pkg.API.var"#handle_interrupt#231"{Base.Event, ReentrantLock, Base.TTY}, Pkg.API.var"#color_string#229", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Pkg.Types.Manifest, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│       @ Pkg.API ./task.jl:417
└ @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1023

@mkitti
Copy link
Member

mkitti commented Apr 11, 2023

I cannot reproduce.

$ julia-1.6.7/bin/julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.7 (2022-07-19)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.6) pkg> activate --temp
  Activating new environment at `/tmp/jl_Ipwj4u/Project.toml`

(jl_Ipwj4u) pkg> add TranscodingStreams
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
    Updating `/tmp/jl_Ipwj4u/Project.toml`
  [3bb67fe8] + TranscodingStreams v0.9.12
    Updating `/tmp/jl_Ipwj4u/Manifest.toml`
  [3bb67fe8] + TranscodingStreams v0.9.12
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [9a3f8284] + Random
  [9e88b42a] + Serialization
  [8dfed614] + Test
Precompiling project...
  1 dependency successfully precompiled in 3 seconds

Are you using a custom system image?

@jonas-schulze
Copy link
Author

No, I used the x86 download from julialang.org .... however, with a fresh ~/.julia I can no longer reproduce either. Unless this is smth worth investigating, feel free to close the GitHub issue. With my old ~/.julia I still can reproduce the failure, even with v0.9.12 instead of v0.9.11. The oldest Julia that has ever lived on my computer is 1.6.7, but the ~/.julia is shared between 1.6.7, 1.7.3 (barely used), and 1.8.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants