pulp-platform / riscv-dbg

RISC-V Debug Support for our PULP RISC-V Cores
Other
197 stars 70 forks source link

Simulating with "VCS" and RiscV 64-bit toolchain. #157

Closed arash-vafaei closed 11 months ago

arash-vafaei commented 1 year ago

Hi there, I am trying to use the makefile to build the for simulation using vcs using "vcs-run" command. It seems like the makefile already uses the 32-bit riscV toolchain at lines 140,144. I tried compiling with 64-bit toolchain and --march=rv32imc and --mabi=ilp32i but this caused the compilation to run into errors. The main error I get is : errorno: TLS defenition in /apps/riscv-gnu-toolchain/...../libc.so (errorno.o) section .tbss mismatches non-TLS refrence in /tmp/...

Is there some hard prequisites for the already compiled library or .S files in /prog folder?

bluewww commented 11 months ago

Seems like a compiler issue