Bug 4131

Summary: error when installing the cross toolchain
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: eclipse-pluginAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium+ CC: corneliux.stoicescu, ioanax.grigoropol, laurentiu.palcu, richard.purdie, yp.ep.watcher, yp.watcher
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2013-03-27 10:21:45 UTC
poky:bdca49274173153b1b0a72887de6321b4756b684
TOOLCHAIN:http://autobuilder.yoctoproject.org/pub/nightly/20130327-1/toolchain/x86_64/poky-eglibc-x86_64-x86_64-toolchain-gmae-1.3+snapshot-20130327.sh

STEPS TO REPRODUCE:
1. Download the above toolchain and try to install it like the following:

[tester@yocto-asus tmp2]$ bash poky-eglibc-x86_64-x86_64-toolchain-gmae-1.3+snapshot-20130327.sh 
Enter target directory for SDK (default: /opt/poky/1.3+snapshot): ./abilder
You are about to install the SDK to "/home/tester/tmp2/abilder". Proceed[Y/n]?y
Extracting SDK...done
Setting it up...Traceback (most recent call last):
  File "/home/tester/tmp2/abilder/relocate_sdk.py", line 208, in <module>
    arch = get_arch()
  File "/home/tester/tmp2/abilder/relocate_sdk.py", line 39, in get_arch
    ei_mag0,ei_mag1_3,ei_class = struct.unpack("<B3sB11x", e_ident)
struct.error: unpack requires a string argument of length 16
SDK could not be set up. Relocate script failed. Abort!
[tester@yocto-asus tmp2]$ 

EXPECTED RESULTS:
The toolchain is installed successfully

ACTUAL RESULTS:
The installation is stopped by some errors.
Comment 1 Alexandru Georgescu 2013-03-27 10:38:35 UTC
I've tested this on Fedora 17 64bit and UBuntu 12.10 64bit
Comment 2 Laurentiu Palcu 2013-03-27 12:57:51 UTC
*** Bug 4133 has been marked as a duplicate of this bug. ***
Comment 3 Laurentiu Palcu 2013-03-29 07:58:44 UTC
Patch sent on the ML.
Comment 4 Laurentiu Palcu 2013-04-03 06:48:25 UTC
The patch has been merged:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=688c4e84623369199baaf821430373ce28ecb66a
Comment 5 Alexandru Georgescu 2013-04-11 11:29:46 UTC
Verified.