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

Unable to build verilator sim -- "riscv-none-embed-gcc" #25

Open
sunnystormy opened this issue Jun 6, 2021 · 1 comment
Open

Unable to build verilator sim -- "riscv-none-embed-gcc" #25

sunnystormy opened this issue Jun 6, 2021 · 1 comment

Comments

@sunnystormy
Copy link

I'm currently trying to get a simulator built to run the Miyamoto-Sprint project. When I run the makefile for the simulator with the verilator switch I get the following output:

riscv-none-embed-gcc -Wall -flto -march=rv32i -mabi=ilp32 -Os -ffreestanding -nostdlib -I../firmware/../software/lib/ -I../firmware/../software/common/ -DBOOT_DISPLAY -T ../firmware/boot.lds -o ../firmware/boot_multi.elf ../firmware/boot.S ../firmware/bootprint.c ../firmware/winbond_configure.S ../firmware/issi_configure.S ../firmware/flash_detect.S ../firmware/../software/common/font.c ../firmware/../software/lib/vdp.c ../firmware/../software/lib/assert.c make: riscv-none-embed-gcc: No such file or directory make: *** [../firmware/boot.mk:89: ../firmware/boot_multi.elf] Error 127

None of the risc-v toolchains I have installed have the designation I see in the emitted message. My newlib toolchains start with "riscv32/64-unknown-elf-*". Is there a specific configuration I need in order to produce the toolchain used here?

Thank you for your help!

@dan-rodrigues
Copy link
Owner

Try renaming the riscv-gcc prefix in this cross.mk to match one of your 32bit toolchains. riscv32-unknown-elf- sounds like it would work in this case. I haven't tried building riscv-gcc from source though for this project, I just used the xPack binaries which I've had no problem with.

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