daniestevez / galileo-osnma

Galileo OSNMA (Open Service Navigation Message Authentication)
Apache License 2.0
54 stars 9 forks source link

Compiling issue #22

Closed N6RFM closed 1 year ago

N6RFM commented 1 year ago

Hi Dani,

Appreciate the update but I've hit a roadblock. Any suggestions? Thanks. Bob N6RFM

bob@bob:~/galileo-osnma/osnma-longan-nano$ cargo clean bob@bob:~/galileo-osnma/osnma-longan-nano$ cargo build --release Updating crates.io index error: failed to select a version for the requirement nb = "^1.0" candidate versions found which didn't match: 1.0.0, 0.1.3, 0.1.2, ... location searched: crates.io index required by package osnma-longan-nano v0.1.0 (/home/bob/galileo-osnma/osnma-longan-nano) bob@bob:~/galileo-osnma/osnma-longan-nano$

daniestevez commented 1 year ago

Hi Bob, I'm confused about your error, mainly because it's working for me (I tested on a new machine) and also works in CI, and because the error is complaining that it cannot find a version of nb matching 1.0, but it says that it has found version 1.0.0 (which should match!).

Can you confirm that you're running this on a clean checkout (in particular that there are no local modifications in Cargo.lock) and also paste the output of rustup show -v?

N6RFM commented 1 year ago

Hi Dani, Solved. Had to update and recompile the rust tool chain from 1.58. Now working using rustc 1.72.1. Thanks hint on version!! Bob N6RFM

daniestevez commented 1 year ago

Great to hear. The minimum supported Rust version for galileo-osnma is now 1.65, because updates in some of the dependencies required this version. Now I think I understand your error message: it probably wasn't able to find a suitable version of nb because version 1.0.0 would require a Rust version greater than 1.58.

Closing this as solved.