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.

[参考译文] TI-CGT:C2000 CGT "可变长度数组的使用不是线程安全"链接器错误

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1255426/ti-cgt-c2000-cgt-use-of-variable-length-arrays-is-not-thread-safe-linker-error

器件型号:TI-CGT
主题中讨论的其他器件:TMS320F280049C

您好!

因此、我遇到了链接器提出以下错误的问题:

Building target: "f280049c-application.out"
Invoking: C2000 Linker
"C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -O2 --opt_for_speed=2 --fp_mode=relaxed --advice:performance=all OMITTED THE REST OF BUILD OPTIONS FOR PRIVACY  
<Linking>
error #10457-D: Use of variable-length arrays is not thread-safe.
error #10010: errors encountered during linking; "f280049c-application.out" not built
remark #10205-D: automatic RTS selection:  linking in "rts2800_fpu32_eabi.lib" in place of index library "libc.a"
FILE: f280049c-application.out
CODE  size (bytes): 79123
CONST size (bytes): 17016
DATA  size (bytes): 20489
 
 
>> Compilation failure

此 "错误#10457-D:可变长度数组的使用不安全线程。" Error 没有指向问题数组可能所在位置的进一步上下文。 我还使用了 LDRA 静态分析工具来尝试和找到它、但是我找不到任何与可变长度数组相关的错误。

我正在构建:

C2000 CGT v20.2.5 LTS、
CCS v10.3.1
TMS320F280049C 的构建

我还尝试了使用 v20.2.7 LTS、20.12.0 STS 和22.6.0 LTS 执行编译。 但是、该错误仍然存在。

有人知道这里会发生什么吗?

1.如何从链接器中提取更多信息来告诉我产生此错误的确切原因?

2.这是 工具链 错误吗? 我找到了以下有关类似问题的论坛文章和错误报告:
https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/829820/compiler-tm4c129cnczad-arm-18-12-3-linker-now-produces-error-10457-d-use-of-variable-length-arrays-is-not-thread-safe
https://sir.ext.ti.com/jira/browse/EXT_EP-9517

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

    Emily、您好!

    此问题似乎已标记为已解决、因此我不确定您为什么仍然看到此问题。 您是否有任何由非常量值(即宏或数字本身)定义的长度数组? 您是否尝试过使用不同的优化级别并重新构建项目、就像在您链接的帖子中一样?

    此致、

    阿米尔·奥马尔