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

Failed: Chipyard-Standalone Testing #51

Open
furoge opened this issue Aug 4, 2023 · 1 comment
Open

Failed: Chipyard-Standalone Testing #51

furoge opened this issue Aug 4, 2023 · 1 comment

Comments

@furoge
Copy link

furoge commented Aug 4, 2023

Hi,

I follow the steps of

  • Installing Espresso
  • Installing Minimal-Standalone

and I'm able to run Minimal-Standalone Testing so above steps seems fine

  • Installing with Chipyard and do:
    make -C generators/constellation/src/main/resources/csrc/netrace netrace.o CFLAGS="-fPIC -O3"

In chipyard/
I do source ./env.sh

And then in chipyard/sims/verilator
I do
❱ make SUB_PROJECT=constellation BINARY=none CONFIG=TestConfig00 run-binary-debug

and get:
Running with RISCV=/home/tom/basement/hw/sbt_play/dpdnc/chipyard/.conda-env/riscv-tools /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:123: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:118: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:131: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:123: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:166: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:131: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:203: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:166: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:225: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:203: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:264: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:225: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:282: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:264: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:293: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:282: warning: ignoring old recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:297: warning: overriding recipe for target '&' /home/tom/basement/hw/sbt_play/dpdnc/chipyard/common.mk:293: warning: ignoring old recipe for target '&' make VM_PARALLEL_BUILDS=1 -C /home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/constellation.test.TestHarness.TestConfig00.debug -f VTestDriver.mk make[1]: Entering directory '/home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/constellation.test.TestHarness.TestConfig00.debug' ccache g++ -Os -I. -MMD -I/usr/local/share/verilator/include -I/usr/local/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -O3 -std=c++17 -I/home/tom/basement/hw/sbt_play/dpdnc/chipyard/.conda-env/riscv-tools/include -I/home/tom/basement/hw/sbt_play/dpdnc/chipyard/tools/DRAMSim2 -I/home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/gen-collateral -DVERILATOR -include /home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/constellation.test.TestHarness.TestConfig00.plusArgs -include /home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/constellation.test.TestHarness.TestConfig00.debug/VTestDriver.h -DVL_TIME_CONTEXT -fcoroutines -c -o verilated.o /usr/local/share/verilator/include/verilated.cpp g++: error: unrecognized command line option ‘-fcoroutines’ make[1]: *** [/usr/local/share/verilator/include/verilated.mk:251: verilated.o] Error 1 make[1]: Leaving directory '/home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/generated-src/constellation.test.TestHarness.TestConfig00/constellation.test.TestHarness.TestConfig00.debug' make: *** [Makefile:213: /home/tom/basement/hw/sbt_play/dpdnc/chipyard/sims/verilator/simulator-constellation.test-TestConfig00-debug] Error 2 (/home/tom/basement/hw/sbt_play/dpdnc/chipyard/.conda-env)

It looks like the script assigned c++17 as compiling option with a c++20 flag '-fcoroutines' (in my understanding)

How do I solve this?

Thanks for helping!

PS
my verilator version is Verilator 5.012 2023-06-13 rev v5.012-34-g4f13c4d1b

Edit
I downgrade verilator to v5.008
and still got g++: error: unrecognized command line option ‘-fcoroutines’
also in chipyard/sims/verilator/,
i do make for the default example
got g++: error: unrecognized command line option ‘-fcoroutines’ too

and i tried make clean first too

@yoyo115956
Copy link

Did you find a solution? I have no idea how to use chipyard with this, and that confused me for a long time.

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

2 participants