Preconditions/Environment ------------------------- A CMake project built with Yocto plugin. There is an issue with generated file toolchain.cmake. For the variable CMAKE_FIND_ROOT_PATH, there is the first path to meta-ide-support/1.0-r3/recipe-sysroot-native/ and the second path is to tmp/sysroots/<value> (this is used as the sysroot in the plugin settings). I think that the first path should not be there at all. Triggering Action/Cause ----------------------- Try to build an executable for target platform. One scenario from the many possible: Linked tries to link googletest library from native path (x86) and it fails, because target executable is for arm. Expectation ----------- Path to `meta-ide-support/1.0-r3/recipe-sysroot-native/` is *not* generated for CMAKE_FIND_ROOT_PATH in the file toolchain.cmake Actual Result ------------- The path `meta-ide-support/1.0-r3/recipe-sysroot-native/` is generated for CMAKE_FIND_ROOT_PATH. Reproducibility --------------- 10/10 Other notes ----------- It is related to the source code - plugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/YoctoCMakeMakefileGenerator.java:239 The question is if "OECORE_NATIVE_SYSROOT" should be in the list findRootPathValues? And, if it has to be there, is the first position the correct one? Would not it be better to have it as the second/last one after "OECORE_TARGET_SYSROOT"?
Chin, Should be mostly straight-forward but if you have questions please ask David Reyna or Ross Burton.
I can provide you more support if needed. Would it be helpful if I create a patch and send to the mailing list?
Hi Lukas, > Would it be helpful if I create a patch and send to the mailing list? I would think that would be very helpful. I see that Chin Huat is very active at the moment in pushing fixes for the Eclipse plug-in, and a proposed patch could be very useful and timely. As you probably know, the mailing list just got moved to 'eclipse-yocto@yoctoproject.org". I am glad you are following up on this issue. I reported it directly to Tim Orling but had not filed a formal defect.
Patches would be most welcomed as I'm currently not very familiar with cmake, although this might be too late for 2.5 unless if something is flaming broken.
https://lists.yoctoproject.org/pipermail/eclipse-yocto/2018-May/000150.html
Eclipse got dropped from project support.
closing