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 55843A052A; Tue, 2 Feb 2021 10:25:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E719240311; Tue, 2 Feb 2021 10:25:13 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 8A4762402FE for ; Tue, 2 Feb 2021 10:25:11 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2E6F75C0243; Tue, 2 Feb 2021 04:25:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 02 Feb 2021 04:25:11 -0500 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=fm3; bh= ziTwWckZe7+BRcvqXZQ+5DynBW3A7uTgjNnVZ2+4+E4=; b=L4RUrAzt1VJqvUwe t5QhtBgJcRe3suhcVQ+6mLYNj5HTvi7ywXK9yIYoXWEuHj4TyrXbPFcKo0R4BAB3 hi/W3clCleorpKGzu00N7MtKsXqwFW+Z9gKobGSDIlDYnrmP4JDZOWRFm1epZ0wy 8y7OvtveQqZdvRc6PNTR0sN5n9Mw4enApMfQk9+4kgz1DcVugWzd6OqxdbYFHZiF Lnpr8NQgDaRnRQkWIV+1J2G/okmHpDP8A7YOW1Y2Y+IJYfpEkjNaJx1QGwa3FFzU 27xB1KACsM7NjP4/m0DI58boeUgH/wpUFdDeNqC45hEC6AtTn9EqVkrK1RdtUiu9 GsTIGg== 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=fm2; bh=ziTwWckZe7+BRcvqXZQ+5DynBW3A7uTgjNnVZ2+4+ E4=; b=ontfhzxaiK/7W3Be+JQOFaSizfJaFnBlBrvsZxf0+fIs+7FnBK6IjEb8c Jk5aFVix+apEHu91Y12s6yd/KrNU+rYmdeONE2BMcTCtm+SgbqiCJxXhFf28Vmwj duUEWwBg9xbLN5isnGjvXfzRZSeORbjaWDSW7h6f60daAT+X9U1Pe/SQdP+79w7G qZD2wmm25gbwYj5Cmh/sx9eo3sMaajhJtSxGLxkLEiICR/J+6QHmiwQkp7ApUjJj pwh0bYZydaI5O8QFhHdejvnFROA+LcRGXPOC1DzJqBzIth5zbsvGsiXubzMXjwBe gPLDLZcaITvchXHUUuppLFJ71NbXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedtgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpeekteehtdeivefhieegjeelgedufeejheekkeetueevieeuvdevuedt jeevheevteenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CF8824005E; Tue, 2 Feb 2021 04:25:07 -0500 (EST) From: Thomas Monjalon To: Juraj =?utf-8?B?TGlua2XFoQ==?= Cc: bruce.richardson@intel.com, Ruifeng.Wang@arm.com, Honnappa.Nagarahalli@arm.com, jerinjacobk@gmail.com, ferruh.yigit@intel.com, dev@dpdk.org Date: Tue, 02 Feb 2021 10:25:04 +0100 Message-ID: <16452758.hIf2Js97NA@thomas> In-Reply-To: <1612256727-9724-1-git-send-email-juraj.linkes@pantheon.tech> References: <1612191313-7654-1-git-send-email-juraj.linkes@pantheon.tech> <1612256727-9724-1-git-send-email-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [RFC PATCH v2] config/arm: replace native machine args 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" 02/02/2021 10:05, Juraj Linke=C5=A1: > There are compiler issues when building with -mcpu=3Dnative with popular > compilers, such as GCC-8.4: > In file included from ../lib/librte_eal/arm/include/rte_vect.h:11, > from ../lib/librte_net/net_crc_neon.c:10: > ../lib/librte_net/net_crc_neon.c: In function =E2=80=98crcr32_folding_rou= nd=E2=80=99: > /usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error: > inlining failed in call to always_inline =E2=80=98vmull_p64=E2=80=99: tar= get > specific option mismatch > vmull_p64 (poly64_t a, poly64_t b) > ^~~~~~~~~ > ../lib/librte_net/net_crc_neon.c:50:20: note: called from here > uint64x2_t tmp1 =3D vreinterpretq_u64_p128(vmull_p64( > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > and clang: > gcc -E -dM -mcpu=3D"native" - < /dev/null | grep __ARM_FEATURE_ATOMICS > clang-9 -E -dM -mcpu=3D"native" - < /dev/null | grep __ARM_FEATURE_ATOMICS > # no clang support >=20 > Fix this by always specifying the proper machine args and never using > the native flags. >=20 > Fixes: 78ac8eac7e8a ("config/arm: use native machine build arguments") > Cc: juraj.linkes@pantheon.tech >=20 > Signed-off-by: Juraj Linke=C5=A1 Applied, thanks