Bug 3550 - Errors appear in eclipse when debugging and using a relocated SDK
Summary: Errors appear in eclipse when debugging and using a relocated SDK
Status: RESOLVED WORKSFORME
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 1.4 M2
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-07 13:06 UTC by Alexandru Georgescu
Modified: 2012-12-11 23:18 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
debug err (169.53 KB, image/jpeg)
2012-12-07 13:06 UTC, Alexandru Georgescu
no flags Details
adt_installer.log (6.07 KB, text/plain)
2012-12-08 01:03 UTC, Jessica
no flags Details
eclipse debug view (143.54 KB, image/png)
2012-12-10 20:05 UTC, Jessica
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2012-12-07 13:06:49 UTC
Created attachment 972 [details]
debug err

An error (see attachment) appears in Eclipse when using a toolchain that is not installed in it's default path.

ENVIRONMENT USED:
Fedora 17 64bit
Build: http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/
Commit: 381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7
ADT installer: http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/adt_installer-QA/
ECLIPSE PLUGIN:http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/eclipse-plugin/


STEPS TO REPRODUCE
1. Configure eclipse with the Eclipse plugin
2. Install ADT in non default location (other than /opt/poky/1.3+snapshot)
3. Configure sysroot, toolchain, kernel for Eclipse.
4. Create a Hello World C project
5. Reconfigure, build.
6. Launch QEMU
7. Try to debug: Run->Debug configurations


EXPECTED RESULTS
7. Debug perspective is opened and the user can Debug

ACTUAL RESULTS
7. The following errors apppear in a popup window(see attachment):

Error creating session
Could not find platform independent libraries <prefix>
Could not find platform independent libraries <prefix>
Could not find platform independent libraries <prefix>


OTHER COMMENTS
If sysroot is installed in the default location, the debug can be performed.
Comment 1 Laurentiu Palcu 2012-12-07 16:08:34 UTC
It appears that the problem appears because Eclipse does not set the host_alias environment variable at all. For example, if the SDK is for i586, then host alias should be set to i586-poky-linux.

I compiled the project just fine using the following steps (in command line):

source ../sdk/environment-setup-i586-poky-linux
export host_alias=i586-poky-linux
./autogen.sh
make

Jessica? Who do you think should handle this? You or Ioana?
Comment 2 Jessica 2012-12-08 00:46:52 UTC
Laurentiu,

Why we have to set the host_alias? is it something changed at certain stage? If it's required why we can't add the export in the environment setup script? But I'll look into eclipse side if it's missing.
Comment 3 Jessica 2012-12-08 01:03:56 UTC
Created attachment 973 [details]
adt_installer.log
Comment 4 Jessica 2012-12-08 01:08:08 UTC
Hi Laurentiu,

Were you able to install toolchain using the adt-installer provided below in the bug? I'm running issues with pseudo binary under host sysroot, please check the installer log.
Comment 5 Jessica 2012-12-10 20:03:37 UTC
I've tested against the nightly build of http://downloads.yoctoproject.org/autobuilder-images/nightly/20121207-1/adt_installer-QA/

Since as I've stated I couldn't successfully install the toolchain and sysroot using the adt-installer build with original post.

Everything works, my toolchain is installed under /home/jzhang/test-toolchain and sysroot is under the default of /home/jzhang/test-yocto/arm.
Comment 6 Jessica 2012-12-10 20:05:58 UTC
Created attachment 976 [details]
eclipse debug view
Comment 7 Jessica 2012-12-11 23:18:38 UTC
Laurentiu,

I've update the project templates README file, so basically if you do ./autogen.sh $CONFIGURE_FLAGS, then make, the project will build correctly from commandline.  In this way, we don't need to add the HOST_ALIAS in environment setup file