chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

Make failure while using VCS

Open crystalbreezy1 opened this issue 5 years ago • 3 comments

VCS version: 2016.06

When running make with default config under sims/vcs directory, the flow failed due to the following error:

g++ -w -pipe -fPIC -std=c++11 -I/home/caoyue/yuecao/chipyard_test/chipyard/riscv-tools-install/include -I/home/caoyue/yuecao/chipyard_test/chipyard/tools/DRAMSim2 -I/home/caoyue/yuecao/chipyard_test/chipyard/sims/vcs/generated-src/chipyard.TestHarness.RocketConfig -O3 -I/eda/synopsys/vcs2016.06/include -c /home/caoyue/yuecao/chipyard_test/chipyard/sims/vcs/generated-src/chipyard.TestHarness.RocketConfig/uart.cc cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C /usr/bin/ld: /eda/synopsys/vcs2016.06/linux64/lib/vcs_save_restore_new.o: relocation R_X86_64_32S against symbol `_sigintr' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status make[1]: *** [Makefile:105: product_timestamp] Error 1 make[1]: Leaving directory '/home/caoyue/yuecao/chipyard_test/chipyard/sims/vcs/generated-src/chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig' Make exited with status 2 make: *** [Makefile:72: /home/caoyue/yuecao/chipyard_test/chipyard/sims/vcs/simv-chipyard-RocketConfig] Error 2

After checking the description in the following issue post: https://github.com/ucb-bar/chipyard/issues/691 I think the main problem is still the inconsistency of gcc requirements between VCS 2016 and other simulators. I saw that the final solution for that issue post is updating to a newer VCS version, but unfortunately this option is unavailable for me. In this case, I want to know if there's any other way to resolve this problem? It's OK for me to only have vcs working, not verilator.

crystalbreezy1 avatar Oct 18 '21 08:10 crystalbreezy1

I also encountered this problem. My solution is to modify the makefile under the path /sims/vcs and directly specify the GCC version to be used. The modified file is as follows 1634560657(1) : You can also choose another version of GCC, but be careful to install the corresponding version and create a new link.

zbw444 avatar Oct 18 '21 12:10 zbw444

Sure. Thanks for your suggestion! I have tried your gcc-6 command first, but I have still gotten the same error. However, after I further downgraded the gcc version to 5, the flow is working well. It looks like that gcc-5 is the balance point between my VCS version and other simulators of the chipyard design. Now the problem is resolved.

crystalbreezy1 avatar Oct 19 '21 03:10 crystalbreezy1

image

crystalbreezy1 avatar Oct 19 '21 03:10 crystalbreezy1