【首发?】Mac M1 编译原生toolchain以及配置烧录支持

[复制链接]
oxromantic | 2023-11-22 23:44:33 | 显示全部楼层
爱思 发表于 2023-11-22 22:26
编译toolchain报错日志很长,我截取最后的几行,大佬看看:

/bin/sh: line 4: riscv64-unknown-elf-ar: co ...

你这个大概率代码没拉完整,我前面全新环境重新编译了一下,代码目录含.git共有9G多,或者你用我编译好的吧,我编辑到主贴里
回复 支持 反对

使用道具 举报

小黑蛋 | 2023-12-10 10:43:26 | 显示全部楼层
优秀
回复

使用道具 举报

大锤子 | 2024-4-29 20:17:40 | 显示全部楼层
学习学习
回复

使用道具 举报

大锤子 | 2024-5-9 06:30:17 | 显示全部楼层
export PATH=$(brew --prefix)/opt/coreutils/libexec/gnubinPATH
这个是安装什么?

在helloword 里执行报错:
CMake Error at /Users/master/Documents/Electronic_Fever/MCU/aipi/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_C_COMPILER:

    riscv64-unknown-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


CMake Error at /Users/master/Documents/Electronic_Fever/MCU/aipi/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_CXX_COMPILER:

    riscv64-unknown-elf-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)
回复 支持 反对

使用道具 举报

学习一下
回复

使用道具 举报

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

本版积分规则