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.

[参考译文] Eclipsec.exe 错误

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1341222/eclipsec-exe-bug

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

您好、使用"eclipsec.exe"时遇到错误。 我们有一个使用多个编译器的项目、每当其中一个编译器中出现某种 CLI 变量评估时(例如 ${build_var:CG_TOOL_CLANG}或${build_var:Compiler_flags}、但我们也会使用其他编译器)、编译失败、但仅在 CLI 模式下发生。 例如、在 CCS Studio 中编译工程时将按预期工作;系统将正确评估变量并将其传递到外部程序、然后顺利编译工程。 但使用连续集成版本(直接调用"eclipsec.exe"或在 Linux 下调用/opt/ti/ccs/eclipse/eclipse)时、我们得到 Java 回溯:

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... [Mon Mar 25 09:23:39 CET 2024]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

================================================================================
Pre processing...


================================================================================
Building...


**** Build of configuration Release for project PROJ_NAME ****

"C:\\ti\\ccs1260\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
 
gmake[1]: 'PROJ_NAME.out' is up to date.

**** Build Finished ****
org.eclipse.core.internal.resources.ResourceException: Errors occurred during the build.
        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:534)
        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.internalBuildProjects(ProjectBuilder.java:419)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:288)        
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:277)        
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.buildProjects(ProjectBuildApp.java:304)      
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.doRun(ProjectBuildApp.java:118)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp$1.run(BaseHeadlessApp.java:338)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2315)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2340)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:336)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:267)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
Contains: Errors running builder 'Integrated External Tool Builder' on project 'PROJ_NAME'.
org.eclipse.core.runtime.CoreException: Error while evaluating variable build_var.
        at org.eclipse.core.internal.variables.DynamicVariable.getValue(DynamicVariable.java:58)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolve(StringSubstitutionEngine.java:271)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:195)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:91)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:547)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:347)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ExternalToolsCoreUtil.getArguments(ExternalToolsCoreUtil.java:150)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ProgramLaunchDelegate.buildCommandLine(ProgramLaunchDelegate.java:175)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ProgramLaunchDelegate.launch(ProgramLaunchDelegate.java:80)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:711)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:183)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:171)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:90)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:860)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:392)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:417)
        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:517)
        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.internalBuildProjects(ProjectBuilder.java:419)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:288)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:277)
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.buildProjects(ProjectBuildApp.java:304)
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.doRun(ProjectBuildApp.java:118)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp$1.run(BaseHeadlessApp.java:338)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2315)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2340)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:336)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:267)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
Caused by: java.lang.NullPointerException
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver$Context.access$2(ProjectCoreDynamicVariableResolver.java:44)
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver.resolveValue__build_var(ProjectCoreDynamicVariableResolver.java:156)
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver.resolveValue(ProjectCoreDynamicVariableResolver.java:68)
        at org.eclipse.core.internal.variables.DynamicVariable.getValue(DynamicVariable.java:56)
        ... 47 more
Contains: Error while evaluating variable build_var.
java.lang.NullPointerException
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver$Context.access$2(ProjectCoreDynamicVariableResolver.java:44)
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver.resolveValue__build_var(ProjectCoreDynamicVariableResolver.java:156)
        at com.ti.ccstudio.project.core.internal.variables.ProjectCoreDynamicVariableResolver.resolveValue(ProjectCoreDynamicVariableResolver.java:68)
        at org.eclipse.core.internal.variables.DynamicVariable.getValue(DynamicVariable.java:56)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolve(StringSubstitutionEngine.java:271)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:195)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:91)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:547)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:347)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ExternalToolsCoreUtil.getArguments(ExternalToolsCoreUtil.java:150)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ProgramLaunchDelegate.buildCommandLine(ProgramLaunchDelegate.java:175)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ProgramLaunchDelegate.launch(ProgramLaunchDelegate.java:80)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:711)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:183)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:171)
        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:90)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:860)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:392)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:417)
        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:517)
        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.internalBuildProjects(ProjectBuilder.java:419)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:288)
        at com.ti.ccstudio.project.core.services.ProjectBuilder.buildProjects(ProjectBuilder.java:277)
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.buildProjects(ProjectBuildApp.java:304)
        at com.ti.ccstudio.apps.internal.project.ProjectBuildApp.doRun(ProjectBuildApp.java:118)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp$1.run(BaseHeadlessApp.java:338)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2315)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2340)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:336)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:267)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)

每当我们使用 ${build_var:something}语法时、Windows 和 Linux 下的情形都是相同的。 请注意,如果没有这些选项,在 CLI 和非 CLI 构建中一切都能正常工作,因此这绝对是这种变量评估语法的问题。  它确实看起来像一个 Java/eclipse 错误、可以对此做些什么吗? 由于 程序 突然中断、我们没有找到任何解决方法。

可以对此问题采取一些措施吗?

Br

里卡多

编辑:我没有指定它、因为它在日志中可见、但在编写本文时 CCS 版本是最新版本、即 12.6.0.00008

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

    您好 Riccardo、

    请提供:

    1.使用确切(和完整)的语法通过 eclipsec 从 CLI 建立项目

    2.为您的项目提供三个.*project 文件

    谢谢

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

    您好、我可以通过电子邮件或私人消息发送这些消息吗? 我宁愿不公开共享它们。

    里卡多

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

    是的、您可以通过专有 E2E 消息发送。

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

    谢谢、我只是搞砸了您。

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

    谢谢、让我们继续讨论。

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

    此问题已通过 E2E 私人对话解决。

    对于遵循此线程的 用户,我们的 CLI 项目命令不正式支持客户构建人员。 建议使用工程预编译/编译后处理步骤来调用其他可执行文件、例如运行脚本等。  

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

    对于阅读的人来说,这根本没有解决我的问题。 此外、我们开始使用"客户"构建程序的原因(CCS 菜单中没有显示客户、 它只是标记为"构建程序";是不应该使用"高级"设置的企业客户?) 第一个原因是"CCS Build -> Steps"菜单中的预编译步骤功能不正常:编译不会等待这些预编译步骤完成、从而导致不必要的/错误 行为和损坏的编译。 这 在与 Ki 的私人对话中进行了更详尽的解释,同时讨论了"支持"功能的行是如何任意的。

    重申一下:我们开始使用这种所谓的"customer"编译器、因为"CCS build"菜单中的编译器已损坏。 我们至少需要使其中一个电路正常工作。

    希望这能够提供有关该问题的更多见解、

    里卡多