mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
7.18k stars 2.67k forks source link

Unable to run make qemu command #93

Open sauntheninja2 opened 3 years ago

sauntheninja2 commented 3 years ago

Successfully built the toolchain but failing to run make qemu command on Arch Linux

Output: riscv64-unknown-elf-gcc -c -o kernel/entry.o kernel/entry.SAssembler messages: Fatal error: invalid -march= option:rv64imafdc' make: *** [: kernel/entry.o] Error 1`

Reylak commented 3 years ago

Hello, I've also had this issue. In my case I was trying to run make after installing the AUR package riscv-gnu-toolchain-bin (I never tried with the non-bin version). I could not find any information about this except that it might be related to the use of --multilib when building the package.

Anyway, I was able to compile and run xv6 by installing both parts of the toolchain from the community packages (riscv64-linux-gnu-gcc and riscv64-elf-gcc, both pull additional dependencies of the complete toolchain).

Hope this helps!