Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in SPEC2017 (omnetpp_r, gcc_r) #21

Open
kosterz96 opened this issue Apr 7, 2022 · 5 comments
Open

Errors in SPEC2017 (omnetpp_r, gcc_r) #21

kosterz96 opened this issue Apr 7, 2022 · 5 comments

Comments

@kosterz96
Copy link

kosterz96 commented Apr 7, 2022

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
Copy link

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
Copy link

nank22 commented Feb 22, 2023

Did anyone figure out how to resolve this issue?

@jasonyu1996
Copy link

Did anyone figure out how to resolve this issue?

Yes I can share a patch later

@Zhanglv0413
Copy link

--std=c++14 might help

@hanyizui
Copy link

--std=c++14 might help

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants