| Summary: | Failed to run and debug a project to qemux86 in Eclipse | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Valentin Hangan <valentinx.hangan> | ||||||||||
| Component: | devtools / tool chain | Assignee: | brian avery <brian.avery> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Valentin Hangan <valentinx.hangan> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | Medium | CC: | brian.avery, ernstp, humberto.ibarra.lopez, meta.mr.watcher, meta.watcher, richard.purdie, sgw, tim.orling | ||||||||||
| Version: | 2.1 | ||||||||||||
| Target Milestone: | 2.1.2 | ||||||||||||
| Hardware: | x86 | ||||||||||||
| OS: | Multiple | ||||||||||||
| Whiteboard: | Krogoth backport needed | ||||||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||||||
| Verified: | Documentation change: | Don't know | |||||||||||
| Attachments: |
|
||||||||||||
|
Description
Valentin Hangan
2016-03-31 13:04:34 UTC
Created attachment 3082 [details]
run-project-results
Created attachment 3083 [details]
debug-project-results
To be clear, the screenshot shows there are no execute permissions on the transferred binary. Given the others errors reported, there may be other issues too. Created attachment 3123 [details]
PowerTop
On 2.1: 296dfbc9b3a3c0ed64b8e748c2868928b9c2aa8b I was unable to start PowerTOP.
Due RP last comment I think this bug is related.
Steps to reproduce:
1. Launch a qemu of target enviroment
2. Expose YoctoTools -> PowerTop to connect the target
3. Create ssh connection.
4. Run PowerTop
When you try to run PowerTop the process get stuck at "Generating powertop data file remotely"
In the attachment you can see the warnings from terminal.
Have a similar problem, not sure if my input helps here. I'm working with 1.8.2 and get the exact same gdbserver error window when I try to debug with GTK C Autotools project. Console shows binding problem: Last login: Thu Jun 2 20:06:52 2016 from 192.168.7.1 echo $PWD'>' export DISPLAY=:0.0;gdbserver :2345 /home/root/myapp45;exit root@qemux86:~# echo $PWD'>' /home/root> root@qemux86:~# export DISPLAY=:0.0;gdbserver :2345 /home/root/myapp45;exit Can't bind address: Address already in use. Exiting logout ANSI C Autotools and ANSI C++ Autotools do not throw these errors for me, only GTK. Also, this is only a debug problem since the run works fine. Forgot to point out that binary is successfully created. It works from target, but eclipse is just unable to debug it. Still happening on 2.2 M1 fixed and merged into master. Still needs to be backported to krogoth. For a workaround in case you are on a version without the fix is to change: /etc/profile in the image or meta/recipes-core/base-files/base-files/profile if you are building an image from: if [ -x /usr/bin/resize ];then resize >/dev/null fi to if [ -x /usr/bin/resize ];then # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), # otherwise we confuse e.g. the eclipse launcher which tries do use ssh test `tty | cut -c1-8` = "/dev/tty" && resize >/dev/null fi fixed in master: commit 5aca5bc9a13d9d4a477cfd2d04edbcc8a8a0e412 will close when fix goes into krogoth. master fixed in: 5aca5bc9a13d9d4a477cfd2d04edbcc8a8a0e412 krogoth fixed in: eef3fb99d0e3f52ffb5d8676f9ac11e546aad511 I think this causes /etc/profile: line 34: test: too many arguments Starting Xserver /etc/profile: line 34: test: too many arguments on every boot now... reopened due to Ernst's issue. Ernst: which image and version and machine are you using? This line is testing to make sure we don't run busybox's resize if we are not logging in over serial: test "`tty | cut -c1-8`" = "/dev/tty" My guess is on your image tty | cut -c1-8 is returning more than one thing. could you run the above and let me know what it returns on the image? on the image you can also try replacing test "`tty | cut -c1-8`" = "/dev/tty" with test "`tty | cut -c1-8| grep tty | head -1`" = "/dev/tty" ---- Temp workaround: Just remove if [ -x /usr/bin/resize ];then # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), # otherwise we confuse e.g. the eclipse launcher which tries do use ssh test "`tty | cut -c1-8`" = "/dev/tty" && resize >/dev/null fi from /etc/profile. I'm running Krogoth 2.1.1. A fix for this could be nice to have in Krogoth 2.1.2... I'm running on a custom machine based on Boundary devices Sabrelite/Nitrogen 6x. Kernel commandline has console=ttymxc1,115200 . Now if I run test `tty | cut -c1-8` = "/dev/tty" in a shell I don't get any error, so I'm guessing that the bootup environment is slightly different. Let me see if I can grab that... Ok what happens is that I get test not a tt = /dev/tty /etc/profile: line 35: test: too many arguments so some extra quotes should fix that. Like: test "`tty | cut -c1-8`" = "/dev/tty" && resize >/dev/null I also found the underlying issue, I'm missing CONFIG_LEGACY_PTYS in my defconfig. The "test: too many arguments" issue in qemu should be fixed in master with following comment unless I misunderstood the issue. commit 1100af93cb07caf24d568c039d52fb0c80714c30 Author: Jussi Kukkonen <jussi.kukkonen@intel.com> Date: Tue Aug 30 11:32:07 2016 +0300 base-files: Add shell test quoting tty can return "not a tt" which results in warnings when /etc/profile is executed. (From OE-Core rev: eed586dd238efe859442b21b425f04e262bcdb2b) fixed in f7e1cd9f85f8bd5f6ea92e747a80786a73b2aa0e krogoth 2.1.2 |