scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

Add RISC-V support

Open aarroyoc opened this issue 3 years ago • 7 comments

Recently I bought a RISC-V SBC (64 bits) and started to play with it on a Linux system. Scryer Prolog isn't compatible right now with this architecture.

Right now, I've found just one problem, but I'm going to keep a list in case more changes are needed.

Changes to be compatible with RISC-V:

aarroyoc avatar Jun 27 '22 21:06 aarroyoc

But, just to make this clear: This issue is not specific to Scryer at all. So changing the Scryer code will not help with this issue. Right?

UWN avatar Jun 28 '22 13:06 UWN

No, not really. Unless Scryer wants to change ring for another dependency, but I'm not advocating for that. This issue is just to track it.

aarroyoc avatar Jun 28 '22 13:06 aarroyoc

With ring 0.17.0, RISC-V support has been added. However, rustls still references the 0.16 version.

aarroyoc avatar Oct 03 '23 20:10 aarroyoc

@aarroyoc: I have filed https://github.com/rustls/rustls/issues/1522 in the hope that rustls will consider upgrading to this new version of ring!

triska avatar Oct 05 '23 18:10 triska

A PR for this upgrade is already filed with rustls: https://github.com/rustls/rustls/pull/1508

RISC-V support will work as soon as this PR is merged.

triska avatar Oct 05 '23 18:10 triska

The PR is merged, this issue is closable.

razetime avatar Nov 06 '23 14:11 razetime

No, not yet. We still bring an older rustls in warp. But I suppose if we bump ring in Cargo.toml (and we compile without the HTTP feature) we could run Scryer Prolog on RISC-V. I'm gonna try it

aarroyoc avatar Nov 06 '23 17:11 aarroyoc