Skip to content

Plots+GR failed #215

@dlfivefifty

Description

@dlfivefifty

I tried PackageCompiler.jl for the first time with

julia> compile_package("Plots", "GR")

but it gave the error:


Sysimage built. Summary:
Total ───────  78.516700 seconds 
Base: ───────  27.009789 seconds 34.4001%
Stdlibs: ────  51.504337 seconds 65.5967%
Build shared library "/Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.dylib":
  `cc -shared '-DJULIAC_PROGRAM_LIBNAME="/Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.dylib"' -o /Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.dylib -Wl,-all_load /Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.o -std=gnu99 -I/Users/solver/Projects/julia-1.1/usr/include/julia -DJULIA_ENABLE_THREADING=1 -fPIC -L/Users/solver/Projects/julia-1.1/usr/lib -Wl,-rpath,/Users/solver/Projects/julia-1.1/usr/lib -Wl,-rpath,/Users/solver/Projects/julia-1.1/usr/lib/julia -ljulia -m64 -Wl,-install_name,@rpath//Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.dylib`
Julia program file:
  "/Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/precompile.jl"
Build directory:
  "/Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg"

signal (11): Segmentation fault: 11
in expression starting at /Users/solver/.julia/config/startup.jl:1
uv_write2 at /Users/solver/Projects/julia-1.1/deps/srccache/libuv-2348256acf5759a544e5ca7935f638d2bc091d60/src/unix/stream.c:1434
jl_uv_write at /Users/solver/Projects/julia-1.1/src/jl_uv.c:442
uv_write_async at ./stream.jl:877
uv_write at ./stream.jl:845
unsafe_write at ./stream.jl:901
macro expansion at ./gcutils.jl:87 [inlined]
write at ./strings/io.jl:165 [inlined]
print at ./strings/io.jl:167 [inlined]
print at ./strings/io.jl:42
println at ./strings/io.jl:69
jl_fptr_trampoline at /Users/solver/Projects/julia-1.1/src/gf.c:1864
println at ./coreio.jl:4
jl_fptr_trampoline at /Users/solver/Projects/julia-1.1/src/gf.c:1864
do_call at /Users/solver/Projects/julia-1.1/src/interpreter.c:323
eval_stmt_value at /Users/solver/Projects/julia-1.1/src/interpreter.c:362 [inlined]
eval_body at /Users/solver/Projects/julia-1.1/src/interpreter.c:759
jl_interpret_toplevel_thunk_callback at /Users/solver/Projects/julia-1.1/src/interpreter.c:885
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x111a785af)
unknown function (ip: 0x6)
jl_interpret_toplevel_thunk at /Users/solver/Projects/julia-1.1/src/interpreter.c:894
jl_toplevel_eval_flex at /Users/solver/Projects/julia-1.1/src/toplevel.c:764
jl_parse_eval_all at /Users/solver/Projects/julia-1.1/src/ast.c:883
jl_load at /Users/solver/Projects/julia-1.1/src/toplevel.c:826 [inlined]
jl_load_ at /Users/solver/Projects/julia-1.1/src/toplevel.c:833
include at ./boot.jl:326 [inlined]
include_relative at ./loading.jl:1038
include at ./sysimg.jl:29 [inlined]
include_ifexists at ./client.jl:191 [inlined]
load_julia_startup at ./client.jl:299
exec_options at ./client.jl:238
_start at ./client.jl:436
jl_fptr_trampoline at /Users/solver/Projects/julia-1.1/src/gf.c:1864
true_main at /Users/solver/Projects/julia-1.1/usr/bin/julia (unknown line)
main at /Users/solver/Projects/julia-1.1/usr/bin/julia (unknown line)
Allocations: 1082997 (Pool: 1082446; Big: 551); GC: 1
ERROR: failed process: Process(`/Users/solver/Projects/julia-1.1/usr/bin/julia --sysimage=/Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/backup/native/sys.dylib --output-o=sys.a --track-allocation=none --code-coverage=none --history-file=yes --inline=yes --math-mode=ieee --compile=yes --track-allocation=none --sysimage-native-code=yes --sysimage=/Users/solver/Projects/julia-1.1/usr/lib/julia/sys.dylib --compiled-modules=yes --optimize=2 /Users/solver/.julia/packages/PackageCompiler/oT98U/sysimg/run_julia_code.jl`, ProcessSignaled(11)) [0]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
 [2] pipeline_error at ./process.jl:785 [inlined]
 [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
 [4] run at ./process.jl:724 [inlined]
 [5] #run_julia#1 at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/compiler_flags.jl:225 [inlined]
 [6] #run_julia at ./none:0 [inlined]
 [7] (::getfield(PackageCompiler, Symbol("##13#14")){Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{String,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing}}},String})() at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:262
 [8] cd(::getfield(PackageCompiler, Symbol("##13#14")){Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{String,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing}}},String}, ::String) at ./file.jl:96
 [9] #build_object#12(::Base.Iterators.Pairs{Symbol,Any,NTuple{14,Symbol},NamedTuple{(:sysimage, :startup_file, :handle_signals, :sysimage_native_code, :compiled_modules, :depwarn, :warn_overwrite, :compile, :cpu_target, :optimize, :debug_level, :inline, :check_bounds, :math_mode),Tuple{String,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing}}}, ::Function, ::String, ::String, ::String, ::Bool) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:261
 [10] #build_object at ./none:0 [inlined]
 [11] build_object(::String, ::String, ::String, ::Bool, ::String, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:240
 [12] #static_julia#5(::Nothing, ::Bool, ::Bool, ::String, ::String, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::String, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::typeof(static_julia), ::String) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/static_julia.jl:161
 [13] #static_julia at ./none:0 [inlined]
 [14] #build_sysimg#29(::Bool, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::typeof(PackageCompiler.build_sysimg), ::String, ::String) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/api.jl:25
 [15] #build_sysimg at ./none:0 [inlined]
 [16] #compile_package#67(::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Function, ::Tuple{String,String}, ::Vararg{Tuple{String,String},N} where N) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:130
 [17] compile_package(::Tuple{String,String}, ::Vararg{Tuple{String,String},N} where N) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:116
 [18] #compile_package#64(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String, ::Vararg{String,N} where N) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:94
 [19] compile_package(::String, ::Vararg{String,N} where N) at /Users/solver/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:88
 [20] top-level scope at none:0

julia> 

Here's my versioninfo:

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.2.0)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions