JuliaAlgebra / DynamicPolynomials.jl

Multivariate polynomials implementation of commutative and non-commutative variables
Other
60 stars 21 forks source link

fails to precompile on Julia 1.3 master #50

Closed chriscoey closed 5 years ago

chriscoey commented 5 years ago
coey@sp4:~/.julia/dev/Hypatia$ j
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.0-alpha.148 (2019-08-16)
 _/ |\__'_|_|_|\__'_|  |  Commit b5f4e87774 (0 days old master)
|__/                   |

julia> using DynamicPolynomials
[ Info: Precompiling DynamicPolynomials [7c1d4256-1411-5781-91ec-d7bc3513ac07]
ERROR: LoadError: LoadError: syntax: suffix not allowed after `var"))
    else
        isa(var, Expr) || error("`
Stacktrace:
 [1] top-level scope at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/var.jl:13
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include(::String) at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:1
 [6] top-level scope at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:8
 [7] include at ./boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1105
 [9] include(::Module, ::String) at ./Base.jl:31
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:330 [inlined]
 [12] eval(::Expr) at ./client.jl:433
 [13] top-level scope at ./none:3
in expression starting at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/var.jl:13
in expression starting at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:8
ERROR: Failed to precompile DynamicPolynomials [7c1d4256-1411-5781-91ec-d7bc3513ac07] to /home/coey/.julia/compiled/v1.3/DynamicPolynomials/tepBk_xW7xB.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1274
 [3] _require(::Base.PkgId) at ./loading.jl:1024
 [4] require(::Base.PkgId) at ./loading.jl:922
 [5] require(::Module, ::Symbol) at ./loading.jl:917
chriscoey commented 5 years ago

Possibly related: https://github.com/JuliaLang/julia/pull/32408

chriscoey commented 5 years ago

still fails on latest Julia

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0-DEV.17 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Commit 8ebe5643ca (0 days old master)
|__/                   |

(v1.4) pkg> activate .
Activating new environment at `~/julia/Project.toml`

julia> using DynamicPolynomials
[ Info: Precompiling DynamicPolynomials [7c1d4256-1411-5781-91ec-d7bc3513ac07]
ERROR: LoadError: LoadError: syntax: suffix not allowed after `var"))
    else
        isa(var, Expr) || error("`
Stacktrace:
 [1] top-level scope at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/var.jl:13
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include(::String) at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:1
 [6] top-level scope at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:8
 [7] include at ./boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1105
 [9] include(::Module, ::String) at ./Base.jl:31
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:330 [inlined]
 [12] eval(::Expr) at ./client.jl:433
 [13] top-level scope at ./none:3
in expression starting at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/var.jl:13
in expression starting at /home/coey/.julia/packages/DynamicPolynomials/ISFei/src/DynamicPolynomials.jl:8
ERROR: Failed to precompile DynamicPolynomials [7c1d4256-1411-5781-91ec-d7bc3513ac07] to /home/coey/.julia/compiled/v1.4/DynamicPolynomials/tepBk_SEfir.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1274
 [3] _require(::Base.PkgId) at ./loading.jl:1024
 [4] require(::Base.PkgId) at ./loading.jl:922
 [5] require(::Module, ::Symbol) at ./loading.jl:917
chriscoey commented 5 years ago

now fixed on julia master thanks to https://github.com/JuliaLang/julia/pull/32948