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

Clean clone of hdf5-rust does not build out of the box #271

Open
CiaranWelsh opened this issue Feb 26, 2024 · 1 comment
Open

Clean clone of hdf5-rust does not build out of the box #271

CiaranWelsh opened this issue Feb 26, 2024 · 1 comment

Comments

@CiaranWelsh
Copy link

Hey there,

Just to let you know that this repository currently does not build from a clean checkout.

(base) ciaran@Ciarans-MacBook-Pro luna-for-prune % git clone https://github.com/aldanor/hdf5-rust.git --recurse-submodules
Cloning into 'hdf5-rust'...
remote: Enumerating objects: 8801, done.
remote: Counting objects: 100% (1606/1606), done.
remote: Compressing objects: 100% (424/424), done.
remote: Total 8801 (delta 1249), reused 1355 (delta 1133), pack-reused 7195
Receiving objects: 100% (8801/8801), 1.82 MiB | 1.43 MiB/s, done.
Resolving deltas: 100% (6023/6023), done.
Submodule 'hdf5' (https://github.com/HDFGroup/hdf5.git) registered for path 'hdf5-src/ext/hdf5'
Cloning into '/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5-src/ext/hdf5'...
remote: Enumerating objects: 506188, done.
remote: Counting objects: 100% (6108/6108), done.
remote: Compressing objects: 100% (1625/1625), done.
remote: Total 506188 (delta 5900), reused 4603 (delta 4482), pack-reused 500080
Receiving objects: 100% (506188/506188), 388.01 MiB | 948.00 KiB/s, done.
Resolving deltas: 100% (436280/436280), done.
Submodule path 'hdf5-src/ext/hdf5': checked out 'db30c2da68ece4a155e9e50c28ec16d6057509b2'

(base) ciaran@Ciarans-MacBook-Pro hdf5-rust % cargo build --release
Updating crates.io index
Compiling autocfg v1.1.0
Compiling memchr v2.7.1
Compiling proc-macro2 v1.0.78
Compiling version_check v0.9.4
Compiling regex-syntax v0.8.2
Compiling cfg-if v1.0.0
Compiling unicode-ident v1.0.12
Compiling libc v0.2.153
Compiling parking_lot_core v0.9.9
Compiling rawpointer v0.2.1
Compiling hdf5-types v0.8.1 (/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5-types)
Compiling libloading v0.8.1
Compiling paste v1.0.14
Compiling smallvec v1.13.1
Compiling scopeguard v1.2.0
Compiling ascii v1.1.0
Compiling hdf5 v0.8.1 (/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5)
Compiling proc-macro-error-attr v1.0.4
Compiling aho-corasick v1.1.2
Compiling num-traits v0.2.18
Compiling proc-macro-error v1.0.4
Compiling matrixmultiply v0.3.8
Compiling lock_api v0.4.11
Compiling bitflags v2.4.2
Compiling lazy_static v1.4.0
Compiling regex-automata v0.4.5
Compiling num-integer v0.1.46
Compiling num-complex v0.4.5
Compiling quote v1.0.35
Compiling syn v2.0.51
Compiling regex v1.10.3
Compiling parking_lot v0.12.1
Compiling ndarray v0.15.6
Compiling hdf5-sys v0.8.1 (/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5-sys)
Compiling hdf5-derive v0.8.1 (/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5-derive)
error: failed to run custom build command for hdf5-sys v0.8.1 (/Users/Ciaran/luna-for-prune/hdf5-rust/hdf5-sys)

Caused by:
process didn't exit successfully: /Users/Ciaran/luna-for-prune/hdf5-rust/target/release/build/hdf5-sys-98b7849df7e55dfb/build-script-build (exit status: 101)
--- stdout
Attempting to find HDF5 via Homebrew (any version)...

--- stderr
thread 'main' panicked at hdf5-sys/build.rs:595:13:
Unable to locate HDF5 root directory and/or headers.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
(base) ciaran@Ciarans-MacBook-Pro hdf5-rust %

Likely you need to update the path pointed to by your submodule

@mulimoen
Copy link
Collaborator

The default build assumes hdf5 (the C library) is already installed on the machine. If you wish to build using the included source you will need git submodule update --init followed by cargo build --workspace --exclude hdf5-derive --features static

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