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.

[参考译文] 编译器/TDA2EG:代码不能使用TI ARM编译器编译

Guru**** 2524460 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/659138/compiler-tda2eg-code-doesn-t-compile-with-ti-arm-compiler

部件号:TDA2EG

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

您好,

当TI ARM编译器无法编译某段代码时,我会感到很烦。 但是,相同的代码可以使用GCC ARM正常编译。

TI ARM编译器版本->  TI-CGT-ARM_LTS.2.LTS 16.9

gcc arm编译器版本->  gcc-arm-none-eabi-4_9-2015q3.

build commond -> ./armcl.exe -c astl/source/stack_allocator.cpp -i astl/source/-i astl/source/arch/cpp03/-i ./include/


错误:  

"../include/s__tree.h",第257行:错误:没有构造函数实例"std::std:::priv:_stlp_alloc_proxy<_value,_TP,_MaybeReboundAlloc>::_stlp_alloc_proxy [with pair value=std::std:::std_tree_node_base_base_,_: _MaybeReboundAlloc=astl::Allocer<std::priv::_rb_tree_node<std::pair<const std::size_t, astl::IAllocer*>>>匹配参数列表
参数类型为:(const astl::Allocer<std::pair<const std::size_t,astl::IAllocer*>>,std:priv::_rb_tree _node_base)
检测时间:
"std:::priv::_rb_tree_base<_TP,_Alloc>::_rb_tree_base (const std::priv:::_rb_tree_base<_TP,_Alloc>:::allocator_type &)[与_TP=std::对<const::::::size_t,
"std::priv::_rb_tree的实例化<_Key,_Compare,_Value,_KeyOfValue,_stitics, _Alloc>::_rb_tree (const _Compare &,const std::priv::_rb_tree<_Key,_Compare,_Value,_KeyOfValue, _stites,_Alloc>::allocator_type &)[使用_Key=std::size_t,_Compare=std::les<std::sstd::value=std::pair<const std::size_t, astl:IAllocator*>,_KeyOfValue=std::std:::_Select<std:<std:<std:<constd:<std:<: astl::IAllocator *>>,_features=std::priv:_MapTraitsT<std::pair< const std::size_t,astl::IAllocator *)>,_Alloc=astl:::Allocor<std::pair< const std::size_t,astl:::::::::IAllocator iallocator行地址:/115"。
"std::map<_Key,_TP,_Compare,_Alloc>:::MAP (const _Compare &,const std:::map<_Key, _TP,_Compare,_Alloc>:::allocator_type &)[with _Key=std::size_t,_TP=astl::IAllocator *,_Compare=std::less <标准:size_t>,_Alloc=astl:::::pair<const:::::size_t,astl:astl/astl/astl/line.03"
在"astl/source_pool.allocator"的第476行中,"astl::Map,_Ty,_Pr>::Map (astl:::IAllocator *)[with _KTY:std_t,_Ty=astl:::IAllocator *,cpp _Pr=std::less <std::::::::::size_t>]"的实例化
编译"astl/source/pool_allocator.cpp时检测到1个错误。

>>编译失败

请查看随附的code.e2e.ti.com/.../astl.zip

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    其他观察:
    代码使用旧TI AM版本进行编译:ARM_TI 5.2。4。
    但是我想用我现有的更新版本来编译它,因为在完整的构建系统中存在其他依赖关系。

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

    很遗憾,我无法使用您发送的内容重现问题。  请按照本文 如何提交编译器测试用例中的说明发送测试用例

    谢谢,此致,

    -George

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

    您好,George,

    请在我检查时查看以下测试案例:

    • 将附加的zip文件解压缩到<TI_ARM_Compiler_root>/bin
    • 所有必需的标题和源都存在于astl/source文件夹中
    • 使用的编译器版本:  

    TI ARM C/C++编译器16.9 v.2.LTS
    内部版本号1RBOP-I3E 26 % 384-RTARQ-SAV-C08D

    • 我不是使用Makefile,而是通过从 <TI_ARM_Compiler_root>/bin运行以下命令来手动编译Makefile
    • 命令: ./armcl.exe -c astl/source/stack_allocator.cpp -i astl/source/-i astl/source/arch/cpp03/-i ./include/


    谢谢!

    Shailesh

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

    很遗憾,我没有看到任何附件。

    谢谢,此致,

    -George

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

    您好,George,

    这与我在初始职位上附上的附件相同。

    请在下面再次找到插入的zip文件:

    e2e.ti.com/.../7041.astl.zip

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

    感谢您提供更多信息。  我可以再现相同的诊断。  我在 SDOWP系统中提交了CodeGen-4368以进行调查。  欢迎您使用我签名中下面的SDOWP链接进行关注。

    谢谢,此致,

    -George

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    在这种情况下,什么是错误ID?
    如果我输入4368或CodeGen-4368,则会显示“找不到记录”。

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

    错误ID为 CodeGen-4368。  对我来说很好。  请重试。  如果你仍然看不到它,我会要求那些维护该系统的人去看一下。

    谢谢,此致,

    -George

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

    现在我可以看到问题。

    谢谢!
    Shailesh