| Summary: | [Test Case 378] Relocatable SDK - C - build Hello World GTK C Autotols Project | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> | ||||
| Component: | devtools / tool chain | Assignee: | Laurentiu Palcu <laurentiu.palcu> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | denis, ioanax.grigoropol, jessica.zhang, meta.mr.watcher, meta.watcher, richard.purdie, samuli.piippo, sgw, yp.ep.watcher, yp.watcher | ||||
| Version: | 1.4 | ||||||
| Target Milestone: | 1.4 M4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Attachments: |
|
||||||
|
Description
Alexandru Georgescu
2013-02-04 13:17:48 UTC
It's not eclips plug-in but the underline cross gdb. I've tested with i586-poky-linux-gdb on my ubuntu 12.04 from commandline and got the same error. A simple test is to download toolchain (1.4_M1), e.g. target as x86. Extract to an arbitrary location, e.g. $HOME/test-toolchain. Source environment-setup file. Then just type i586-poky-linux-gdb. You'll see the errors instead of entering a gdb session. I'm also getting these lines from command line: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] ImportError: No module named site More note: seems it's related to relocatable SDK if install under default location there's no such error. Also, it seems related to host distro, on my 32bit 12.04 Ubuntu, install under the user specified location works. Patch on the oe-core ML. verified. First of all, sorry for being late - just noticed this "fix" made it into danny, which triggered my response. Unfortunately, I don't have much time to track master too closely, hence didn't see it before... I've been dealing with this issue in our product for quite some time. I tried adding PYTHONHOME into environment-setup script originally, but we eventually realized it's not a good place for it to be. The reason is, the Python setup (all the modules) we normally bundle in the Yocto generated toolchain is very limited - it just cannot compete with the system-wide host Python installation. When you use the toolchain, you still expect to depend on the host Python a lot. E.g. Ubuntu has a default 'command-not-found' handler calling a Python library. Few other system commands expect their Python modules to be available. So, setting PYTHONHOME to point to our limited Python setup just for gdb and/or few other commands breaks a lot of other things. What I ended up doing is creating a small wrapper for gdb, which sets PYTHONHOME and calls gdb.real binary. Can be done for other tools in the toolchain, that require Python. This way when using gdb from the toolchain, we get our Python with its modules loaded. When using other non-toolchain commands or tools, the default system-wide Python is used. For gdb there is simpler solution: http://patches.openembedded.org/patch/50559/ Gdb already does relocation of the python path, we only needed to give correct path for it work. |