【求助帖】Ai_M61编译错误

[复制链接]
查看422 | 回复0 | 2023-9-17 16:59:57 | 显示全部楼层 |阅读模式
问题简述:编译 helloworld 工程时一直报
error: unknown cpu 'e907' for '-mtune'
这个错误,并且头文件找不到(第一次用VSCode开发,不太懂)


J3II15AU]P7KFIYX}8MPZ5L.png

具体报错:

cc1.exe: error: unknown cpu 'e907' for '-mtune'
cc1.exe: error: unknown cpu 'e907' for '-mtune'
cc1.exe:cc1.exe:  error: error: unknown cpu 'unknown cpu 'e907e907' for '' for '-mtune-mtune'
'
cc1.exe:cc1.exe:  error: error: unknown cpu 'unknown cpu 'e907            ' for '        -mtune-mtune       '

'
unknown cpu 'e907' for '-mtune'
make[3]: *** [build_out\components\mm\CMakeFiles\mm.dir\build.make:89: build_out/components/mm/CMakeFiles/mm.dir/tlsf/tlsf.c.obj] Error 1

cc1.exe: error: unknown cpu 'e907' for '-mtune'
make[3]: *** [build_out\components\mm\CMakeFiles\mm.dir\build.make:75: build_out/components/mm/CMakeFiles/mm.dir/mem.c.obj] Error 1
make[3]: *** [CMakeFiles\app.dir\build.make:75: CMakeFiles/app.dir/E_/0_MCU_other/3_Ai_Tinker/3_Ai_M61/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board
.c.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles\app.dir\build.make:89: CMakeFiles/app.dir/E_/0_MCU_other/3_Ai_Tinker/3_Ai_M61/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/fw_he
ader.c.obj] Error 1
make[2]: *** [CMakeFiles\Makefile2:590: build_out/components/mm/CMakeFiles/mm.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [build_out\components\utils\CMakeFiles\utils.dir\build.make:75: build_out/components/utils/CMakeFiles/utils.dir/log/log.c.obj] Error 1
make[2]: *** [CMakeFiles\Makefile2:481: CMakeFiles/app.dir/all] Error 2
make[2]: *** [CMakeFiles\Makefile2:616: build_out/components/utils/CMakeFiles/utils.dir/all] Error 2
make[3]: *** [build_out\components\libc\CMakeFiles\libc.dir\build.make:75: build_out/components/libc/CMakeFiles/libc.dir/newlib/port_memory.c.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [build_out\drivers\lhal\CMakeFiles\lhal.dir\build.make:75: build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_common.c.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [build_out\drivers\soc\bl616\std\CMakeFiles\std.dir\build.make:74: build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/start.S.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
[  5%] Building C object build_out/components/libc/CMakeFiles/libc.dir/newlib/syscalls_nosys.c.obj
[  6%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_adc.c.obj
[  6%] Building ASM object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/vector.S.obj
cc1.exe: error: unknown cpu 'e907' for '-mtune'
cc1.exe: error: unknown cpu 'e907' for '-mtune'

make[3]: *** [build_out\drivers\soc\bl616\std\CMakeFiles\std.dir\build.make:87: build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/vector.S.obj] Error 1
make[2]: *** [CMakeFiles\Makefile2:668: build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/all] Error 2
make[3]: *** [build_out\drivers\lhal\CMakeFiles\lhal.dir\build.make:89: build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_adc.c.obj] Error 1
make[2]: *** [CMakeFiles\Makefile2:642: build_out/drivers/lhal/CMakeFiles/lhal.dir/all] Error 2
cc1.exe: error: unknown cpu 'e907' for '-mtune'
make[3]: *** [build_out\components\libc\CMakeFiles\libc.dir\build.make:89: build_out/components/libc/CMakeFiles/libc.dir/newlib/syscalls_nosys.c.obj] Error 1
make[2]: *** [CMakeFiles\Makefile2:564: build_out/components/libc/CMakeFiles/libc.dir/all] Error 2
make[1]: *** [Makefile:90: all] Error 2
make: *** [../../project.build:73: build] Error 2


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则