Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem with custom build step
Problem with custom build step [message #930278] Tue, 02 October 2012 02:56 Go to next message
Eclipse User
Hello,

In a project I tried to add a custom build step for a source file:

Additional input file name(s):
<Empty>

Output file name(s):
../src/df3441/%.o

Command:
ccv850 -dTPI -dDATALOG -dNECV850 -w -noundefined -elf -b0 -cg_underscore
-c "$<" -o "$@" -I$(dir $<) -I$(dir $<)/v850_include

Using these settings I can build the application once. But the second
(and succeding) time(s) I try to build I get the following error:

!ENTRY org.eclipse.core.resources 4 75 2012-10-02 08:45:19.256
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 4 75 2012-10-02 08:45:19.256
!MESSAGE Errors running builder 'CDT Builder' on project 'T-Recs'.
!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.core.ResourceConfiguration.needsRebuild(ResourceConfiguration.java:865)
at
org.eclipse.cdt.managedbuilder.internal.core.Configuration.needsRebuild(Configuration.java:1794)
at
org.eclipse.cdt.managedbuilder.internal.core.Configuration.needsRebuild(Configuration.java:1777)
at
org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performCleanning(CommonBuilder.java:945)
at
org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performPrebuildGeneration(CommonBuilder.java:867)
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:53)

I am using the following version of Eclipse:

Version: Juno Service Release 1
Build id: 20120920-0800
Re: Problem with custom build step [message #934115 is a reply to message #930278] Fri, 05 October 2012 13:11 Go to previous messageGo to next message
John Stile is currently offline John Stile
Messages: 18
Registered: July 2009
Junior Member
I found similar behavior.

See if this helps:
http://www.eclipse.org/forums/index.php/t/380888/

In summery, once I enabled a build step on a resource file, builds had errors, and even closing and opening the project had errors. After this, to fix my project I had to edit .cproject file, changing every occurrence of 'override' to 'disable', and then reopen the project in eclipse.

The work-around, until I heard a better idea, is to set the build step at the project level, which isn't great, because I would prefer the build step only run when the resource file changes.
Re: Problem with custom build step [message #1001640 is a reply to message #934115] Thu, 17 January 2013 00:25 Go to previous message
Zane Ji is currently offline Zane Ji
Messages: 2
Registered: January 2013
Junior Member
Or you can remove all
<additionalInput kind="additionalinputdependency"/>
from .cproject.
Previous Topic:make error with -l library flag
Next Topic:How to hide/collapse inactive code in Eclipse Juno?
Goto Forum:
  


Current Time: Fri Jul 25 23:23:58 EDT 2014

Powered by FUDForum. Page generated in 0.07684 seconds