UzL-ITS / MAMBO-V

MAMBO-V: Dynamic Side-Channel Leakage Analysis on RISC-V
Apache License 2.0
9 stars 1 forks source link

Unable to Reproduce Build Process; Missing Dependencies #2

Open Rehfuchs opened 1 month ago

Rehfuchs commented 1 month ago

The build process, as described, fails due to a missing libelf.h file. This issue was encountered when testing within Docker using Ubuntu 24.04 in combination with the RISC-V GNU Compiler Toolchain as well as with Dockcross, instead of compiling the toolchain manually.

Building natively on the PolarFire SoC FPGA Icicle Kit and in QEMU (both running Ubuntu 24.04) succeeds after installing libelf-dev and adding -lzstd to LIBS= in the Makefile. However, the resulting binary fails at runtime with the error: "Unhandled auxv entry type: 27."

Could you provide further information on the recommended build process? Beste Grüße!

mastercaution commented 1 week ago

Hi, so I tried to build MAMBO-V natively running a RISC-V Debian image, but it didn't work out (I get strange linker errors from elfutils).

Originally, we fully cross-compiled MAMBO-V and all its dependencies, as there was no Debian or Ubuntu image back then :sweat_smile:. For libelf we used the elfutils implementation at version 0.183. The GNU RISC-V Toolchain was something like version 2022.02.11.

I'm very busy right now, but I'll try to revive and perhaps modernize the old build process.