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

Gelpia compilation errors #3

Closed
ggeorgakoudis opened this issue May 14, 2018 · 6 comments
Closed

Gelpia compilation errors #3

ggeorgakoudis opened this issue May 14, 2018 · 6 comments

Comments

@ggeorgakoudis
Copy link

Hello,

First of all, many thanks for the excellent paper and sharing the work through this repo.

I'm trying to build FPTuner in an Ubuntu 16.04. I get the following errors related to building Gelpia.

  1. "make requirements" fails: the url (http://lipforge.ens-lyon.fr/frs/download.php/162/crlibm-1.0beta4.tar.gz) to download CRLibM is broken

  2. I bypassed problem 1. by using the crlibm.tar.gz from the develop branch of Gelpia and have succesfully built requirements. However, compilation of Gelpia ("make") fails with an error related to Rust and the getopts package:

error[E0301]: cannot mutably borrow in a pattern guard
--> /home/ggeorgak/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/getopts-0.2.17/src/lib.rs:405:73
|
405 | } else if was_long || name_pos < names.len() || args.peek().map_or(true, |n| is_arg(&n)) {
| ^^^^ borrowed mutably in pattern guard

error: aborting due to previous error

error: Could not compile getopts.

@keram88
Copy link
Member

keram88 commented May 14, 2018

Thank you for trying our tool.
I think I fixed the issue by pinning the versions of Rust dependencies. Also, thank you for pointing out the missing CRLibM library in that branch.

Can you try a make clean and try building again?

Best,
Mark

@ggeorgakoudis
Copy link
Author

Thank you, Mark. Your fix works.

@zvonimir
Copy link
Member

zvonimir commented May 21, 2018

@keram88 Was this resolved? If so, then please close it.

@keram88
Copy link
Member

keram88 commented May 21, 2018

Yes. I was waiting for confirmation.

@keram88 keram88 closed this as completed May 21, 2018
@lam2mo
Copy link

lam2mo commented Jun 7, 2018

For anyone who is visiting this later, I encountered this issue on RHEL7 as well, and the fix noted above did not seem to be sufficient. However, adding some extra braces to the indicated Rust source file as described here does seem to have fixed the compilation problem.

@zvonimir
Copy link
Member

zvonimir commented Jun 8, 2018

@keram88 : could you please revisit this based on the above comment?
Thanks @lam2mo!

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

4 participants