Re: [PATCH v2] perf docs: Mark the Android document as obsolete
From: Ian Rogers
Date: Mon Jul 15 2024 - 15:45:07 EST
On Mon, Jul 15, 2024 at 12:31 PM Leo Yan <leo.yan@xxxxxxx> wrote:
>
>
> Hi Ian,
>
> On 7/15/24 18:17, Ian Rogers wrote:
> > On Mon, Jul 15, 2024 at 7:34 AM Leo Yan <leo.yan@xxxxxxx> wrote:
> > [snip]
> >> +Android NDK compilation is deprecated and no longer supported.
> >
> > I think this is objectively worse than just removing the file. It is
> > likely the perf tool can build with clang/LLVM, I do it every day
>
> Just curious, are you using LLVM/clang for cross building (e.g. build
> aarch64 target on x86_64 host) or just native building?
>
> Clang/LLVM is a natively cross-compiler [1], I installed Clang-15 in the
> offical package on Ubuntu, but I failed to do cross compilation with it:
>
> make ARCH=arm64 LLVM=-15 VF=1 DEBUG=1 -C tools/perf
So we're cross-compiling in bazel, so it is a different set up than
the makefiles - I'm happy to work to share the bazel set up if other
people care. I'm having a play to see if I can get the Makefile
working, my first attempts are clearly mixing x86 code into the
supposedly arm64 build, which would appear to be more of a build
system rather than code problem.
Thanks,
Ian