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

Doesn't precompile on 1.5.0-beta1 (or 1.6) #135

Closed
PallHaraldsson opened this issue Jun 8, 2020 · 6 comments
Closed

Doesn't precompile on 1.5.0-beta1 (or 1.6) #135

PallHaraldsson opened this issue Jun 8, 2020 · 6 comments

Comments

@PallHaraldsson
Copy link
Contributor

Works on 1.4.0 but not my later versions (blocking ODBC.jl), and while master works not (on my) 1.6:

julia> @time using DecFP
[ Info: Precompiling DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd]
ERROR: LoadError: UndefVarError: Printf not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./Base.jl:26
 [2] top-level scope at /home/pharaldsson_sym/.julia/packages/DecFP/3jJW7/src/DecFP.jl:294
 [3] eval(::Module, ::Any) at ./boot.jl:331
 [4] top-level scope at /home/pharaldsson_sym/.julia/packages/DecFP/3jJW7/src/DecFP.jl:222
 [5] include(::Function, ::Module, ::String) at ./Base.jl:380
 [6] include(::Module, ::String) at ./Base.jl:368
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:331 [inlined]
 [9] eval(::Expr) at ./client.jl:467
 [10] top-level scope at ./none:3
in expression starting at /home/pharaldsson_sym/.julia/packages/DecFP/3jJW7/src/DecFP.jl:207
ERROR: Failed to precompile DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd] to /home/pharaldsson_sym/.julia/compiled/v1.5/DecFP/QmCKT_WYb32.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] top-level scope at timing.jl:174
@jmkuhn
Copy link
Contributor

jmkuhn commented Jun 8, 2020

Is this DecFP v0.4.10?

@stevengj
Copy link
Member

stevengj commented Jun 8, 2020

We probably need to tag a new release anyway.

@jmkuhn
Copy link
Contributor

jmkuhn commented Jun 8, 2020

The Printf errors make it look like the DecFP version is v0.4.8 or earlier. v0.4.10 works locally with 1.5.0-beta1 and 1.6.0-DEV.

@stevengj
Copy link
Member

stevengj commented Jun 8, 2020

Right, I think @PallHaraldsson must have pinned DecFP at an earlier version:

(@v1.6) pkg> add DecFP
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
Updating `~/.julia/environments/v1.6/Project.toml`
  [55939f99] + DecFP v0.4.10
Updating `~/.julia/environments/v1.6/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.10
  [e66e0078] + CompilerSupportLibraries_jll v0.3.3+0
  [55939f99] + DecFP v0.4.10
  [efe28fd5] + OpenSpecFun_jll v0.5.3+3
  [276daf66] + SpecialFunctions v0.9.0
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode

julia> using DecFP
[ Info: Precompiling DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd]

@stevengj stevengj closed this as completed Jun 8, 2020
@quinnj
Copy link
Collaborator

quinnj commented Jun 8, 2020

I've seen this a few times when working with packages w/ dependencies on DecFP.jl; I wonder if there are missing bounds in the General registry that kick people back to incompatible versions or something?

@stevengj
Copy link
Member

stevengj commented Jun 9, 2020

It could be that some packages have out-of-date upper bounds?

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

4 participants