JuliaLang / PackageCompiler.jl

Compile your Julia Package
https://julialang.github.io/PackageCompiler.jl/dev/
MIT License
1.43k stars 194 forks source link

PackageCompiler fails tests #240

Closed rprechelt closed 4 years ago

rprechelt commented 5 years ago

I just performed a fresh Julia install and was attempting to use PackageCompiler to compile_incremental some packages. When that failed, I attempted to run PackageCompiler's tests.

When I run pkg> test PackageCompiler I get the following errors,

FixedPointNumbers ColorTypes: Error During Test at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/test/runtests.jl:12
  Got exception outside of a @test
  MethodError: no method matching dirname(::Nothing)
  Closest candidates are:
    dirname(!Matched::AbstractString) at path.jl:158
  Stacktrace:
   [1] #compile_system_image#39(::Bool, ::Function, ::String, ::String) at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/src/system_image.jl:14
   [2] #compile_system_image at ./none:0 [inlined]
   [3] get_backup!(::Bool, ::Nothing) at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/src/system_image.jl:63
   [4] #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 /home/rprechelt/.julia/packages/PackageCompiler/oT98U/src/api.jl:24
   [5] #build_sysimg at ./none:0 [inlined]
   [6] #compile_package#67(::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Function, ::Tuple{String,String}, ::Vararg{Tuple{String,String},N} where N) at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:130
   [7] (::getfield(PackageCompiler, Symbol("#kw##compile_package")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(compile_package), ::Tuple{String,String}, ::Vararg{Tuple{String,String},N} where N) at ./none:0
   [8] #compile_package#64(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:verbose,),Tuple{Bool}}}, ::Function, ::String, ::Vararg{String,N} where N) at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/src/PackageCompiler.jl:94
   [9] (::getfield(PackageCompiler, Symbol("#kw##compile_package")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(compile_package), ::String, ::Vararg{String,N} where N) at ./none:0
   [10] top-level scope at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/test/runtests.jl:13
   [11] top-level scope at /opt/julia/build/usr/share/julia/stdlib/v1.1/Test/src/Test.jl:1083
   [12] top-level scope at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/test/runtests.jl:13
   [13] top-level scope at /opt/julia/build/usr/share/julia/stdlib/v1.1/Test/src/Test.jl:1083
   [14] top-level scope at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/test/runtests.jl:4
   [15] include at ./boot.jl:326 [inlined]
   [16] include_relative(::Module, ::String) at ./loading.jl:1038
   [17] include(::Module, ::String) at ./sysimg.jl:29
   [18] include(::String) at ./client.jl:403
   [19] top-level scope at none:0
   [20] eval(::Module, ::Any) at ./boot.jl:328
   [21] exec_options(::Base.JLOptions) at ./client.jl:243
   [22] _start() at ./client.jl:436
Test Summary:                  | Error  Total
compilage_package              |     2      2
  FixedPointNumbers            |     1      1
  FixedPointNumbers ColorTypes |     1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 2 errored, 0 broken.
in expression starting at /home/rprechelt/.julia/packages/PackageCompiler/oT98U/test/runtests.jl:3
ERROR: Package PackageCompiler errored during testing

The failures appear to be reported from FixedPointNumbers. However, when I run pkg> test FixedPointNumbers, all of the tests pass successfully.

My Julia version info is below:

Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

Any help would be appreciated.

alirezamecheng commented 5 years ago

same here.

scottstanie commented 5 years ago

Same on Mac

Test Summary:                  | Error  Total
compilage_package              |     2      2
  FixedPointNumbers            |     1      1
  FixedPointNumbers ColorTypes |     1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 2 errored, 0 broken.
in expression starting at /Users/scott/.julia/packages/PackageCompiler/CJQcs/test/runtests.jl:3
ERROR: Package PackageCompiler errored during testing

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
arnavs commented 5 years ago

cc @SimonDanisch @asinghvi17

It looked like the previous release (v0.6.3) passed CI.

KristofferC commented 4 years ago

Should pass tests now.