ccelio / Speckle

A wrapper for the SPEC CPU2006 benchmark suite.
85 stars 53 forks source link

Errors in SPEC2017 (omnetpp_r, gcc_r) #21

Open kosterz96 opened 2 years ago

kosterz96 commented 2 years ago

Hello I am trying to run SPEC2017 on FPGA with Debian Linux. FPGA is built using this repo.

However, when I try running omnetpp_r I get the following error:

Running: ./omnetpp_r_base.riscv_test_input-64 -c General -r 0 OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim Ltd. Version: 4.0, build: 090310-10709, edition: Academic Public License -- NOT FOR COMMERCIAL USE See the license for distribution terms and warranty disclaimer

<!> Error during startup: Register_Function() or cMathFunction: attempt to register function "SPEC_HYPOT" with wrong number of arguments 2, should be 3.

End.

The runscript (run.sh):

#!/bin/bash
#This script was generated by Speckle gen_binaries.sh
echo 'Running: ./omnetpp_r_base.riscv_test_input-64 -c General -r 0'
./omnetpp_r_base.riscv_test_input-64 -c General -r 0

Moreover I get the following error when I try to run gcc_r:

t1.c:2:5: warning: conflicting types for built-in function 'printf'

The runscript:

#!/bin/bash
#This script was generated by Speckle gen_binaries.sh
echo 'Running: ./cpugcc_r_base.riscv_test_input-64 t1.c -O3 -finline-limit=50000 -o t1.opts-O3_-finline-limit_50000.s'
./cpugcc_r_base.riscv_test_input-64 t1.c -O3 -finline-limit=50000 -o t1.opts-O3_-finline-limit_50000.s

The rest of intrate benchmarks work just fine. Do you have any ideas on how to fix those errors?

jasonyu1996 commented 1 year ago

I got the same error in omnetpp_s. I believe it's because both hypot() in standard library and cMathFunction are overloaded and the compiler does not know which to use.

nank22 commented 1 year ago

Did anyone figure out how to resolve this issue?

jasonyu1996 commented 1 year ago

Did anyone figure out how to resolve this issue?

Yes I can share a patch later

Zhanglv0413 commented 1 year ago

--std=c++14 might help

hanyizui commented 1 year ago

--std=c++14 might help

i tried to add a prameter to 520.omnetpp_r in cfg file and it worked