Bug 13945

Summary: Buildtools installer fails on Aarch64
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.3   
Target Milestone: 3.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2020-06-15 02:51:43 UTC
When running install-buildtools on an aarch64 host:

INFO: Fetching buildtools installer
INFO: Fetching buildtools installer checksum
INFO: Checksum success
INFO: Making installer executable
Error: Incompatible SDK installer! Your host is aarch64 and this SDK was built for x86_64 hosts.
ERROR: Could not run buildtools installer
INFO: Setting up the environment
Traceback (most recent call last):
  File "./scripts/install-buildtools", line 333, in <module>
    ret = main()
  File "./scripts/install-buildtools", line 281, in main
    install_dir, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/poky/buildtools/environment-setup-x86_64-pokysdk-linux'

Two problems:
1) No binary for aarch64 hosts
2) It should have stopped at the Error, and not tried to carry on going
Comment 1 Ross Burton 2020-06-16 07:17:04 UTC
Patches on the list.
Comment 2 Ross Burton 2020-06-18 07:47:25 UTC
- oe-core master has a fixed install-buildtools
- yocto-autobuilder-helper master builds aarch64 buildtools

Still need to backport those to dunfell.
Comment 3 Ross Burton 2020-08-04 02:12:36 UTC
Fixed in master as of d1e71bf5b399372166eb40bb0d99c8fb52231600.
Fixed in dunfell as of 877a082b5f3f5ccf8191a2438e7707b419174ea9.