This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LP-MSPM0L1306:LP-MSPM0L2228 CCS 无法使用 gcc 进行编译

Guru**** 2044430 points
Other Parts Discussed in Thread: MSPM0L2228
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1346278/lp-mspm0l1306-lp-mspm0l2228-ccs-theia-unable-to-build-using-gcc

器件型号:LP-MSPM0L1306
主题中讨论的其他器件:MSPM0L2228

使用 CCS Theia 编译任何"gcc"版本的基本示例时遇到此错误。  具体而言、这是  uart_echo_interrupts_standby_LP_MSPM0L2228_nortos_gcc 示例的错误

错误消息为:

 加载插件:dlopen (/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so、0x0002):已尝试:'/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (不是 mach-o 文件)、'/System/Volumes/Preboot/Cryptexes/OS/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (无此类文件)、'/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (不是 mach-o 文件)、'/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (不是 mach-o 文件)、'/System/Volumes/Preboot/Cryptexes/OS/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (无此类文件)、'/Users/coolson/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so (不是 mach-o 文件)

看起来它正在尝试使用 TI 安装中的某个 GCC 版本、但加载该插件时出现问题。  我的系统上安装了 gcc:

~ gcc --版本

Apple clang 版本15.0.0 (clang-1500.3.9.4)

目标:arm64-apple-darwin23.3.0

Thread 模型:POSIX

InstalledDir:/Library/Developer/CommandLineTools/usr/bin

我只能使用自己的 gcc 吗?  如果是,如何?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    出于某种原因、CCS 从 我的主目录中的某个 ti 文件夹中获取了 GCC 的版本。  我在 TI 应用商店中安装 gcc 后、项目就会构建:)