Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error message on build...
Error message on build... [message #1768858] Mon, 24 July 2017 07:58 Go to next message
Eclipse UserFriend
Hi All.

I've installed Eclipse (v4.7.0) and I'm trying to use it to cross-compile a project for ARM. I've imported the project as a C/C++ project with a makefile.

The project builds fine form the command line.

Trying to build it inside Eclipse, I get a fantastically descriptive error message :-

Quote:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'VanillaMQ80'.
org.eclipse.cdt.core.ErrorParserManager.deferDeDuplication()V


Can anyone give me some pointers as to what that means?

Thanks!

Vic.
Re: Error message on build... [message #1768876 is a reply to message #1768858] Mon, 24 July 2017 10:28 Go to previous messageGo to next message
Eclipse UserFriend
That means you have hit a bug :-( in my code. Don't know what the error message means, but I recognize the "deferDeDuplication".

Is there anything in the error log? (workspace/.metadata/.log)
Re: Error message on build... [message #1768877 is a reply to message #1768876] Mon, 24 July 2017 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Do you have any third-party plugins, or is this a clean install of Eclipse for C/C++?
Re: Error message on build... [message #1768880 is a reply to message #1768876] Mon, 24 July 2017 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Jonah Graham wrote on Mon, 24 July 2017 14:28
Is there anything in the error log? (workspace/.metadata/.log)


There is once I start looking at the right logfile :-)

Quote:
!ENTRY org.eclipse.core.resources 4 2 2017-07-24 14:05:52.657
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.re
sources".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.cdt.core.ErrorParserManager.deferDeDupl
ication()V
at org.eclipse.cdt.managedbuilder.core.ExternalBuildRunner.invokeExterna
lBuild(ExternalBuildRunner.java:130)
at org.eclipse.cdt.managedbuilder.core.ExternalBuildRunner.invokeBuild(E
xternalBuildRunner.java:72)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(Comm
onBuilder.java:753)
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:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:399)
at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

!ENTRY org.eclipse.core.resources 4 75 2017-07-24 14:05:52.702
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 4 75 2017-07-24 14:05:52.702
!MESSAGE Errors running builder 'CDT Builder' on project 'VanillaMQ80'.
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.cdt.core.ErrorParserManager.deferDeDuplication()V
at org.eclipse.cdt.managedbuilder.core.ExternalBuildRunner.invokeExternalBuild(ExternalBuildRunner.java:130)
at org.eclipse.cdt.managedbuilder.core.ExternalBuildRunner.invokeBuild(ExternalBuildRunner.java:72)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:753)
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:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:399)
at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)


Does that help?

Vic.




Re: Error message on build... [message #1768881 is a reply to message #1768877] Mon, 24 July 2017 10:36 Go to previous messageGo to next message
Eclipse UserFriend
Jonah Graham wrote on Mon, 24 July 2017 14:28
Do you have any third-party plugins, or is this a clean install of Eclipse for C/C++?


It's a nearly-clean install :-)

I added some ARM stuff as per the instructions at section 2.4 here

Vic.
Re: Error message on build... [message #1768883 is a reply to message #1768881] Mon, 24 July 2017 10:54 Go to previous messageGo to next message
Eclipse UserFriend
OK, I see the problem, there is a version dependency problem going on here. Can you confirm the versions of three plug-ins:

org.eclipse.cdt.ui
org.eclipse.cdt.core
org.eclipse.cdt.managedbuilder.core

These are the versions I expect:
$ ll org.eclipse.cdt.ui_* org.eclipse.cdt.core_* org.eclipse.cdt.managedbuilder.core_*
-rw-r--r-- 1 jonah jonah 5764990 Jun 20 18:19 org.eclipse.cdt.core_6.3.1.201706122201.jar
-rw-r--r-- 1 jonah jonah 1344191 Jun 20 18:19 org.eclipse.cdt.managedbuilder.core_8.5.0.201706122201.jar
-rw-r--r-- 1 jonah jonah 6224945 Jun 20 18:19 org.eclipse.cdt.ui_6.2.0.201706122201.jar

Re: Error message on build... [message #1768884 is a reply to message #1768883] Mon, 24 July 2017 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Now if your versions are incorrect, that indicates that within CDT there is some version dependency problems.

I will try and replicate based on the ARM link you provided to see if I can understand how the versions broke.
Re: Error message on build... [message #1768886 is a reply to message #1768884] Mon, 24 July 2017 11:17 Go to previous messageGo to next message
Eclipse UserFriend
I have had a run through the blog you linked to. I can't reproduce the problem. I do note that the blog references Luna for Base Eclipse C/C++ (i.e. the version that was new at the time the blog was written). This is instead of Eclipse 4.7.0 (Oxygen) that just came out.

What I did was download and install https://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/oxygenr in step 2.
Re: Error message on build... [message #1768888 is a reply to message #1768883] Mon, 24 July 2017 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Jonah Graham wrote on Mon, 24 July 2017 14:54
$ ll org.eclipse.cdt.ui_* org.eclipse.cdt.core_* org.eclipse.cdt.managedbuilder.core_*


OK, that's cracked the immediate problem. I had this :-

ll org.eclipse.cdt.ui_* org.eclipse.cdt.core_* org.eclipse.cdt.managedbuilder.core_*
-rw-rw-r-- 1 vic vic 5147502 Jul 24 11:06 org.eclipse.cdt.core_5.9.1.dist.jar
-rw-rw-r-- 1 vic vic 5764990 Jul 24 11:05 org.eclipse.cdt.core_6.3.1.201706122201.jar
-rw-rw-r-- 1 vic vic 1344191 Jul 24 11:05 org.eclipse.cdt.managedbuilder.core_8.5.0.201706122201.jar
-rw-rw-r-- 1 vic vic 6224945 Jul 24 11:05 org.eclipse.cdt.ui_6.2.0.201706122201.jar


Getting rid of that old version has stopped the error.

Now it just does nothing - so there's the next thing I need to debug.

Thanks for your help!

Vic.

Re: Error message on build... [message #1768956 is a reply to message #1768888] Tue, 25 July 2017 04:16 Go to previous messageGo to next message
Eclipse UserFriend
I don't understand where "org.eclipse.cdt.core_5.9.1.dist.jar" came from :-(

Simply deleting it will likely lead to other problems. The org.eclipse.cdt.core version 5.9.1 is the JAR that shipped with Luna, but it should have had a date stamp and not "dist".

If you have a way of replicating getting into the bad state I can try to take it from there.

---

Now on to your new problem. Please let me know if I can help.
Re: Error message on build... [message #1768957 is a reply to message #1768956] Tue, 25 July 2017 04:18 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Simply deleting it will likely lead to other problems


By that I mean the plug-in needs to be uninstalled, or the newer version needs to be installed again.
Re: Error message on build... [message #1768964 is a reply to message #1768956] Tue, 25 July 2017 04:49 Go to previous messageGo to next message
Eclipse UserFriend
Jonah Graham wrote on Tue, 25 July 2017 08:16
I don't understand where "org.eclipse.cdt.core_5.9.1.dist.jar" came from :-(


I originally installed Eclipse from the Ubuntu repository - but that's a 5-year old version that's no use to me. I then added a newer ppa to get Oxygen; it appears there is some cross-contamination...

Vic.

Re: Error message on build... [message #1768968 is a reply to message #1768964] Tue, 25 July 2017 05:01 Go to previous message
Eclipse UserFriend
Ahh, OK, I use Ubuntu, but I don't particularly recommend using the package manager in this case. Among other things, AFAIK they rebuild Eclipse rather than simply redistribute.

Can you try downloading/extracting Eclipse from https://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/oxygenr as the starting point please?
Previous Topic:Problem: "Failed to execute MI command"
Next Topic:Well this has all gone horribly wrong,...
Goto Forum:
  


Current Time: Wed Mar 19 13:24:29 EDT 2025

Powered by FUDForum. Page generated in 0.10441 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top