Re: Cross compilation issue for Android

"Floyd, Paul" <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>

On 2022-06-24 05:41, $rik@nth wrote:
> Hello Paul,
> 
> Seems even after removing -lgcc from Makefile.tool.am 
> <http://Makefile.tool.am> compilation is still failing because of other 
> dependencies on libgcc.

> ../coregrind/libgcc-sup-arm64-linux.a
> ld: error: undefined symbol: __aeabi_uidivmod
>  >>> referenced by mc_leakcheck.c:837
>  >>>               memcheck_arm_linux-mc_leakcheck.o:(heuristic_reachedness)
>  >>> referenced by m_execontext.c:346
>  >>>               

The source line is just


          if (nr_elts > 0 && (ch->szB - sizeof(SizeT)) % nr_elts == 0) {

and I presume that is the modulus operator that is bringing in 
__aeabi_uidivmod

According to https://clang.llvm.org/docs/ClangCommandLineReference.html 
there may be a clang runtime library libclang_rt.builtins.*.a

If you have that could you try linking with it (instead of libgcc.a)?

A+
Paul


_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.