Bug 9359 - man configure script uses cross-compiler for tests
Summary: man configure script uses cross-compiler for tests
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M4
Assignee: Bill Randle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-31 00:03 UTC by Bill Randle
Modified: 2016-04-01 17:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Randle 2016-03-31 00:03:24 UTC
The configure script for 'man' uses $CC (the cross-compiler) instead of $BUILD_CC (the build compiler). As a result, any configure test that rely on a working executable fail when target arch is not the same as the host arch.

It also bases its config settings on the host features, rather than target features. This could result in compile errors if the host and target architecture and/or compilers are significantly different.
Comment 1 Bill Randle 2016-03-31 05:09:04 UTC
Change the script to use the build compiler, but use the target include files to check for the target features. This works because the feature testing is using include file contents and not the actual result of the test compile.

Patch submitted to OE mailing list.
Comment 2 Bill Randle 2016-04-01 17:03:08 UTC
Merged to master and verified by Richard Purdie.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-extended/man?id=5293b834c1f5bfdf45d86485cd63b98c6b1bce5c