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

build fails on ubuntu #523

Closed
vks opened this issue Apr 25, 2017 · 10 comments
Closed

build fails on ubuntu #523

vks opened this issue Apr 25, 2017 · 10 comments
Assignees
Milestone

Comments

@vks
Copy link

vks commented Apr 25, 2017

I'm getting build failures with ring on travis:

thread '<unnamed>' panicked at 'execution failed', /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.7.5/build.rs:720
crypto/ec/ecp_nistz256.c: In function ‘GFp_nistz256_point_mul’:
crypto/ec/ecp_nistz.h:106:20: error: inlining failed in call to ‘booth_recode.part.0’: call is unlikely and code size would grow [-Werror=inline]

On a different a different system (Linux 4.4.0-59-generic #80~14.04.1-Ubuntu SMP Fri Jan 6 18:02:02 UTC 2017 x86_64 and gcc 4.8.4) I'm getting similar build failures, also in crypto/limbs/limbs.inl. On a current Fedora system everything works.

@vks
Copy link
Author

vks commented Apr 25, 2017

This only occurs when ring is used as a dependency and optimizations are enabled for debug builds, i.e.

[profile.dev]
opt-level = 2  # otherwise the tests run for too long

makes cargo test fail.

@briansmith
Copy link
Owner

Thanks! Probably we should make -Werror depend on whether .git exists; i.e. don't do -Werror when building from crates.io.

@vks
Copy link
Author

vks commented Apr 25, 2017

This would not work if you depend on ring via a git repository (local or remote). Maybe there is a way to detect whether ring is built as a dependency? I think that would be a better option, however for my issues it is indeed sufficient to fix it on crates.io.

@briansmith
Copy link
Owner

This would not work if you depend on ring via a git repository (local or remote).

That's OK. We don't really support that any way as nobody seems to need that supported.

@briansmith
Copy link
Owner

I took a stab at resolving this with 76a44de.

@briansmith briansmith added this to the 0.8.n milestone Apr 26, 2017
@vks
Copy link
Author

vks commented Apr 26, 2017

Thanks! I'll give it a try once the next version of ring is released.

@briansmith
Copy link
Owner

@vks ping. Did you try this out with the newer ring? Is it working now? Thanks.

@vks
Copy link
Author

vks commented Jun 24, 2017

Yes, I believe this is fixed, I'm not getting build files anymore. Thanks!

@vks vks closed this as completed Jun 24, 2017
@briansmith
Copy link
Owner

Thanks @vks!

@briansmith briansmith self-assigned this Jun 29, 2017
@king6cong
Copy link

king6cong commented Dec 14, 2017

This would not work if you depend on ring via a git repository (local or remote).
That's OK. We don't really support that any way as nobody seems to need that supported.

@briansmith

cargo build --all --release --target x86_64-apple-ios will result in error in the lasted crates.io version (0.12.1), and has been fixed in origin/master on git repo.

I use "ring:0.12.1" = { git = "https://github.com/briansmith/ring" } for the moment, so I think depend on ring via a git repository should be considered as needed.

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