主题中讨论的其他器件: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