[dpdk-dev] [PATCH v2 1/3] build: add aarch64 clang to meson cross-compile

Juraj Linkeš juraj.linkes at pantheon.tech
Mon Oct 5 12:57:45 CEST 2020



> -----Original Message-----
> From: Jerin Jacob <jerinjacobk at gmail.com>
> Sent: Sunday, October 4, 2020 10:30 AM
> To: Juraj Linkeš <juraj.linkes at pantheon.tech>
> Cc: Thomas Monjalon <thomas at monjalon.net>; David Marchand
> <david.marchand at redhat.com>; Aaron Conole <aconole at redhat.com>;
> Michael Santana <maicolgabriel at hotmail.com>; dpdk-dev <dev at dpdk.org>
> Subject: Re: [dpdk-dev] [PATCH v2 1/3] build: add aarch64 clang to meson cross-
> compile
> 
> On Thu, Oct 1, 2020 at 4:07 PM Juraj Linkeš <juraj.linkes at pantheon.tech>
> wrote:
> >
> > Create meson cross file arm64_armv8_linux_clang_ubuntu1804.
> > Use clang/LLVM toolchain with sysroot pointing to gcc cross stdlib.
> >
> > Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
> > ---
> >  config/arm/arm64_armv8_linux_clang_ubuntu1804 | 20
> > +++++++++++++++++++
> 
> IMO, if we are adding a specific OS distribution-specific configuration then it
> won't scale.
> Why not have just arm64_armv8_linux_clang ?

CFLAGS, LDFLAGS, c_args and c_link_args don't work when cross-compiling (at least they didn't work when I tested it) and that means we have to put the paths to stdlib (which llvm/clang doesn't implement) into a cross file. The arm64_armv8_linux_clang_ubuntu1804 contains paths that work with ubuntu clang/gcc packages (and would thus be used in CI). We can't have a generic cross file for clang because of this path limitation.


More information about the dev mailing list