sipeed / M0S_BL616_example

M0S BL616 example (M0S dock)
Apache License 2.0
32 stars 8 forks source link

cc1: error: unknown cpu 'e907' for '-mtune' #10

Closed edanuff closed 1 year ago

edanuff commented 1 year ago

Using the same toolchain for building RV-Debugger-BL702 on MacOS, unable to build example/helloworld:

[  1%] Building ASM object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/start.S.o
[  2%] Building C object build_out/components/libc/CMakeFiles/libc.dir/newlib/syscalls_nosys.c.o
[  3%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_adc.c.o
[  3%] Building C object build_out/components/utils/CMakeFiles/utils.dir/log/log.c.o
[  4%] Building C object CMakeFiles/app.dir/Users/edanuff/GitHub/M0s_BL616_example/bsp/board/bl616dk/fw_header.c.o
[  4%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_common.c.o
[  5%] Building C object build_out/components/mm/CMakeFiles/mm.dir/mem.c.o
cc1: error: unknown cpu 'e907' for '-mtune'
cc1: error: unknown cpu 'e907' for '-mtune'
edanuff commented 1 year ago

Followed the instructions for Building the Xuantie GNU Toolchain on macOS and Apple Silicon and was able to get it to build. Had to modify bflb_flash.cmake to force set(TOOL_SUFFIX "-macos") as well.