Bug 2927 - the new Cross-Toolchain does not work with eclipse (Juno)
Summary: the new Cross-Toolchain does not work with eclipse (Juno)
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.3 M4
Assignee: Ioana Grigoropol
QA Contact:
URL: http://autobuilder.yoctoproject.org/p...
Whiteboard: (Scheduled)
Depends on:
Blocks:
 
Reported: 2012-08-09 14:50 UTC by Alexandru Georgescu
Modified: 2012-08-28 13:38 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2012-08-09 14:50:23 UTC
The cross-toolchain already build by autobuilder does not work with Eclipse.

IMAGE USED:
http://autobuilder.yoctoproject.org/pub/nightly/20120808-1/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120808.sh

STEPS TO REPRODUCE:
1. I have installed ADT with adt-insatller (build 0808-1).
2. I set up eclipse (Juno) with the new toolchain, sysroot, kernel image. I could build a new C ADT project.

3. I downloaded the 0808-1 toolchain file (specified above) and extracted it.
4. In eclipse I modified the sysroot with the new sysroot folder which was extracted at step 3.
5. Created a new project ( e.g. C Autotools project).
6. Reconfigure project, then try to build the project


EXPECTED RESULT:
The project can be build successful

ACTUAL RESULT(from Eclipse):

Description	Resource	Path	Location	Type
make: *** No rule to make target `all'.			 	C/C++ Problem
in `/home/alex/workspactest7/dfsfsdf':	dfsfsdf		-1	Configure Problem
C compiler cannot create executables	dfsfsdf		-1	Configure Problem


OTHER:
The toolchain works fine when installed with adt-installer. When using the Cross-Toolchain installation by hand, the errors appear.
Comment 1 Laurentiu Palcu 2012-08-09 15:32:08 UTC
It looks like it happens only on Alex's machine. The tollchain binaries fail with "Segmentation Fault". The same archive, works on other machines... Needs more investigations.
Comment 2 Laurentiu Palcu 2012-08-16 10:06:58 UTC
I found the root cause of this. It looks like toolchain binaries had the RPATHS hardcoded to the default path. If, for example, one installed the toolchain in the default location, /opt/poky/1.2+snapshot, and then tried an install in another location, the later install's toolchain binaries would search for libraries in the first location. If the libraries are found and loaded, a segmentation fault will occur. If the /opt/poky/1.2+snapshot directory does not exist at all, then everything is fine.

The problem was in package.bbclass, the rpath_replace was called only for nativesdk packages and it should be called for cross-canadian packages too.

I will send a fix shortly.
Comment 3 Ioana Grigoropol 2012-08-28 12:13:42 UTC
LaurentiuP's latest patch set fixes this issue.
Comment 4 Alexandru Georgescu 2012-08-28 13:38:25 UTC
Setting to Verified - Fixed.