-
Notifications
You must be signed in to change notification settings - Fork 123
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 32-bit systems #1509
Comments
Scryer needs 64 bits for its representation of WAM cells, see for example: #908 (comment) |
If the representation needs to be 64 bits, is there a reason it can't use |
If that makes it possible to use Scryer Prolog on 32-bit systems, and at the same time has no significant performance downsides on 64-bit systems, then I think this would be an awesome solution! |
there would be no effect, probably, because |
Scryer's memory management needs 64 bits to represent a WAM cell, so it needs |
Right, so switching usize to u64 would incur no penalty to existing 64bit and have the added benefit of supporting 32bit |
@rujialiu has impressively resolved this via #1972, could you please try it, and if possible re-enable the 32-bit target (void-linux/void-packages#37478) and close this issue if this now works for you? Thank you a lot! |
I can confirm this has been fixed in the latest release due to the incredible efforts of @rujialiu; build logs in this PR: void-linux/void-packages#45861. Also, since this project no longer depends on gmp, we were able to enable crossbuilds. Closing now, thank you again! |
While attempting to build scryer in CI, the build for i686 failed. Here's the error I encountered:
This brought me to the following line of code: https://github.com/mthom/scryer-prolog/blob/master/src/atom_table.rs#L22. This prohibits building on 32-bit systems due to the smaller usize. Is this intentional because there are parts of scryer that don't work on 32-bit systems?
The text was updated successfully, but these errors were encountered: