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
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to