chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.1k stars 1.1k forks source link

vcs compile error #3649

Open dimory opened 4 weeks ago

dimory commented 4 weeks ago

when i compiler with vcs, some error occur. Generating code for _VCSgd_YP0eM Generating code for _VCSgd_KrGDi make[1]: Entering directory '/yzy/project/chipyard/sims/vcs/generated-src/chipyard.harness.TestHarness.RocketConfig/chipyard.harness.TestHarness.RocketConfig' In file included from /yzy/project/chipyard/.conda-env/x86_64-conda-linux-gnu/sysroot/usr/include/features.h:375, from /yzy/project/chipyard/.conda-env/x86_64-conda-linux-gnu/sysroot/usr/include/stdio.h:27, from rmapats.c:2: /usr/include/x86_64-linux-gnu/sys/cdefs.h:153:55: error: missing binary operator before token "(" 153 | #if USE_FORTIFY_LEVEL == 3 && (glibc_clang_prereq (9, 0) \ | ^ In file included from /yzy/project/chipyard/.conda-env/x86_64-conda-linux-gnu/sysroot/usr/include/features.h:375, from /yzy/project/chipyard/.conda-env/x86_64-conda-linux-gnu/sysroot/usr/include/stdio.h:27, from rmapats.c:2: /usr/include/x86_64-linux-gnu/sys/cdefs.h:652:49: error: missing binary operator before token "(" 652 | #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5) | ^ In file included from rmapats.c:2: image with : make run-binary BINARY=$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64ui-p-simple the version of vcs is 2018.9 in ubuntu24.04. can someone help me fix this error?