Hi Chipyard Team,
I am currently setting up Chipyard and encountering an issue during the toolchain build process (Step 3: Building toolchain collateral).
Here is a summary of the problem:
The build fails while compiling riscv-pk.
During the configure stage, the system is unable to detect the cross-compiler:
checking for riscv64-unknown-elf-gcc... no
checking for riscv64-unknown-elf-g++... no
As a result, the build falls back to the host gcc, which leads to the following errors:
From my understanding, these flags are specific to the RISC-V cross-compiler, which suggests that the correct toolchain is either not built or not being detected in the PATH.
Additional context:
$RISCV/bin currently contains only:
elf2hex spike spike-dasm spike-log-parser termios-xspike xspikeand does not include riscv64-unknown-elf-gcc.
It appears that the RISC-V GNU toolchain did not build or install correctly, causing Chipyard to use the host compiler instead.
Could you please advise on:
The correct way to build the RISC-V toolchain in a non-sudo environment?
Whether there are recommended prebuilt binaries for such restricted systems?
Any specific environment variables or setup steps I might be missing?
Thank you for your help.
Best regards,
Surya