oscomp / testsuits-for-oskernel

95 stars 29 forks source link

mac m1 cannot build for syscall test #4

Closed ZonePG closed 3 years ago

ZonePG commented 3 years ago

I downloaded the toolchain through brew on m1 mac because the executable in the res folder seems to be not available under mac.

on riscv-syscalls-testing/user, when I run ./build-oscomp.sh, it occurs errors:

riscv64-unknown-elf-gcc: error: arm64: No such file or directory
riscv64-unknown-elf-gcc: error: unrecognized command-line option '-arch'; did you mean '-march='?
make[3]: *** [CMakeFiles/ulib.dir/lib/arch/riscv/crt.S.o] Error 1
make[2]: *** [CMakeFiles/ulib.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [binary] Error 2

I don't know why this happens.