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

issues with calling build_tarballs.jl (no constructors have been defined for Platform) #974

Closed
Alexander-Barth opened this issue Dec 8, 2020 · 3 comments

Comments

@Alexander-Barth
Copy link

Alexander-Barth commented Dec 8, 2020

I am try to run the following on Julia v1.5.1 with BinaryBuilder v0.2.6 and Linux (x86_64):

cd ~/src/Yggdrasil/H/HDF5 
julia build_tarballs.jl --help

As shown here. However I get the following error:

ERROR: LoadError: MethodError: no constructors have been defined for Platform
Stacktrace:
 [1] top-level scope at /home/abarth/src/Yggdrasil/H/HDF5/build_tarballs.jl:93
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include(::Module, ::String) at ./Base.jl:368
 [4] exec_options(::Base.JLOptions) at ./client.jl:296
 [5] _start() at ./client.jl:506
in expression starting at /home/abarth/src/Yggdrasil/H/HDF5/build_tarballs.jl:93

Any ideas how to test the build of a specific platform would be greatly appreciated.

@Alexander-Barth
Copy link
Author

OK, I think I need to use BinaryBuilder#master and Julia 1.6-dev to compile HDF5.

@giordano
Copy link
Member

giordano commented Dec 8, 2020

Yes, Yggdrasil uses BinaryBuilder#master (and BinaryBuilderBase#master), which requires a reasonably recent version of Julia from master because we need some features available only there.

Answering your original question, you could locally modify to have platform = Platform[] and then run the script with

julia build_tarballs.jl --verbose --debug <triplet>

@Alexander-Barth
Copy link
Author

Good to know. Thanks a lot @giordano !

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