mapbox / Hecate

Fast Geospatial Feature Storage API
MIT License
252 stars 36 forks source link

Compilation error (with rust & cargo nightly) #174

Closed uswoods closed 4 years ago

uswoods commented 4 years ago
error[E0432]: unresolved import `std::boxed::FnBox`
 --> /build/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.1/src/fairing/ad_hoc.rs:2:5
  |
2 | use std::boxed::FnBox;
  |     ^^^^^^^^^^^^^^^^^ no `FnBox` in `boxed`

error: aborting due to previous error

Seems similar to https://github.com/SergioBenitez/Rocket/issues/1042 May you please update to Rocket 0.4.2?

cc/ @ingalls

ingalls commented 4 years ago

@uswoods Can you paste the output of

rustc --version
uswoods commented 4 years ago

rustc 1.38.0-nightly (4b65a86eb 2019-07-15)

ingalls commented 4 years ago

We only test with the version of rust referenced in the build section of the README

https://github.com/mapbox/Hecate#build-environment

Can you follow the instructions there and let me know if you get it building? The eventual goal is to get off nightly, but at the moment this would mean moving off rocket which would be a lot of work!

uswoods commented 4 years ago

@ingalls I'm very sorry, but I won't manually put binaries into my filesystem.

And I really don't understand how we could get used to behaviour like curl $any_url -sSf | sh

ingalls commented 4 years ago

@uswoods if you have rustup already installed you can skip that step.

uswoods commented 4 years ago

Patching Cargo.tml from rocket 0.4.1 to 0.4.2 BTW fixes the compilation error.

I've got quite a dumb question: Where is the hecate binary? ./target/release/ contains

the build folder contains subfolders from arrayvec to valico, but no binary.

@ingalls Do you prefer to get pinged or not?

ingalls commented 4 years ago

@uswoods once I'm pinged once in a thread I get pinged every time. So not worries there. I get so many notifications if I don't get tagged on a thread I won't ever see it.

@uswoods The hecate binary can be found in

target/release/hecate

You can safety copy this binary once built to another similar architecture system. It's built statically with the exception of a few core GLIB deps.

uswoods commented 4 years ago

If postgres is not running it is crashing, right?

ERROR: Unable to connect to hecate@localhost:5432/hecate
ERROR: IO error
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:374:21
ingalls commented 4 years ago

Yes, postgres is a required dependency of hecate, it must be installed and configured for hecate to be able to connect to it.

uswoods commented 4 years ago

Thanks a lot. Before trying out more things I'll have to rebuild my main & only computer (put more memory in)!

ingalls commented 4 years ago

Cool, feel free to open a new ticket if you have any questions.