From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B4B16A0C53; Thu, 14 Oct 2021 09:05:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94AF640E50; Thu, 14 Oct 2021 09:05:03 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mails.dpdk.org (Postfix) with ESMTP id 60F4A40041 for ; Thu, 14 Oct 2021 09:05:02 +0200 (CEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0368B3200F3D; Thu, 14 Oct 2021 03:05:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 14 Oct 2021 03:05:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= pMQiariFmwTk583Id+wtU3k4SHgKmLBynJO/Ry3aDzc=; b=CuBg9ERxMq/uYRUq MwEIal/MItRkI92cpVBUpOxgHukP3zv0LO+K8pEbw0KusIVpJJKEuVbrz0XLmPd8 hE45F+CyIlIBIRzRpg9KJl1rzHxiF586b3J1rNZN+Sx+Tj9LD5v+UaJ+sB4q7gR7 y6rhCvEJ5SI8eCf/1L+Ie8PAbTdWdJorQRx95E67FjPYR8U9HRK74Eq0bb/4gnv+ Ny6+RYWW+nCQpFugukaHrtjgZGQo/bvkzHEYyfxymFQgKLxBK0sVVMzZ+l0+lqMA u19Zq131Hnli9L+ryLfwUVwXlTw2TKa4X5ybnzZg5HhSwv5yDpvsUFw5Pkgeiy2o RZ+YEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=pMQiariFmwTk583Id+wtU3k4SHgKmLBynJO/Ry3aD zc=; b=YT1FxSYdL+TllgibNdyvtGJDcJ6JxqugQN6A1yqos7VzkvB9RqEdWMIgO QdFM5kV9tSvKfHN3FhDPqpDykadCSb5B7HgCiQRdNnWKPVQB+XxvTCObm3QeHKM6 dbCVzcRMlEQYVaZObvOJSyztbWWZPr0urT1BWTgvxW+Nzk0soOL/rz9J9fWIPaD0 WR3buGlrCuYWTpTNkTKkAZKQ6W0aOSCN3iYSEF2Sq9Vde9QaAbSEdy5n4ztQgQHu bbOBTbc1Idv7sANHx8xpcGjkCgjJ5R1gCmP/sNbWYKKOB+wr7RHbtXaaTixSxBqu kdFsAI8Qh03JRRmo2HwBdMil+BgAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduuddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvkeetveeihfegfedtfeejueekkeekueevgfejuedviedvvdev uefgteevtdefveenucffohhmrghinhepughpughkrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Oct 2021 03:04:57 -0400 (EDT) From: Thomas Monjalon To: "Peng, ZhihongX" Cc: David Marchand , dev@dpdk.org, "Burakov, Anatoly" , "Ananyev, Konstantin" , Stephen Hemminger , dev , "Lin, Xueqin" , "Richardson, Bruce" Date: Thu, 14 Oct 2021 09:04:55 +0200 Message-ID: <3212831.hvIHzlc02P@thomas> In-Reply-To: References: <20211011062810.422220-1-zhihongx.peng@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v9 1/3] Enable ASan for memory detector on DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 14/10/2021 08:46, Peng, ZhihongX: > From: David Marchand > > More problematic, linking an external (out of meson) application to a d= pdk > > compiled with ASan is broken. > >=20 > > 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= =2Dgcc- > > shared build-ppc64le-power8 build-x86-mingw > > build-arm64-dpaa build-arm64-octeontx2 build-clang-static > > build-gcc-static build-x86-generic > >=20 > > I stopped at patch 1, configured following target to have ASan in them,= like > > this: > >=20 > > $ meson configure $HOME/builds/build-gcc-static -Db_sanitize=3Daddress > > $ meson configure $HOME/builds/build-clang-shared -Db_sanitize=3Daddres= s - > > Db_lundef=3Dfalse $ meson configure $HOME/builds/build-x86-generic - > > Db_sanitize=3Daddress > > ^^^^^^^^^^^^^^^^^ > > This is the target for which we test lin= king a dpdk application > > out of meson. > >=20 > > $ meson configure $HOME/builds/build-arm64-bluefield - > > Db_sanitize=3Daddress >=20 > I don't know your test platform , arm or x86. >=20 > This is our compilation command: > Gcc is 9.3.0 or 10.3.0 > CC=3Dgcc meson -Db_sanitize=3Daddress x86_64-native-linuxapp-gcc > ninja -C x86_64-native-linuxapp-gcc > meson configure -Dexamples=3Dhelloworld x86_64-native-linuxapp-gcc > ninja -C x86_64-native-linuxapp-gcc=20 >=20 > I don=E2=80=99t know how you get this parameter $HOME/builds/build-x86-g= eneric. >=20 > Can you send me all your configuration, I will reproduce this error in ou= r environment. This is written just below: > Thank you very much for your help! >=20 > > 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.