<div dir="ltr"><div>Thanks to Randy Witt for a patch which resolves this issue.  Randy 
wrote: &quot;I looked at the configure logs on an x86 build and saw the same 
problem.
 By default the autotools.bbclass searches for m4 macros in the source 
tree. But it searches a depth that is lower than the directory depth of 
the location of testcases/realtime/m4. That seems to be causing some of 
the macros to be missing and falsely causing features to be missing.&quot; <br><br></div>I beiieve Randy will be submitting this patch soon, and included a link in my previous response - but evidently that link worked for nobody but myself - so with apologies I am re-transmitting the response with the patch text included inline below for reference:<br><br>From bce5869545cacd4923b1efcf6e1218f65ad46af7 Mon Sep 17 00:00:00 2001<br>From: Randy Witt &lt;<a href="mailto:randy.e.witt@linux.intel.com">randy.e.witt@linux.intel.com</a>&gt;<br>Date: Fri, 5 Sep 2014 15:00:59 -0700<br>Subject: [PATCH] ltp: Add additional m4 path to autoconf.<br><br>The ltp code has some m4 macros that are deeper than the default depth<br>that the directory depth the autotools.bbclass checks. This causes some<br>macros to not be found and for supported features to not be enabled.<br><br>This patch adds the extra m4 path to the autoconf arguments.<br>---<br> meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb">ltp_20140422.bb</a> | 1 +<br> 1 file changed, 1 insertion(+)<br><br>diff --git a/meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb">ltp_20140422.bb</a> b/meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb">ltp_20140422.bb</a><br>index c658bc0..0b29ea4 100644<br>--- a/meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb">ltp_20140422.bb</a><br>+++ b/meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb">ltp_20140422.bb</a><br>@@ -37,6 +37,7 @@ TARGET_CC_ARCH += &quot;${LDFLAGS}&quot;<br> export prefix = &quot;/opt/ltp&quot;<br> export exec_prefix = &quot;/opt/ltp&quot;<br> <br>+EXTRA_AUTORECONF += &quot;-I ${S}/testcases/realtime/m4&quot;<br> EXTRA_OECONF = &quot; --with-power-management-testsuite --with-realtime-testsuite &quot;<br> <br> # ltp doesn&#39;t regenerate ffsb-6.0-rc2 configure and hardcode configure call.<br>-- <br>1.9.3<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 3:36 PM, Gary Robertson <span dir="ltr">&lt;<a href="mailto:gary.robertson@linaro.org" target="_blank">gary.robertson@linaro.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Dear OE developers,<br></div><div><br></div>Linaro Networking Group is building root filesystem images containing  the LTP test suite, using the current recipe at openembedded-core/meta/recipes-extended/ltp/<a href="http://ltp_20140422.bb" target="_blank">ltp_20140422.bb</a>.  This build uses autoconf to probe mutex feature support for protocol specification, priority inheritance, and robust mutexes.  The macros used for this can be found in ltp/testcases/realtime/m4/check.m4 from the LTP git repository.<br><br></div>We are cross-building for the armv7a architecture using the machine definition found in meta-linaro/meta-linaro/conf/machine/genericarmv7a.conf.  The development host platform is an Ubuntu 12.04 x86_64 platform with all software kept regularly updated from the Ubuntu repositories.<br><br></div>The macros in check.m4 use the AC_TRY_COMPILE function macro to attempt compilation of POSIX function calls utilizing the features being probed - such that if the compilation fails the features are deemed to be unsupported... and if compilation succeeds the features are deemed supported.<br><br></div>Native compilation of the same code used in the probes, and execution of the resulting program - shows support for all the probed mutex features on both the development host as well as the armv7a target platform... that is when this probe code is built on either the host or target machine and then executed in that environment... so support is there in both environments.<br><br></div>Despite the presence of this support the AC_TRY_COMPILE macro is indicating a lack of support for the probed features during the cross-build process.<br><br>I am not personally familiar with the detailed function of the autoconf macros, and I can find no documentation about how OE interacts with those macros in order to coerce them into configuring for the target machine in a cross-build environment... so I am hoping the autoconf experts at OE can shed some light on this and at least provide some clues as to where to look for the problem and possible resolution.  Any insight you can provide in this matter would be appreciated.<br><div><div><div><br></div><div>Gary Robertson<br><br></div><div>Real-time engineer, Linaro Networking Group<br></div><div><br></div></div></div></div>
</blockquote></div><br></div>