Re: Cross compilation issue for Android

"$rik@nth" <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <CANKSX+FBUJxabeSmzEF5PHZOrhuqHCk34nBSDaTaH2txiua1wA@mail.gmail.com>
Ok, thanks for the reply. Anyone else in the group have ever tried cross
compiling and get success with this?

On Thu, Jun 23, 2022, 8:40 PM Dallman, John <[email protected]>
wrote:

> NDK23c does not provide any libgcc libraries. This is reasonable, since it
> also does not provide a gcc: it uses clang instead. I’ve never tried to
> build Valgrind for Android, but hopefully someone else can tell you how to
> do it with a modern NDK.
>
>
>
> --
>
> John Dallman
>
>
>
> *From:* $rik@nth <[email protected]>
> *Sent:* 23 June 2022 11:05
> *To:* [email protected]
> *Subject:* [Valgrind-users] Cross compilation issue for Android
>
>
>
>   Hello Valgrind Users,
>
>
>
> I am trying to cross compile the valgrind for Android using NDK. But I am
> seeing the compilation error. Has anyone faced a similar issue?
>
>
>
> ../coregrind/link_tool_exe_linux 0x58000000
> /local/mnt/workspace/Android_ndk/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android31-clang
>     -o memcheck-arm64-linux  -m64 -O2 -g -Wall -Wmissing-prototypes
> -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
> -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat
> -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions
> -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align
> -Wno-self-assign -Wno-tautological-compare  -O2 -static -nodefaultlibs
> -nostartfiles -u _start  -m64 memcheck_arm64_linux-mc_leakcheck.o
> memcheck_arm64_linux-mc_malloc_wrappers.o memcheck_arm64_linux-mc_main.o
> memcheck_arm64_linux-mc_main_asm.o memcheck_arm64_linux-mc_translate.o
> memcheck_arm64_linux-mc_machine.o memcheck_arm64_linux-mc_errors.o
> ../coregrind/libcoregrind-arm64-linux.a ../VEX/libvex-arm64-linux.a -lgcc
> ../coregrind/libgcc-sup-arm64-linux.a
> ld: error: unable to find library -lgcc
> clang-12: error: linker command failed with exit code 1 (use -v to see
> invocation)
> Makefile:1111: recipe for target 'memcheck-arm64-linux' failed
> make[3]: *** [memcheck-arm64-linux] Error 1
> make[3]: Leaving directory
> '/local/mnt/workspace/valgrind/valgrind-3.19.0/memcheck'
> Makefile:1423: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> '/local/mnt/workspace/valgrind/valgrind-3.19.0/memcheck'
> Makefile:896: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/local/mnt/workspace/valgrind/valgrind-3.19.0'
> Makefile:759: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
>
>
> --
>
> Thanks & Regards,
> M.Srikanth Kumar.
>
> -----------------
> Siemens Industry Software Limited is a limited company registered in
> England and Wales.
> Registered number: 3476850.
> Registered office: Pinehurst 2, Pinehurst Road, Farnborough, Hampshire,
> GU14 7BF.
>

_______________________________________________
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.