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

file not found for module montgomery #67

Closed
ghost opened this issue Jan 8, 2018 · 11 comments
Closed

file not found for module montgomery #67

ghost opened this issue Jan 8, 2018 · 11 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jan 8, 2018

This might be more user error than legitimate issue, but when trying to install aardwolf, I get this error:

` Compiling ring v0.11.0
Compiling r2d2-diesel v0.99.0
error[E0583]: file not found for module montgomery
--> /Users/ghost/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.11.0/src/arithmetic/arithmetic.rs:15:9
|
15 | pub mod montgomery;
| ^^^^^^^^^^
|
= help: name the file either arithmetic/montgomery.rs or arithmetic/montgomery/mod.rs inside the directory "/Users/ghost/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.11.0/src/arithmetic"

error: aborting due to previous error

error: Could not compile ring.
warning: build failed, waiting for other jobs to finish...
error: build failed
`
However, arithmetic/montgomery.rs exists.

It looks like this is a known issue with a fix coming, but I don't have a solid enough grasp on Rust to fully understand what the issue is, exactly, or if there's a workaround in the meantime.

@ghost ghost added the bug label Jan 8, 2018
@asonix
Copy link
Collaborator

asonix commented Jan 8, 2018

That's because the ring library doesn't use a proper directory structure, and it broke with versions of rust nightly newer that December 21st. Use an older version of rust and you should be okay. The Rocket developer is already aware and making a solution

@ghost
Copy link
Author

ghost commented Jan 8, 2018

thanks for the quick and simple explanation, @asonix!

@BanjoFox
Copy link
Collaborator

Wait... I thought we Pinned the rocket version?

@BanjoFox BanjoFox reopened this Jan 10, 2018
@BanjoFox
Copy link
Collaborator

In fact we did...
file: rust-toolchain

I am going to apply this update to the INSTALL.MD

@asonix
Copy link
Collaborator

asonix commented Jan 13, 2018

Rocket works on the latest nightly again

image

@BanjoFox
Copy link
Collaborator

Thanks @asonix - still wondering if it makes sense to pin a known-working nightly.

@KD0BPV
Copy link
Contributor

KD0BPV commented Jan 13, 2018 via email

@BanjoFox
Copy link
Collaborator

Actually it -really- isn't a mystery.
It's because we have specific instructions in our INSTALL.md that used to state:

$ rustup toolchain install nightly

Therefore anyone running through the INSTALL.md, which is very well written (props!), they will install whatever is nightly for them at the time. That is why I made a direct commit to make it

$ rustup toolchain install nightly-2017-12-18

@KD0BPV
Copy link
Contributor

KD0BPV commented Jan 14, 2018 via email

@BanjoFox
Copy link
Collaborator

BanjoFox commented Feb 4, 2018

So far I have been able to replicate this bug a few times.
Not sure what is going on, but when I -manually- set the nightly build (12-18-2017 I think?) in the README.md it seems to resolve the problems..

Not something to worry about now, but I will keep this in mind, and leave the issue open :)
This way people can reference it, and I will remember, in the event that people have problems.

@BanjoFox BanjoFox self-assigned this Mar 19, 2018
@BanjoFox
Copy link
Collaborator

BanjoFox commented Jul 5, 2018

Newer versions of Rust Nightly seem to be working appropriately.
Closing this issue.

@BanjoFox BanjoFox closed this as completed Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants