Bug 4133 - Toolchain fails to extract
Summary: Toolchain fails to extract
Status: RESOLVED DUPLICATE of bug 4131
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-27 12:49 UTC by Richard Purdie
Modified: 2013-03-27 12:57 UTC (History)
2 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 Richard Purdie 2013-03-27 12:49:17 UTC
I accidently tried to install an i586 toolchain on my x86_64 machine and it showed:

$ ./poky-eglibc-x86_64-i586-toolchain-1.3+snapshot-20130326.sh
Enter target directory for SDK (default: /opt/poky/1.3+snapshot): /tmp/rp456
You are about to install the SDK to "/tmp/rp456". Proceed[Y/n]?y
Extracting SDK...done
Setting it up...Traceback (most recent call last):
  File "/tmp/rp456/relocate_sdk.py", line 208, in <module>
    arch = get_arch()
  File "/tmp/rp456/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!

which isn't a nice failure mode. Being self contained, it should even install and work correctly in this case as it would likely work!
Comment 1 Laurentiu Palcu 2013-03-27 12:57:51 UTC
I'm working on 4131 already.

*** This bug has been marked as a duplicate of bug 4131 ***