[dpdk-dev] [PATCH v9 1/3] Enable ASan for memory detector on DPDK
Thomas Monjalon
thomas at monjalon.net
Thu Oct 14 09:04:55 CEST 2021
14/10/2021 08:46, Peng, ZhihongX:
> From: David Marchand <david.marchand at redhat.com>
> > More problematic, linking an external (out of meson) application to a dpdk
> > compiled with ASan is broken.
> >
> > My environment contains following targets compiled using
> > ./devtools/test-meson-builds.sh:
> > $ ls $HOME/builds/
> > build-arm64-bluefield build-arm64-host-clang build-clang-shared build-gcc-
> > shared build-ppc64le-power8 build-x86-mingw
> > build-arm64-dpaa build-arm64-octeontx2 build-clang-static
> > build-gcc-static build-x86-generic
> >
> > I stopped at patch 1, configured following target to have ASan in them, like
> > this:
> >
> > $ meson configure $HOME/builds/build-gcc-static -Db_sanitize=address
> > $ meson configure $HOME/builds/build-clang-shared -Db_sanitize=address -
> > Db_lundef=false $ meson configure $HOME/builds/build-x86-generic -
> > Db_sanitize=address
> > ^^^^^^^^^^^^^^^^^
> > This is the target for which we test linking a dpdk application
> > out of meson.
> >
> > $ meson configure $HOME/builds/build-arm64-bluefield -
> > Db_sanitize=address
>
> I don't know your test platform , arm or x86.
>
> This is our compilation command:
> Gcc is 9.3.0 or 10.3.0
> CC=gcc meson -Db_sanitize=address x86_64-native-linuxapp-gcc
> ninja -C x86_64-native-linuxapp-gcc
> meson configure -Dexamples=helloworld x86_64-native-linuxapp-gcc
> ninja -C x86_64-native-linuxapp-gcc
>
> I don’t know how you get this parameter $HOME/builds/build-x86-generic.
>
> Can you send me all your configuration, I will reproduce this error in our environment.
This is written just below:
> Thank you very much for your help!
>
> > Then ran the check:
> > $ ./devtools/test-meson-builds.sh
Here, this is the command recommended to run in the contributing guide.
https://doc.dpdk.org/guides/contributing/patches.html#checking-compilation
You need, at the very minimum, to install an Arm cross-compiler.
As you are changing stuff in the compilation of the project,
please become familiar with testing compilation in multiple environments.
More information about the dev
mailing list