The compilation for RISC-V with wamrc
wamrc --target=riscv64 \
--target-abi=lp64 \
--cpu=generic-rv64 \
--cpu-features='+i,+m,+a' \
--opt-level=1 \
--size-level=1 \
--bounds-checks=1 \
-o program.riscv64.wamr program.wasm
runs through. But during runtime I get:
[00:00:00:000 - 0]: Warning: loader mmap memory address is not in the first 2 Gigabytes of the process address space.
[00:00:00:000 - 0]: Warning: loader mmap memory address is not in the first 2 Gigabytes of the process address space.
[00:00:00:000 - 0]: Warning: loader mmap memory address is not in the first 2 Gigabytes of the process address space.
runtime load module failed: AOT module load failed: relocation truncated to fit R_RISCV_PCREL_LO12_I failed.
--opt-level=0 works though
The compilation for RISC-V with wamrc
runs through. But during runtime I get:
--opt-level=0works though