[lttng-dev] urcu AC_FUNC_MALLOC fails for cross-compile

D'Alessandro, Luke K ldalessa at indiana.edu
Tue Jun 14 16:26:51 UTC 2016


> On Jun 14, 2016, at 12:21 PM, Mathieu Desnoyers <mathieu.desnoyers at efficios.com> wrote:
> 
> ----- On Jun 14, 2016, at 12:12 PM, Luke K D'Alessandro ldalessa at indiana.edu wrote:
> 
>> The AC_FUNC_MALLOC depends on some runtime results which doesn't work when cross
>> compiling. Google has a bit to say about this and basically the fix is to stop
>> using the macro. Is there a specific purpose for this check, or could it just
>> be eliminated from configure.ac?
> 
> If we remove this check, we need to ensure that URCU does not depend
> on malloc(0) returning non-NULL anywhere.

Okay, I’m not sure what the implications are this for you. We have a test infrastructure that tries to download, build, and link liburcu using a cross compiler for 32-bit arm platforms, but it fails because of this check. I will try and figure out how to get a binary version of liburcu installed permanently somewhere that the cross compiler toolchain can find.

Thanks,
Luke

> 
> Thanks,
> 
> Mathieu
> 
>> 
>> Thanks,
>> Luke
>> 
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev at lists.lttng.org
>> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160614/44ebfdad/attachment.sig>


More information about the lttng-dev mailing list