Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Internal error building project
Internal error building project [message #1062825] Mon, 10 June 2013 19:45 Go to next message
Steven Meixner is currently offline Steven Meixner
Messages: 1
Registered: June 2013
Junior Member
When building a C/C++ project for the first time it builds or cleans. However, the next time I receive an error:

Errors occurred during the build.
Errors running builder 'CDT Builder' on project '<PROJECT NAME>'.
java.lang.NullPointerException


This seems to be an extension of this bug/thread http://www.eclipse.org/forums/index.php/t/329034/

I have used both the latest version of Eclipse with CDT and the stand alone C/C++ version

Quote:
Eclipse IDE for C/C++ Developers

Version: Juno Service Release 2
Build id: 20130225-0426

Eclipse C/C++ Development Tools

Version: 8.1.2.201302132326


The log produces this each time it happens:

Quote:
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 4 0 2013-06-10 16:35:25.257
!MESSAGE Internal error building project expat configuration Windows
!STACK 0
java.lang.NullPointerException
at org.eclipse.cdt.managedbuilder.internal.core.AdditionalInput.needsRebuild(AdditionalInput.java:345)
at org.eclipse.cdt.managedbuilder.internal.core.InputType.needsRebuild(InputType.java:1674)
at org.eclipse.cdt.managedbuilder.internal.core.Tool.needsRebuild(Tool.java:3389)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildStep.needsRebuild(BuildStep.java:93)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildDescription$RebuildStateSynchronizer.visit(BuildDescription.java:302)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:151)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:143)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:159)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:159)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.doAccept(BuildDescriptionManager.java:133)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.accept(BuildDescriptionManager.java:127)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildDescription.synchRebuildState(BuildDescription.java:428)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildDescription.initDescription(BuildDescription.java:764)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildDescription.init(BuildDescription.java:814)
at org.eclipse.cdt.managedbuilder.internal.buildmodel.DefaultBuildDescriptionFactory.createBuildDescription(DefaultBuildDescriptionFactory.java:45)
at org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager.createBuildDescription(BuildDescriptionManager.java:107)
at org.eclipse.cdt.managedbuilder.core.InternalBuildRunner.invokeBuild(InternalBuildRunner.java:104)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:753)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:513)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:459)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
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:53)


If I go into the project properties -> c/c++ build -> Click apply, it will work again but on the second attempt it gives the same errors as before.

I am using Mingw on windows 8 64bit but building as a 32bit application if any of that may matter.

Thanks,

Steve
Re: Internal error building project [message #1240174 is a reply to message #1062825] Wed, 05 February 2014 16:49 Go to previous message
Gregory Kramida is currently offline Gregory Kramida
Messages: 1
Registered: February 2014
Junior Member
Has anyone resolved this? I'm getting the exact same bug now...
Previous Topic:c++ and javascript in a single project
Next Topic:Invalid arguments to strncpy()
Goto Forum:
  


Current Time: Fri Apr 18 16:43:42 EDT 2014

Powered by FUDForum. Page generated in 0.02310 seconds