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:CCS 12.2需要两个构建来实际构建项目

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1304537/codecomposer-ccs-12-2-requires-two-builds-to-actually-build-project

器件型号:CODECOMPOSER
主题中讨论的其他器件:CCStudio

您好!

我使用 CCS 12.2。 最初、我有两个调试配置、`debug_EVK`和`debug_EV1`、这两个配置都使用 TI 的 armcl 编译器版本20。 然后、我使用 CCS 通过 tiarmclang 编译器3.2.0.LTS 版本创建`debug_EV1`配置的端口(同时保留原始版本):`debug_EV1__TIClang`。 一切都运行正常、直到我创建了一个`debug_EVK`的 tiarmclang 配置(同时保留了原始配置):`debug_EVK__TIARMCLANG`。 现在、当从 CCS 图形用户界面进行构建时、我无法构建任一 tiarmclang 项目。 从命令行调用 CCS 时、我第一次尝试编译时会发生相同的问题;实际上没有构建任何内容。 命令行和 GUI 的输出是相同的:"没有为项目 sp_app 构建的内容"。 (SP_APP 是我项目的名称)。  

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See www.slf4j.org/codes.html for further details.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Sun Dec 17 22:56:50 PST 2023]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
================================================================================
Pre processing...
================================================================================
Building...
**** Build of configuration debug_ev1__TICLANG for project sp_app ****
Nothing to build for project sp_app
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

当我再次构建时、我的项目实际上得到了正确构建。 make invocation 实际上会出现在日志中:  

Fullscreen
1
2
3
**** Build of configuration debug_ev1__TICLANG for project sp_app ****
/opt/ti/ccs1220/ccs/utils/bin/gmake -k -j 8 all -O
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

我猜、出于某种原因、只会在第一次构建完成后才会生成 makefile。

只要我不删除任何 CCS 的临时文件、编译就会继续正常工作。 下面是 我在目录中删除的导致问题的内容:

Fullscreen
1
2
3
4
5
6
7
8
9
daniel@ubuntu:~/path/to/projects/$ git clean -xdfff
Removing janus_sp/ccs_workspace/.jxbrowser.userdata/
Removing janus_sp/ccs_workspace/.metadata/
Removing janus_sp/ccs_workspace/RemoteSystemsTempFiles/
Removing janus_sp/ccs_workspace/dvt/
Removing janus_sp/ccs_workspace/sp_app/.settings/
Removing janus_sp/ccs_workspace/sp_app/debug_ev1__TICLANG/
Removing janus_sp/ccs_workspace/sp_app/debug_evk__TICLANG/
Removing janus_sp/ccs_workspace/sp_app/project.log
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
e2e.ti.com/.../clang_5F00_issue_5F00_diff.log

我已经随附了 clang_issue_diff 文件、以在添加`debug_EVK__TICLANG`配置前后显示我的`. cproject`文件的差异。

以下是我在 CCS 调用过程中使用的 CLI 选项、谢谢预先设置:

Fullscreen
1
2
3
4
5
6
7
8
$CCS_PATH/eclipse/ccstudio -noSplash \
-data "$CCS_WORKSPACE_DIR/" \
-application com.ti.ccstudio.apps.projectBuild \
-ccs.projects $CCS_PROJECT_NAME \
-ccs.configuration $CSS_BUILD_CONFIGURATION \
-ccs.buildType full \
-ccs.autoImport \
-ccs.copyIntoWorkspace false
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    您好!

    您能提供一个小型测试用例吗? 与您的现有工程类似、但您可以将其剥离到最少数量的自包含源文件。

    谢谢