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 issue #21696 how to fix #177

Closed
miguelraz opened this issue Jun 13, 2017 · 3 comments
Closed

precompilation issue #21696 how to fix #177

miguelraz opened this issue Jun 13, 2017 · 3 comments

Comments

@miguelraz
Copy link

miguelraz commented Jun 13, 2017

Faced this myself, so I thought I might as well write it down for posterity's sake.
(Feel free to close.)

I was hitting this issue JuliaLang/julia#21969

I hit the same bug of
using Combinatorics - v0.4.0 or using PolynomialFactors v0.0.5
and got back

LoadError: Declaring __precompile__(true) is only allowed in module files being imported.
while loading C:\Users\miguel\.julia\v0.6\Combinatorics\src\Combinatorics.jl, in expression starting on line 1
__precompile__(::Bool) at loading.jl:335
include_from_node1(::String) at loading.jl:569
eval(::Module, ::Any) at boot.jl:235
_require(::Symbol) at loading.jl:483
require(::Symbol) at loading.jl:398
_include_from_serialized(::String) at loading.jl:157
_require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at loading.jl:200
_require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at loading.jl:236
_require(::Symbol) at loading.jl:434
require(::Symbol) at loading.jl:398
include_string(::String, ::String) at loading.jl:515
eval(::Module, ::Any) at boot.jl:235
(::Atom.##61#64)() at eval.jl:102
withpath(::Atom.##61#64, ::Void) at utils.jl:30
withpath(::Function, ::Void) at eval.jl:38
macro expansion at eval.jl:101 [inlined]
(::Atom.##60#63{Dict{String,Any}})() at task.jl:80

Sys info WINDOWS:

Julia Version 0.6.0-rc3.0
Commit ad290e93e4* (2017-06-07 11:53 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Athlon(tm) II X2 250 Processor
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Barcelona)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, amdfam10)

I then edited my files according to these PRs
JuliaMath/Combinatorics.jl#49
jverzani/PolynomialFactors.jl#5

and using DifferentialEquations now hit this bug.

LoadError: Declaring __precompile__(true) is only allowed in module files being imported.
while loading C:\Users\miguel\.julia\v0.6\DifferentialEquations\src\DifferentialEquations.jl, in expression starting on line 1
__precompile__(::Bool) at loading.jl:335
__precompile__() at loading.jl:331
include_from_node1(::String) at loading.jl:569
eval(::Module, ::Any) at boot.jl:235
_require(::Symbol) at loading.jl:483
require(::Symbol) at loading.jl:398
include_string(::String, ::String) at loading.jl:515
eval(::Module, ::Any) at boot.jl:235
(::Atom.##61#64)() at eval.jl:102
withpath(::Atom.##61#64, ::Void) at utils.jl:30
withpath(::Function, ::Void) at eval.jl:38
macro expansion at eval.jl:101 [inlined]
(::Atom.##60#63{Dict{String,Any}})() at task.jl:80

Then, doing using StochasticDiffEq and then using DifferentialEquations seems to have worked. Thanks to @shivin9 way back in the logs for that idea and Chris for the useful PRs.

@ChrisRackauckas
Copy link
Member

I'll leave this up so that way people venturing into v0.6-rc3 know this is a Julia issue with some solutions, but is a PITA for now. When it's fixed in Julia Base or through the other package changes, I'll close.

@miguelraz
Copy link
Author

Seems optimal. Thanks!

@miguelraz
Copy link
Author

This is now fixed with a Pkg.update().
Closing.

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