cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

Error in syscall.c while running hello_world test

Open KinzaQamar opened this issue 1 year ago • 5 comments

Hi,

I am getting an error inside printf function of verif/tests/custom/common/syscall.c as

/home/kinzah/Documents/cva6/verif/sim/../tests/custom/common/syscalls.c:405:(.text+0xf64): undefined reference to `__riscv_flush_icache' collect2: error: ld returned 1 exit status

The command ran was :

python3 cva6.py --target cv32a60x --iss=$DV_SIMULATORS --iss_yaml=cva6.yaml \
--c_tests ../tests/custom/hello_world/hello_world.c \
--linker=../tests/custom/common/test.ld \
--gcc_opts="-static -mcmodel=medany -fvisibility=hidden -nostdlib \
-nostartfiles -g ../tests/custom/common/syscalls.c \
../tests/custom/common/crt.S -lgcc \
-I../tests/custom/env -I../tests/custom/common"

KinzaQamar avatar Feb 24 '24 13:02 KinzaQamar

You command is smoke-test's one, that is great. Coudl you provide the Spike and compiler versions you use ? They should be aligned on README.md description

@zchamski @valentinThomazic

JeanRochCoulon avatar Feb 25 '24 21:02 JeanRochCoulon

GCC version: 13.2 Spike was installed through available scripts.

KinzaQamar avatar Feb 27 '24 21:02 KinzaQamar

Only @zchamski can help you ;-)

JeanRochCoulon avatar Feb 27 '24 23:02 JeanRochCoulon

This works on our side. Maybe an idea: if you have updated the core-v-verif submodule, you must remove Spike to rebuild it.

JeanRochCoulon avatar Mar 05 '24 21:03 JeanRochCoulon

Re-installing from scratch should work.

JeanRochCoulon avatar Mar 05 '24 21:03 JeanRochCoulon