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

FreeBSD precompilation fails #101

Closed
milankl opened this issue Oct 27, 2019 · 10 comments
Closed

FreeBSD precompilation fails #101

milankl opened this issue Oct 27, 2019 · 10 comments
Labels

Comments

@milankl
Copy link
Contributor

milankl commented Oct 27, 2019

I have a package, which fails the cirrus-ci tests on FreeBSD with Julia 1.0,1.2 as well as nightly due to its dependencies on NetCDF.jl, whereas Linux, osx, win pass (with Travis & appveyor).

 [1] error(::String) at ./error.jl:33
 [2] top-level scope at /.julia/packages/NetCDF/wnKH9/src/netcdf_c.jl:7
 [3] include at ./boot.jl:328 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1094
 [5] include at ./Base.jl:31 [inlined]
 [6] include(::String) at /.julia/packages/NetCDF/wnKH9/src/NetCDF.jl:3
 [7] top-level scope at /.julia/packages/NetCDF/wnKH9/src/NetCDF.jl:8
...
in expression starting at /.julia/packages/NetCDF/wnKH9/src/netcdf_c.jl:4
in expression starting at /.julia/packages/NetCDF/wnKH9/src/NetCDF.jl:8
@visr
Copy link
Member

visr commented Oct 27, 2019

Cool package!

So the error is coming from BinDeps, failing here.

We can try to get this to work by adding an appropriate entry for FreeBSD to build.jl perhaps? Although I'm not sure what this entry should be.

Is this only for CI, or do you intend to run on FreeBSD directly?

Slightly longer term we should strive to get away from BinDeps and build NetCDF Artifacts, using BinaryBuilder + the new Pkg artifacts system that is added in julia 1.3.

@milankl
Copy link
Contributor Author

milankl commented Oct 27, 2019

I don't use FreeBSD directly, but I thought you may want that NetCDF.jl runs on it.

@visr
Copy link
Member

visr commented Oct 27, 2019

Yeah indeed, thanks for creating the issue! I think if someone using FreeBSD could help out here that would be the quickest. Otherwise I'd have to debug using CI and no FreeBSD experience.

@milankl
Copy link
Contributor Author

milankl commented Oct 27, 2019

@giordano do you know whether this is a common error with FreeBSD & BinDeps?

@giordano
Copy link

What is common is that FreeBSD is not much tested, hence errors are not frequently caught 😅 But often errors in FreeBSD are indication of something truly wrong which by chance doesn't trigger an error on other platforms

@giordano
Copy link

Oh, right, sorry I didn't follow very well the thread (I was more thinking about BinaryProvider rather than BinDeps).

@visr Maybe it would be better to build NetCDF with BinaryBuilder? Have you ever tried that?

@visr
Copy link
Member

visr commented Oct 28, 2019

Nope I haven't tried yet, but I'd love to, once I get BB working on Windows.

Now that there is a HDF5Builder it should be easier.

@giordano
Copy link

Oh, it depends on HDF5? That's unfortunate, in Yggdrasil we have HDF5 only for few platforms (the most common ones): https://github.com/JuliaPackaging/Yggdrasil/blob/20a84ddd0a0128ee10a0797636544243e0aa9b8c/H/HDF5/build_tarballs.jl#L78-L84 😣

@milankl I think that for the time being you should give up testing your package for FreeBSD, there is currently no easy way to get all your dependencies on that platform.

@visr
Copy link
Member

visr commented Oct 28, 2019

Yep it depends on libhdf5, libcurl and zlib. Too bad a FreeBSD HDF5 build is not yet available. We can keep this issue open for visibility though.

@visr visr added the build label Dec 29, 2020
@visr
Copy link
Member

visr commented Jun 2, 2023

FreeBSD builds are now available in the latest NetCDF_jll build. If you can, please try them out. I'll close the issue, but feel free to re-open if it doesn't work.

Details in Alexander-Barth/NCDatasets.jl#116 (comment)

@visr visr closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants