Keno / ASTInterpreter.jl

Gallium's AST interpreter as a separate package to simplify development
Other
16 stars 10 forks source link

ERROR: LoadError: Failed to precompile ASTInterpreter #49

Closed lobingera closed 8 years ago

lobingera commented 8 years ago
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+4032 (2016-05-10 19:55 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c9d4051* (2 days old master)
|__/                   |  x86_64-linux-gnu

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating cache of StatsBase...
INFO: Updating cache of Compat...
INFO: Updating cache of StatsFuns...
INFO: Updating cache of Showoff...
INFO: Updating Showoff master...
INFO: Updating Reactive master...
INFO: Updating ELF master...
INFO: Updating Gallium master... 63e3fa82 → 5ccf1d76
INFO: Updating JuliaParser master... 49fd298b → 77e1f403
INFO: Updating Compose master...
INFO: Updating ASTInterpreter master... 2e40b4f8 → db844242
INFO: Updating StructIO master...
INFO: Updating ObjFileBase master...
INFO: Updating VT100 master...
INFO: Updating Gadfly master...
INFO: Updating AbstractTrees master...
INFO: Updating MachO master...
INFO: Updating DWARF master...
INFO: Updating TerminalUI master...
INFO: Updating Cxx master...
INFO: Computing changes...
INFO: Upgrading Compat: v0.7.15 => v0.7.17
INFO: Upgrading StatsBase: v0.8.0 => v0.8.1
INFO: Upgrading StatsFuns: v0.2.0 => v0.2.1
false

julia> using Gallium
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/Gallium.ji for module Gallium.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/ASTInterpreter.ji for module ASTInterpreter.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/JuliaParser.ji for module JuliaParser.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/Compat.ji for module Compat.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/ColorTypes.ji for module ColorTypes.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/FixedPointNumbers.ji for module FixedPointNumbers.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/Colors.ji for module Colors.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/VT100.ji for module VT100.
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/lobi/.julia/v0.5/VT100/src/VT100.jl:114
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /home/lobi/.julia/v0.5/VT100/src/VT100.jl:227
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/TerminalUI.ji for module TerminalUI.
INFO: Recompiling stale cache file /home/lobi/.julia/lib/v0.5/Reactive.ji for module Reactive.
WARNING: could not import REPL.MIRepl into TerminalUI
top(typeassert)
Tuple{Int64,Type{Int64}}
ERROR: LoadError: no method found for the specified argument types
while loading /home/lobi/.julia/v0.5/ASTInterpreter/src/ASTInterpreter.jl, in expression starting on line 1546
ERROR: LoadError: Failed to precompile ASTInterpreter to /home/lobi/.julia/lib/v0.5/ASTInterpreter.ji
 [inlined code] from ./error.jl:21
 in compilecache(::String) at ./loading.jl:505
 in recompile_stale(::Symbol, ::String) at ./loading.jl:581
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:173
 in _require_from_serialized(::Int64, ::Symbol, ::Bool) at ./loading.jl:202
 in require(::Symbol) at ./loading.jl:332
 in include_from_node1(::String) at ./loading.jl:426
 [inlined code] from ./boot.jl:230
 in anonymous at ./<no file>:4294967295
 in eval(::Module, ::Any) at ./boot.jl:230
 [inlined code] from ./sysimg.jl:11
 in process_options(::Base.JLOptions) at ./client.jl:240
 in _start() at ./client.jl:319
while loading /home/lobi/.julia/v0.5/Gallium/src/Gallium.jl, in expression starting on line 3
ERROR: Failed to precompile Gallium to /home/lobi/.julia/lib/v0.5/Gallium.ji
 [inlined code] from ./error.jl:21
 in compilecache(::String) at ./loading.jl:505
 in recompile_stale(::Symbol, ::String) at ./loading.jl:581
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:173
 in _require_from_serialized(::Int64, ::Symbol, ::Bool) at ./loading.jl:202
 in require(::Symbol) at ./loading.jl:332
 in eval(::Module, ::Any) at ./boot.jl:230
Keno commented 8 years ago

I think the problem is that your julia version still has TopNode (which got removed yesterday), but you ASTInterpreter version is already updated for that removal.

lobingera commented 8 years ago

OK, works with

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+4088 (2016-05-14 00:51 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 91c0db7* (0 days old master)
|__/                   |  x86_64-linux-gnu

julia> using Gallium

julia>