10XGenomics / vartrix

Single-Cell Genotyping Tool
MIT License
199 stars 26 forks source link

installation issue #125

Open nbahlis opened 2 months ago

nbahlis commented 2 months ago

I am getting the following error below when compiling vartrix, any idea how to resolve it?

1155 fn decode(d: &mut D) -> Result<Cow<'static, T>, D::Error> { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the parameter type T must be valid for the static lifetime...
...so that the type T will meet its required lifetime bounds...

note: ...that is required by this bound --> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/borrow.rs:180:30 help: consider adding an explicit lifetime bound | 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>

swb2611 commented 2 months ago
Same issue here. error[E0310]: the parameter type T may not live long enough --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5 1155 fn decode(d: &mut D) -> Result<Cow<'static, T>, D::Error> { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the parameter type T must be valid for the static lifetime...
...so that the type T will meet its required lifetime bounds...

note: ...that is required by this bound --> /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/borrow.rs:180:30 help: consider adding an explicit lifetime bound | 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T> error: could not compile rustc-serialize (lib) due to 1 previous error

ellenketter commented 2 months ago

I was able to get around this issue by the solution here

swb2611 commented 2 months ago

Thanks!