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 failed on koji i686 #203

Closed
ghost opened this issue Jun 21, 2021 · 4 comments
Closed

Compilation failed on koji i686 #203

ghost opened this issue Jun 21, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 21, 2021

https://kojipkgs.fedoraproject.org//work/tasks/5288/70575288/build.log
The compilation passed on the other architectures.

error[E0080]: evaluation of constant value failed
--> src/macros.rs:21:23
|
21 | const _: [(); 0 - !{
| _____^
22 | | const ASSERT: bool = $x;
23 | | ASSERT
24 | | } as usize] = [];
| |
^ attempt to compute 0_usize - 1_usize, which would overflow
|
::: src/affine2.rs:501:5
|
501 | const_assert_eq!(8, core::mem::align_of::super::DAffine2());
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

@bitshifter
Copy link
Owner

What version of glam are you building? The code looks old, this issue has been fixed on git master but the fix isn't in a crates.io release yet. It will be in 0.17 when that happens.

@bitshifter
Copy link
Owner

In any case, I'll close this since judging by the error message this is fixed in recent versions.

@ghost
Copy link
Author

ghost commented Jun 21, 2021

I was using the latest version on crate.io. i just have to deactivate i686 build until the fix is propagate since fedora don't like pulling from git.

@bitshifter
Copy link
Owner

@remilauzier should be fixed in release 0.17.x

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

1 participant