algbio / ggcat

Compacted and colored de Bruijn graph construction and querying
MIT License
72 stars 10 forks source link

Compilation failed with error: `use of unstable library feature 'int_log'` #19

Closed rlorigro closed 1 year ago

rlorigro commented 1 year ago

Hi, I am attempting to make a Docker image for GGCAT, and I get this result when building:

#0 91.42    Compiling instrumenter v0.1.1 (/software/ggcat/libs-crates/instrumenter-rs)
#0 92.07    Compiling parallel-processor v0.1.6 (/software/ggcat/libs-crates/parallel-processor-rs)
#0 92.70 error[E0658]: use of unstable library feature 'int_log'
#0 92.70  --> libs-crates/parallel-processor-rs/src/utils/mod.rs:9:36
#0 92.70   |
#0 92.70 9 |     ((size.octets as u64) * 2 - 1).ilog2() as u8
#0 92.70   |                                    ^^^^^
#0 92.70   |
#0 92.70   = note: see issue #70887 <https://github.com/rust-lang/rust/issues/70887> for more information
#0 92.70 
#0 92.72 For more information about this error, try `rustc --explain E0658`.
#0 92.73 error: could not compile `parallel-processor` due to previous error
#0 92.73 warning: build failed, waiting for other jobs to finish...
#0 99.79 error: failed to compile `ggcat_cmdline v0.1.0 (/software/ggcat/crates/cmdline)`, intermediate artifacts can be found at `/software/ggcat/target`
------
Dockerfile:34
--------------------
  32 |     RUN git clone https://github.com/algbio/ggcat --recursive && cd ggcat && git checkout a256dd5
  33 |     WORKDIR /software/ggcat/
  34 | >>> RUN cargo install --path crates/cmdline/ --locked
  35 |     ENV PATH=$PATH:$HOME/.cargo/bin
  36 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cargo install --path crates/cmdline/ --locke

Any ideas what's going on? This image is built on top of the official Ubuntu 22.04 image with minimal other additions to the environment.

Thanks

rlorigro commented 1 year ago

Just kidding, I fixed it by installing rustup