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.

java.lang.NullPointerException with a CCS4 project imported into CCS5

Other Parts Discussed in Thread: CCSTUDIO, OMAP-L138

Hello,

I have a problem with a project created in CCS4 and then imported in the latest CCS5.4.  I can build it without any issue in CCS4 but I have a strange behaviour with CCS5.

First there is a linking issue with some .obj files which are not found but it is not the purpose of this topic I should be able to fix it by myself but I'm stuck with another issue.

Right after cleaning the project in order to rebuilt it I have systematically a NullPointerException error message, I got the following log just bellow:

!ENTRY org.eclipse.core.resources 4 75 2013-06-19 11:40:24.347
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 4 75 2013-06-19 11:40:24.347
!MESSAGE Errors running builder 'CDT Builder' on project 'dsp_sw'.
!STACK 0
java.lang.NullPointerException
 at org.eclipse.cdt.managedbuilder.internal.core.Tool.getOutputExtension(Tool.java:2355)
 at com.ti.ccstudio.project.core.internal.build.temp.GnuMakefileGenerator.addRuleForSource(GnuMakefileGenerator.java:2125)
 at com.ti.ccstudio.project.core.internal.build.CCSMakefileGenerator.addRuleForSource(CCSMakefileGenerator.java:925)
 at com.ti.ccstudio.project.core.internal.build.temp.GnuMakefileGenerator.addFragmentMakefileEntriesForSource(GnuMakefileGenerator.java:1857)
 at com.ti.ccstudio.project.core.internal.build.CCSMakefileGenerator.addFragmentMakefileEntriesForSource(CCSMakefileGenerator.java:813)
 at com.ti.ccstudio.project.core.internal.build.temp.GnuMakefileGenerator.addSources(GnuMakefileGenerator.java:1762)
 at com.ti.ccstudio.project.core.internal.build.temp.GnuMakefileGenerator.populateFragmentMakefile(GnuMakefileGenerator.java:617)
 at com.ti.ccstudio.project.core.internal.build.temp.GnuMakefileGenerator.regenerateMakefiles(GnuMakefileGenerator.java:570)
 at com.ti.ccstudio.project.core.internal.build.CCSMakefileGenerator.regenerateMakefiles(CCSMakefileGenerator.java:358)
 at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performMakefileGeneration(CommonBuilder.java:1006)
 at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performPrebuildGeneration(CommonBuilder.java:873)
 at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:748)
 at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:510)
 at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:459)
 at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
 at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
 at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
 at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
 at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
 at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
 at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
 at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
 at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Once I got this exception I can't clean or build the project anymore... I have to clean the workspace and to reimport the project again to be able to try to build it again (once).

Thanks,

Mickaël