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

failed to compile on Julia v1.0 #18

Closed
yangcht opened this issue Aug 9, 2018 · 8 comments
Closed

failed to compile on Julia v1.0 #18

yangcht opened this issue Aug 9, 2018 · 8 comments

Comments

@yangcht
Copy link

yangcht commented Aug 9, 2018

when using Measurements in Julia 1.0, it fails

julia> using Measurements
[ Info: Precompiling Measurements [eff96d63-e80a-5855-80a2-b1b0885c5ab7]
ERROR: LoadError: LoadError: UndefVarError: Associative not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /Users/yangcht/.julia/packages/Measurements/pcvQy/src/Measurements.jl:22
 [6] top-level scope at none:0
 [7] include at ./boot.jl:317 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1038
 [9] include(::Module, ::String) at ./sysimg.jl:29
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:319 [inlined]
 [12] eval(::Expr) at ./client.jl:389
 [13] top-level scope at ./none:3
in expression starting at /Users/yangcht/.julia/packages/Measurements/pcvQy/src/derivatives-type.jl:22
in expression starting at /Users/yangcht/.julia/packages/Measurements/pcvQy/src/Measurements.jl:32
ERROR: Failed to precompile Measurements [eff96d63-e80a-5855-80a2-b1b0885c5ab7] to /Users/yangcht/.julia/compiled/v1.0/Measurements/8B0my.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834

julia>

How should it be solved? Many thanks!!

@giordano
Copy link
Member

giordano commented Aug 9, 2018

Try switching to master branch, it should support julia 0.7 and thus julia 1.0

@yangcht
Copy link
Author

yangcht commented Aug 13, 2018

Hi Mosè, I tried to switch to the master branch by

(v1.0) pkg> add Measurements#master

But I got a similar error when I compile it for use:

julia> using Measurements
[ Info: Precompiling Measurements [eff96d63-e80a-5855-80a2-b1b0885c5ab7]
ERROR: LoadError: LoadError: UndefVarError: start not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at /Users/yangcht/.julia/packages/Measurements/oelLI/src/Measurements.jl:22
 [7] top-level scope at none:0
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:389
 [14] top-level scope at ./none:3
in expression starting at /Users/yangcht/.julia/packages/Measurements/oelLI/src/derivatives-type.jl:66
in expression starting at /Users/yangcht/.julia/packages/Measurements/oelLI/src/Measurements.jl:32
ERROR: Failed to precompile Measurements [eff96d63-e80a-5855-80a2-b1b0885c5ab7] to /Users/yangcht/.julia/compiled/v1.0/Measurements/8B0my.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834

@giordano
Copy link
Member

Ok, I will have to look into this. Now I'm on vacation without a computer, it'll take some days

@yangcht
Copy link
Author

yangcht commented Aug 13, 2018

Thanks! And enjoy your vacation!!

@giordano
Copy link
Member

For the record, this package passed CI without warnings about 20 days before release of julia 1.0: https://travis-ci.org/JuliaPhysics/Measurements.jl/jobs/406597690 thus either there have been late breaking changes or deprecation warnings were missing.

@yangcht
Copy link
Author

yangcht commented Aug 14, 2018

Could this be an issue related to the dependent packages?

@giordano
Copy link
Member

No, from a cursory look at the code I think it's an issue in this package, but until a few days ago it worked without warnings

@giordano giordano mentioned this issue Aug 15, 2018
@giordano
Copy link
Member

Fixed in #19

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

2 participants