| Summary: | NullPointerException when setting sysroot in Window->Preferences | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Björn Arnelid <bjorn.arnelid> |
| Component: | eclipse-plugin | Assignee: | Jessica <jessica.zhang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | Medium | CC: | alexandru.c.georgescu, david.c.nystrom, david.nystrom, ioanax.grigoropol, yp.ep.watcher, yp.watcher |
| Version: | 1.2 | ||
| Target Milestone: | 1.3 M5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Björn Arnelid
2012-08-28 09:16:13 UTC
Workaround for me is to create a folder in <toolchaindir>/sysroot named <architecture>-pokysdk-linux. Patch posted on yocto ML. http://permalink.gmane.org/gmane.linux.embedded.yocto.general/8861 Hi David, Send the question to your patch, please help clarify how you generate your toolchain that's not following the naming convention. Thanks, Jessica Laurentiu Serban, asked me to followup, so here it goes:
In cases where toolchains are created with ${DISTRO} != "poky", this nullpointerexception is seen,
This patch has already been merged to master, and judging by the git tags, will be apart of the 1.3 release I guess.
Br,
David
fixed by commit: http://git.yoctoproject.org/cgit.cgi/eclipse-poky/commit/?id=26692a18a8245561cefcab1402b93b6325c36bed Hi David, I am trying to verify this bug but I need some additional details. Can you tell me what exact distro are you using, and also what eclipse plugin version you were using? Thanks, Alex. This bug is fixed in yocto plugin 1.3.
It was a problem using yocto plugin 1.2 and earlier on any version of eclipse running on any version of Linux.
As David described you need to create a toolchain where ${DISTRO} is something other then "poky" to get this error.
I first encountered this bug using eclipse 3.8.1, Yocto plugin 1.2 on Ubuntu 12.04 LTS
Tested with 78983e939ab17f02f8911c8b0d0e326b419856b9 on master. In order to verify, I modified the DISTRO to be other than poky. To do so, the following have to be modified in poky: 1. chose a name different than poky for DISTRO, e.g: pob 2. Change in conf/local.conf DISTRO = "poky" to: DISTRO = "pob" 3. Copy meta-yocto/conf/distro/poky.conf to meta-yocto/conf/distro/pob.conf 4. In meta-yocto/conf/distro/pob.conf change the following parameters to other than standard, for ex: DISTRO = "pob" SDK_VENDOR = "-pobsdk" TARGET_VENDOR = "-poby" This way the folders under sysroots after sdk is installed will have a different name than "-pokysdk-linux" 5. Source the poky environment: $ source oe-init-build-env 6. Build the standalone toolchain: $ bitbake meta-toolchain-sdk 7. Install the resulted toolchain. In the latest eclipse (juno) with the latest plugin (http://autobuilder.yoctoproject.org/pub/nightly/20121102-2/eclipse-plugin/) the standalone toolchain created can be imported and used to create and build a new helloworld project. In eclipse indigo with the 1.2 eclipse plugin release (http://downloads.yoctoproject.org/releases/eclipse-plugin/1.2) and the above toolchain created does not exactly show me a NullPointerException but when pressing OK, a popup window appears and disappears immediately and then the Yocto Project ADT window closes without saving the changes. Given that using the fix and latest eclipse-plugin and eclipse juno I could build successfully a Hello World application, we can close the bug. |