Eclipse Oxygen.2 Cmake compilation is broken.
After the upgrade to Eclipse Oxygen.2 my IDE stopped working and also adding the eclipse version to the cmake command line does not allow it to compile correctly.
First error was:
!MESSAGE NullPointerException !STACK 0 java.lang.NullPointerException at java.util.HashMap.putMapEntries(HashMap.java:501) at java.util.HashMap.putAll(HashMap.java:785) at org.eclipse.cdt.make.core.MakeBuilder.getEnvironment(MakeBuilder.java:249) at org.eclipse.cdt.make.core.MakeBuilder.invokeMake(MakeBuilder.java:194) at org.eclipse.cdt.make.core.MakeBuilder.build(MakeBuilder.java:108) 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:330) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:405) at org.eclipse.core.internal.resources.Project$1.run(Project.java:566) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:544) at org.eclipse.core.internal.resources.Project.build(Project.java:120) at org.eclipse.cdt.make.internal.core.MakeTarget$1.run(MakeTarget.java:356) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.eclipse.cdt.make.internal.core.MakeTarget.build(MakeTarget.java:369) at org.eclipse.cdt.make.ui.TargetBuild$1$1.run(TargetBuild.java:119) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.eclipse.cdt.make.ui.TargetBuild$1.run(TargetBuild.java:122) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
after the first fixup the compilation is performed ok, but the linker fails with:
collect2: fatal error: cannot find 'ld'
Googling for the issue I reached this eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=529121 that is in some way trying to solve the issue.
From my understanding, I am an eclipse user and a CMake user, but I completly ignore what is happening behind the scenes, it seems to me something like that an environment is completly missing and thereof the compilation cannot succeed.
It looks like there are other differences in the updated version of eclipse, I discover this bug #17590 (closed) that demostrates that something that was working with previous version of eclipse does not work anymore.