Closed Heng-Zhou closed 5 days ago
Just saw the fix here: https://github.com/riscv-software-src/riscv-tests/compare/master...pratikkedar:riscv-tests:pratik-test
Can the unit tests team please apply the fix as soon as possible? Thanks a lot.
No. Messing with the dhrystone benchmark source code is not a good idea, even if the changes are seemingly benign. Better to alter the Makefile to suppress the errors. It looks like #587 chose that approach; I merged it, so I'll close this PR as resolved.
This problem stems from bad C/C++ coding style in dhrystone.c
and dhrystone_main.c
, not from missing of compiling flags. If there is any mess due to the fix, it is the mess of the dhrystone source codes, which are exactly what we should fix.
I know that the archaic style of the Dhrystone source code is the problem. But benchmark results are not valid if the source code is altered. Anyway, the problem has been worked around, so we should consider this issue resolved.
I encountered errors when running
make
command in "Building from repository" to build the riscv-tests repo:Similar errors can also be found at many other places of
dhrystone.c
anddhrystone_main.c
. Can you please help me fix this issue? Thank you.