-
Notifications
You must be signed in to change notification settings - Fork 787
Closed
Description
Steps to reproduce. I did this on latested Debian, use a docker container if you don't have it.
apt update
apt install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu
export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/riscv64-linux-gnu-gcc
cargo build --target riscv64gc-unknown-linux-gnu
cargo build --target riscv64gc-unknown-linux-gnu --tests
I'm able to fix some simple compilation errors in the beginning by adding RISCV to the architectures:
diff --git a/include/ring-core/base.h b/include/ring-core/base.h
index f1a027d1a..92c9a4372 100644
--- a/include/ring-core/base.h
+++ b/include/ring-core/base.h
@@ -91,6 +91,10 @@
#define OPENSSL_MIPS64
#elif defined(__wasm__)
#define OPENSSL_32_BIT
+#elif __riscv && __riscv_xlen == 64
+#define OPENSSL_64_BIT
+#elif __riscv && __riscv_xlen == 32
+#define OPENSSL_32_BIT
#else
// Note BoringSSL only supports standard 32-bit and 64-bit two's-complement,
// little-endian architectures. Functions will not produce the correct answer
This is all I've gotten to so far.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels