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

Compilation error (with rust & cargo nightly) #174

Closed
uswoods opened this issue Jul 16, 2019 · 11 comments
Closed

Compilation error (with rust & cargo nightly) #174

uswoods opened this issue Jul 16, 2019 · 11 comments

Comments

@uswoods
Copy link

uswoods commented Jul 16, 2019

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 rwf2/Rocket#1042
May you please update to Rocket 0.4.2?

cc/ @ingalls

@ingalls
Copy link
Contributor

ingalls commented Jul 16, 2019

@uswoods Can you paste the output of

rustc --version

@uswoods
Copy link
Author

uswoods commented Jul 16, 2019

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

@ingalls
Copy link
Contributor

ingalls commented Jul 16, 2019

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
Copy link
Author

uswoods commented Jul 16, 2019

@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
Copy link
Contributor

ingalls commented Jul 16, 2019

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

@uswoods
Copy link
Author

uswoods commented Jul 16, 2019

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

  • build
  • deps
  • examples
  • incremental
  • native

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

@ingalls Do you prefer to get pinged or not?

@ingalls
Copy link
Contributor

ingalls commented Jul 16, 2019

@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
Copy link
Author

uswoods commented Jul 16, 2019

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
Copy link
Contributor

ingalls commented Jul 16, 2019

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

@uswoods
Copy link
Author

uswoods commented Jul 16, 2019

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

@ingalls
Copy link
Contributor

ingalls commented Jul 16, 2019

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

@ingalls ingalls closed this as completed Jul 16, 2019
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