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

Build failed in travis #492

Closed
unkcpz opened this issue Nov 14, 2019 · 2 comments
Closed

Build failed in travis #492

unkcpz opened this issue Nov 14, 2019 · 2 comments

Comments

@unkcpz
Copy link

unkcpz commented Nov 14, 2019

I can successfully build the package locally. But it failed in the travis.

58.57s$ julia -e 'using Pkg; pkg"add BinaryProvider"; pkg"add BinaryBuilder#master"; Pkg.build()'
20.30s$ julia build_tarballs.jl
ERROR: LoadError: UndefVarError: BinaryPlatforms not defined
Stacktrace:
 [1] include at ./boot.jl:326 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include(::Module, ::String) at ./sysimg.jl:29
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:328 [inlined]
 [6] eval(::Expr) at ./client.jl:404
 [7] top-level scope at ./none:3
in expression starting at /home/travis/.julia/packages/BinaryBuilder/XV2EU/src/BinaryBuilder.jl:9
ERROR: LoadError: Failed to precompile BinaryBuilder [12aac903-9f7c-5d81-afc2-d9565ea332ae] to /home/travis/.julia/compiled/v1.1/BinaryBuilder/WHzgM.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] exec_options(::Base.JLOptions) at ./client.jl:267
 [10] _start() at ./client.jl:436
in expression starting at /home/travis/build/unkcpz/SpglibBuilder/build_tarballs.jl:3
The command "julia build_tarballs.jl" exited with 1.
@giordano
Copy link
Member

giordano commented Nov 14, 2019

BinaryBuilder recently got a giant overhaul, as a result now it requires Julia 1.3rc4 and it cannot understand old-style builders (even though the differences are very small).

You have a couple of alternatives:

  1. In your Travis script replace
    pkg"add BinaryBuilder#master"
    
    with
    pkg"add BinaryBuilder#af0b4853b2b95b1c411f06f834dcbf461bb50264"
    
  2. submit the builder to https://github.com/JuliaPackaging/Yggdrasil/ and the tarballs will be built for you.

I warmly recommend the second way, as this is going to become the way to get binary dependencies in Julia very soon

@giordano
Copy link
Member

I'm closing this ticket. @unkcpz contributed the builder at JuliaPackaging/Yggdrasil#200, I've updated it for the latest BinaryBuilder and tests are passing

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