microsoft / SEAL-Embedded

A Microsoft-SEAL-compatible implementation of homomorphic encryption targeting Azure Sphere and other embedded devices.
MIT License
48 stars 15 forks source link

Problem with building the library for the RISC-V target #1

Open zaazad opened 3 years ago

zaazad commented 3 years ago

Hi, when I was trying to build seal embedded library for riscv target, using riscv elf toolchain, which doesn't support shared libraries such as libgcc_s.so, I got the error complaining that -lgcc_s does not exist. It seems that in the device/CMakeLists.txt the line target_link_libraries(seal_embedded_bench PRIVATE m gcc_s c seal_embedded) is trying to unconditionally link with -lgcc_s. It would be good to modify the cmake files to first check if the library exists. Thank you!

WeiDaiWD commented 3 years ago

Good point! What's the error message that you have received? I wonder whether the linker error is clear enough.