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.

[参考译文] CODECOMPOSER:C++与 tiarmclang-4.0.2不兼容

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1482653/codecomposer-c-incompatibilities-with-tiarmclang-4-0-2

器件型号:CODECOMPOSER
Thread 中讨论的其他器件:CCStudioCC1354P10

工具与软件:

你(们)好

我们尝试使用 tiarmclang-4.0.2构建 C++工程。 编译失败、编译器标头中有未声明的标识符:

In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/functional:526:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/vector:325:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__format/formatter_bool.h:20:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__format/formatter_integral.h:13:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__charconv/to_chars_integral.h:17:
In file included from /home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__charconv/to_chars_result.h:14:
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:141:42: error: use of undeclared identifier 'EIDRM'
141 | identifier_removed = EIDRM,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:155:42: error: use of undeclared identifier 'ENOLINK'
155 | no_link = ENOLINK,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:160:28: error: use of undeclared identifier 'ENOMSG'
160 | no_message_available = ENOMSG,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:162:26: error: use of undeclared identifier 'ENOMSG'
162 | no_message = ENOMSG,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:189:38: error: use of undeclared identifier 'EOWNERDEAD'
189 | owner_dead = EOWNERDEAD,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:197:38: error: use of undeclared identifier 'ENOTRECOVERABLE'
197 | state_not_recoverable = ENOTRECOVERABLE,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:203:37: error: use of undeclared identifier 'ETXTBSY'
203 | text_file_busy = ETXTBSY,
| ^
/home/marco/ti/ti-cgt-armllvm_4.0.2.LTS/include/c++/v1/__system_error/errc.h:208:37: error: use of undeclared identifier 'ELOOP'
208 | too_many_symbolic_link_levels = ELOOP,
| ^

只需包含即可复制该功能 CPP 文件中。

看着相关的问题和我手头的编译器似乎是这样的情况:
v2.1.2 -损坏
- v3.2.2 -工作
- v4.0.2 -损坏

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

    我无法重现此结果。  请显示的完整调用 tiarmclang 、选项与完全相同 tiarmclang 看到了。  请复制并粘贴命令的文本、不要使用屏幕截图。

    谢谢。此致、

    -George.

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

    这是 几年前的问题。 此论坛是否会影响您解决刀具问题的方式、或者在目前情况下是否过于企业化?

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

    我仍然认为我的第一个论坛答复是合理的。  您陈述...

    Unknown 说:
    只需包含即可复制 使用任何 cpp 文件。

    我努力做到这一点、而且它总是能为我打造干净的产品。  很显然、我缺少了一些东西。  所以我被迫猜测我所缺少的东西。  我仍然认为 合理的下一步是询问编译器选项。   

    当然、我们欢迎您不同意、并说调查的重点应该放在其他地方、如整合 无论您使用何种 SDK (软件开发套件)。  如果是这样的话、我将把这个线程的责任转移给支持该 SDK 的团队。  这是您想做的事情吗?  您使用哪款 SDK?

    谢谢。此致、

    -George.

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

    从8.30.01.01 SDK 的发布说明(发布说明)

    "

    暴露依赖性

    SimpleLink 低功耗 F2 SDK 8.30.01.01是使用以下集成开发环境(IDE)和组件在 Windows 主机平台上进行构建和测试的。 使用下面未列出的 IDE 或工具链版本可能会导致与此 SDK 版本的兼容性问题。   有关每个组件支持的代码生成工具、请参阅文档概述中的各个组件版本说明。 CCS Theia 1.5.0不包含此 SDK 所需的 TI Clang v. 3.2.2 LTS。 TI Clang v. 3.2.2 LTS 可单独下载: https://www.ti.com/tool/download/ARM-CGT-CLANG

    • IAR 嵌入式工作平台: EWARM-9.60.2
    • TI Code Composer Studio: CCS-12.8.0
    • CCS Theia: 1.5.0
    • TI ARM Clang 编译器工具:  3.2.LTS
    • XDCTools:  3.62.0.0.15
    • ARM GCC:GCC-ARM-None-eabi-9-2019-Q4-major
    •  适用于 IAR IDE 的 SysConfig 独立工具:  1.1.1.
    • FreeRTOS:202104.00。 请注意、FreeRTOS 源代码现在随 SDK 安装程序一起提供

    • Amazon Sidewalk 示例应使用构建  GCC 12.3.

    "

    当您使用推荐版本时、一切都能正常工作吗?

    Siri

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

    你(们)好

    是的、它确实能够在 Linux 上用于3.2.LTS。 如果您不打算支持4.0.2-LTS、则至少要向 SDK 团队告知黑暗云即将来临。

     谢谢/Marco