Closed Co1lin closed 3 years ago
Problem solved by using the download link to riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-apple-darwin.tar.gz
. But I am wondering why toolchains downloaded from https://www.sifive.com/software -> Prebuilt RISC‑V GCC Toolchain and Emulator -> GNU Embedded Toolchain — v2020.12.8 -> macOS
cannot work...
This is caused by issue #13 of SiFive prebuilt risc-v gcc toolchain. Thus, unfortunately, we can only use August 2020 release or prior for now.
Thanks~
Hi, I tried to compile the C program in the doc on macOS, but failed:
However, I can generate the assembly code:
Additionally, when I removed the options for 32-bit, It worked well. But it didn't meet the requirement of this course.
BTW, the last snippet on this page which uses
qemu-riscv32
is not compatible for macOS. It can be removed to avoid confusion.