Bug 9508 - cross-localedef-native_2.22 fails to build on aarch64 host
Summary: cross-localedef-native_2.22 fails to build on aarch64 host
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M1
Assignee: Ross Burton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-22 17:10 UTC by Tristan Van Berkom
Modified: 2016-08-12 03:09 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Use oe_runconf() instead of running configure manually (1.57 KB, patch)
2016-04-22 17:10 UTC, Tristan Van Berkom
no flags Details | Diff
Use stock autotools configure (1.46 KB, patch)
2016-04-22 20:31 UTC, Tristan Van Berkom
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Van Berkom 2016-04-22 17:10:01 UTC
Created attachment 3148 [details]
Use oe_runconf() instead of running configure manually

The build of cross-localedef-native_2.22 on aarch64 bails out with an error because it does not recognize the aarch64 host triple, probably because the prepackaged configure scripts in glibc 2.22 are just outdated.

The attached patch adjusts cross-localedef-native_2.22.bb so that it uses gnu-configurize and runs oe_runconf instead of manually running configure, this fixes the build on aarch64 hosts.

Patch was also tested on x86_64 and found to not break the build on x86_64.
Comment 1 Ross Burton 2016-04-22 19:37:54 UTC
Did you try just setting AUTOTOOLS_SCRIPT_PATH and deleting do_configure() entirely?
Comment 2 Tristan Van Berkom 2016-04-22 20:31:06 UTC
Created attachment 3153 [details]
Use stock autotools configure

(In reply to comment #1)
> Did you try just setting AUTOTOOLS_SCRIPT_PATH and deleting do_configure()
> entirely?

Yes I did (after reading this comment)...

And since it worked, I've attached an updated patch which does that :)
Comment 3 Ross Burton 2016-04-23 15:01:43 UTC
Looks good.

OE-core is kernel style patches-on-mailing-list, can you submit this patch the list please?
Comment 4 Ross Burton 2016-06-07 15:25:41 UTC
Fixed in oe-core 33d4c758a5d71435437dde74556d32404d91342f.
Comment 5 Yi Zhao 2016-08-12 03:09:27 UTC
Verified with poky master: e274a5167ea2e495355bd1382b1388d047b845d7