On Thu, Jul 14, 2022 at 10:05 AM Markus Mayer <
markus...@broadcom.com> wrote:
>
> On Thu, 30 Jun 2022 at 16:03, Markus Mayer <
markus...@broadcom.com> wrote:
>
> > > > > What we have NOT managed to build are:
> > > > >
> > > > > lib/clang/13.0.1/lib/linux/libclang_rt.builtins-armhf.a
> > > > > lib/clang/13.0.1/lib/linux/libclang_rt.builtins-aarch64.a
> > > > >
> > > > > However, the custom Yocto layer Florian mentioned is somehow able to
> > > > > generate them on an x86 host.
> > > >
> > > > Oh, those builtins, yeah. We build them for AOSP's distribution of
> > > > LLVM, let me see if I can find out where/how. Probably buried in here
> > > > somewhere:
> > > >
https://android.googlesource.com/toolchain/llvm_android/+/refs/heads/master/builders.py
> > >
> > > I _think_ these are the CMAKE vars you need to play with:
> > >
https://android.googlesource.com/toolchain/llvm_android/+/refs/heads/master/builders.py#510
> >
> > Thanks for digging. I played around somewhat, but haven't found the
> > magical combination.
>
> After a week's vacation I am back at it -- and I have made a discovery
> that is a little puzzling. Looks like Android is "cheating" by
> providing the very files I am looking to build from source as
> prebuilts (i.e. they aren't being built from source by Android).
>
> I followed the instructions at
>
https://android.googlesource.com/toolchain/llvm_android/.
>
> And I realized that the files in question are being checked out before
> the build even begins. See, for instance,
>
>
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/b072928f176af7db1929549c4a30e974c0b7d99d/clang-r450784e/lib64/clang/14.0.7/lib/linux/libclang_rt.builtins-arm-android.a
>
> They exist as binaries in the "prebuilt" repo. There are a bunch more
> low level files
> (
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/b072928f176af7db1929549c4a30e974c0b7d99d/clang-r450784e/lib64/clang/14.0.7/lib/linux/).
> In this case, I was looking at LLVM 14, since that's what the prebuilt
> repo has.
>
> Do you have any thoughts on who might be building these libraries and
> how? At some point, somebody must be building them.
+ android-llvm
--
Thanks,
~Nick Desaulniers