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.

[参考译文] 编译器/TM4C129XNCZAD:使用 ARM CGT 18.1.3编译时出错、16.9.6正常工作

Guru**** 2487165 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/734343/compiler-tm4c129xnczad-errors-compiling-with-arm-cgt-18-1-3-works-fine-with-16-9-6

器件型号:TM4C129XNCZAD

工具/软件:TI C/C++编译器

出于某种原因、使用18.1.3编译器进行编译时、我在多个文件的日志中看到以下错误:

"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第918行:错误#918:__rebind_pointer 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第641行:错误#918:__rebind_pointer 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第653行:错误#918:pointer_sindics"不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第664行:错误#918:__rebind_pointer:
/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree __rebind_pointer 不是模板
“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第670行:错误#918:Pointer_ficalsthesis not a template
“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第670行:错误#441:预期出现">"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第

674行:错误#284:全局范围没有“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第670行:错误#66:错误:错误:错误94:错误:错误:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 主模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "的声明中不允许模板参数列表、第709行:错误#918:__rebind_pointer 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第711行:错误#918:__tree_node_types 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第775行:错误#918:allocator_991不是模板
"、错误代码行:错误#778:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 需要一个类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第778行:错误#283:全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第778行:错误#66:预期使用";
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第780行:错误#918:_tree_node_types 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、错误代码#780:
/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree:"、错误代码行:未定义" 错误#760:"指针"不是类型名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第810行:错误#918:__tree_node_Types 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第812行:错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第812行:错误283:全局范围限定符(前导":")不允许
、错误#66:错误:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第813行:错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第813行:错误#283:全局范围限定符(前导":")不允许
为"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第813行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第991行:错误#814: 需要“
C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”类或命名空间限定名,第814行:错误#283:全局范围限定符(前导“:”)不允许
“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree


/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第814行:错误#66:预期为“;”“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第815行:错误#824:POINTER_FACTIMESTIMING 不是模板“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第918行:“C:ITER_”,第20行:“INDER:” 错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第824行:错误#283:全局范围限定符(前导":")
不允许使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第824行:错误#66:预期使用";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第834行:错误#20:标识符"指针"未定义
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第20行:错误868: 标识符"__end_node_pointer"未定义
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree


/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree ",第883行:错误#918:__tree_node_Types 不是模板"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree
/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree ",第884行:错误#991:需要类或命名空间限定名称"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree,第884行:错误#283:全局范围限定符(前导":":")不允许出现"C:错误",第884行:"C:"C::":错误:" 错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第885行:错误#283:不允许全局范围限定符(前导":")
、/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 第885行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第886行:错误#283:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、错误#886: 全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第886行:错误#66:预期使用";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第887行:错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第887行:错误#283:全局范围限定符(前导":")不允许
使用"C:667"、错误:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第888行:错误#918:Pointer_classics,
第888行:错误#20:标识符"__node_pointer"未定义
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree;第890行:错误#20:标识符"__ITER_pointer"未定义
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree;第897行:
标识符"8991":错误#991"或符合条件的命名空间:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree /ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree: 全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第897行:错误#66:预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第906行:错误#760:"_node_pointer"不是类型名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第915行:错误#20:标识符"pointer"未定义
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、
第948行:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree:错误:"、错误#49:错误:错误: 不允许使用"explicit"
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第949行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第994行:错误#918:LOADER_FICENOINSURE 不是模板
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第996行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、错误#441:预期为
/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree:错误991"、错误#996行: 类或命名空间限定名称是必需
的"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第998行:错误#283:全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第998行:错误#66:预期使用";
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1000行:错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第1000行:错误283: 全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1000行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1001行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1001行:错误#283:全局范围限定符(前导":")不允许
使用"C:66"、错误1001行:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1003行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第1003行:错误#283:全局范围限定符(前导":")不允许
出现"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1003行:错误#66:预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1004行:错误991: 需要“
C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”类或命名空间限定名,第1004行:错误#283:全局范围限定符(前导“:”)不允许
“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第1004行:错误#66:预期出现“;
”“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,第1005行:错误#991:需要类或命名空间限定名
“C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree”,错误: 全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1005行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1006行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1006行:错误#283:全局范围限定符(前导":")不允许
使用"C:错误66:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1009行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第1009行:错误#283:不允许全局范围限定符(前导":")
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1009行:错误#66:预期出现";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1011行:错误991: 需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1011行:错误#283:全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1011行:错误#66:预期使用";
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1012行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、错误#1012: 全局范围限定符(前导":")不允许
使用"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1012行:错误#66:期望值为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1014行:错误#991:需要类或命名空间限定名称
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第1014行:错误#283:不允许全局范围限定符(前导":")
、错误#66:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree 预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1015行:错误#991:需要类或命名空间限定名
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree、第1015行:错误#283:不允许全局范围限定符(前导":")
"C:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1015行:错误#66:预期为";"C
:/ti/ccs820/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/libcxx/__tree "、第1017行:错误#991: 需要类或命名空间限定名称
达到错误限制。
在编译"myfile.cpp"时检测到100个错误。 

在"Problems"面板中、我从 libcxx 文件夹中的字符串文件中获得了大量错误。

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

    为了了解发生的情况、我需要一个测试案例、允许我复制该案例。  对于一个显示大多数错误 的源文件、请按照文章如何提交编译器测试用例中的说明提交测试用例。

    谢谢、此致、

    乔治

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

    我无法使用单个文件创建测试用例、当然、我无法为您提供完整的源代码。

    但是、我通过创建一个全新的项目、添加所有源文件以及 SYS/BIOS 配置等其他其他其他类似事项、可以在不更改源代码的情况下使其编译。

    然后、我查看了这些设置以查看是否有任何突出显示、但我的所有设置似乎都已正确复制到新项目中、并且似乎没有任何严重的差异。

    我想要么错过了一些编译器设置、要么错过了一些其他 ccsproj 设置、这些设置会导致编译变松。

    我确实注意到新 cproject 文件的"builder"元素定义了以下属性,但我认为这不会产生影响:paralleldOn="true" BuilizationNumber="optime"

    发送 cproject 文件是否有帮助?

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

    请尝试在 启用 和禁用并行编译的情况下编译整个工程。  如果这不会导致问题出现、那么我就不敢表达自己的想法。

    谢谢、此致、

    乔治

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

    启用/禁用并行编译选项似乎没有任何影响。 我不知道为什么原始工程无法编译。