riscv-torture icon indicating copy to clipboard operation
riscv-torture copied to clipboard

Error: ASM file could not be compiled or generated.

Open esolera opened this issue 7 years ago • 3 comments

I use this comand "make cgentest" and I have this error : output/test.S:5:10: fatal error: riscv_test.h: No such file or directory #include "riscv_test.h" ^~~~~~~~~~~~~~ compilation terminated. Error: ASM file could not be compiled or generated. [success] Total time: 2 s, completed Aug 7, 2017 8:25:46 AM

esolera avatar Aug 07 '17 14:08 esolera

now i have this other error :

Physical mode Assembler messages: Fatal error: -march=RVIMAFDXhwacha: ISA string must begin with rv32 or rv64 Error: ASM file could not be compiled or generated.

esolera avatar Aug 07 '17 15:08 esolera

Hi Esolera,

If you go into the following files and add in your version of the riscv it should work. "rocket-chip/torture/testrun/src/main/scala/main.scla" and "rocket-chip/torture/output/Makefile" change -march=RVIMAFXhwacha to for example -march=rv64imafdc ( which is the default config for RV64)

Please let me know if you were able to run the torture test as I'm having problems from just after this part - https://github.com/ucb-bar/riscv-torture/issues/13 Kind Regards, Ciaran

CLappin avatar Oct 13 '17 14:10 CLappin

How do you fix this? I run into the same error, thanks in advance

output/test.S:5:10: fatal error: riscv_test.h: No such file or directory #include "riscv_test.h" ^~~~~~~~~~~~~~

panda1628 avatar Aug 05 '21 22:08 panda1628