Bug 69112 - Can not use build targets from old CDT version (1.2.1)
Summary: Can not use build targets from old CDT version (1.2.1)
Status: VERIFIED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Sean Evoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 04:45 EDT by Han Hoekstra CLA
Modified: 2004-08-31 10:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han Hoekstra CLA 2004-07-01 04:45:44 EDT
I have 2 custom toolchains, which I use in the old CDT (1.2.1) and Eclipse 
version 2. Now I am trying out the new versions of Eclipse (3.0RC1) and CDT 
(2.0RC2), but my toolchains don't work anymore. First I just tried to copy them 
to the plugin directory, which didn't work and after that I recreated them in 
the new Eclipse/CDT using the procedures as described in the 
document : "Managed Build System Extensibility", I did not enter everything 
again, instead I just copied the contents of the old XML file to the new one, 
but this gave the same problem.
The problem is that building does not work and also I can not change any 
settings I have defined in my toolchain file.

If my toolchain file is required, just drop me an e-mail.

The log file says the following :
================================================================================
!SESSION Jul 01, 2004 10:28:25.250 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -application org.eclipse.ui.ide.workbench

!ENTRY org.eclipse.core.runtime 4 2 Jul 01, 2004 10:28:25.250
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.cdt.managedbuilder.internal.core.GeneratedMakefileBuilder.build
(GeneratedMakefileBuilder.java:237)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:564)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:202)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:229)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:232)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop
(BuildManager.java:268)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:297)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild
(AutoBuildJob.java:155)
	at org.eclipse.core.internal.events.AutoBuildJob.run
(AutoBuildJob.java:212)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

!ENTRY org.eclipse.core.resources 2 75 Jul 01, 2004 10:28:25.296
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 2 75 Jul 01, 2004 10:28:25.296
!MESSAGE Errors running builder "Generated Makefile Builder" on project Test.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 2 75 Jul 01, 2004 10:28:25.296
!MESSAGE java.lang.NullPointerException encountered while running Generated 
Makefile Builder.
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.cdt.managedbuilder.internal.core.GeneratedMakefileBuilder.build
(GeneratedMakefileBuilder.java:237)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:564)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:202)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:229)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:232)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop
(BuildManager.java:268)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:297)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild
(AutoBuildJob.java:155)
	at org.eclipse.core.internal.events.AutoBuildJob.run
(AutoBuildJob.java:212)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

!ENTRY org.eclipse.core.runtime 4 2 Jul 01, 2004 10:28:44.187
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.cdt.managedbuilder.internal.core.GeneratedMakefileBuilder.build
(GeneratedMakefileBuilder.java:237)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:564)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:202)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:229)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:232)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop
(BuildManager.java:268)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:297)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild
(AutoBuildJob.java:155)
	at org.eclipse.core.internal.events.AutoBuildJob.run
(AutoBuildJob.java:212)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

!ENTRY org.eclipse.core.resources 2 75 Jul 01, 2004 10:28:48.656
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 2 75 Jul 01, 2004 10:28:48.656
!MESSAGE Errors running builder "Generated Makefile Builder" on project Test.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 2 75 Jul 01, 2004 10:28:48.656
!MESSAGE java.lang.NullPointerException encountered while running Generated 
Makefile Builder.
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.cdt.managedbuilder.internal.core.GeneratedMakefileBuilder.build
(GeneratedMakefileBuilder.java:237)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:564)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:202)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:229)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:232)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop
(BuildManager.java:268)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:297)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild
(AutoBuildJob.java:155)
	at org.eclipse.core.internal.events.AutoBuildJob.run
(AutoBuildJob.java:212)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Comment 1 Sean Evoy CLA 2004-07-06 13:33:31 EDT
The target definition has to be updated to include the following line:

makefileGenerator="org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenera
tor"

This was a test case I missed. When the build system tries to implement a 
makefile generator that implements IManagedBuilderMakefileGenerator, it will 
return NULL if one is not defined. It would be better if the Gnu generator was 
returned as the default.

Will add this check for the next release. Should update the release notes with 
this.
Comment 2 Kleo Hapitas CLA 2004-07-07 16:55:51 EDT
PR was not targeted to any particular release. Changing target milestone to 2.1
Comment 3 Sean Evoy CLA 2004-07-21 14:16:51 EDT
Changing target milestone. Will be fixed in next release.
Comment 4 Sean Evoy CLA 2004-08-04 17:13:35 EDT
Fixed in the head and 2.0.1 by returning the Gnu makefile generator if nothing 
is specified for the target
Comment 5 Tanya Wolff CLA 2004-08-27 17:48:43 EDT
Han, if this works for you now, could you mark the defect verified? Or send me
your toolchain and I'll try it.
Comment 6 Tanya Wolff CLA 2004-08-31 10:47:40 EDT
Verified fixed. I've tried building your target definition, Han, that doesn't
have the line:
makefileGenerator="org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenera
tor"
and there isn't any more NPE in the log. Can you mark this defect verified as I
don't have the button, not being the reporter. Thanks