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 938F6A0A05; Wed, 20 Jan 2021 11:21:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81168140E8A; Wed, 20 Jan 2021 11:21:55 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 80EE9140E88 for ; Wed, 20 Jan 2021 11:21:54 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D04EF5C00E9; Wed, 20 Jan 2021 05:21:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 20 Jan 2021 05:21:53 -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= QWwoHi6cgeNu/GIdx1eMcjsIkyGAKLAdZK7q9AP6TkE=; b=rOm0NyLpbI9YgPZU 4Mbhrw0ptCv9X/mf5NML2sywW72HhbTKVOmrs3OYIS62Fsmaj8NIALTYwE7iUjDv Yhko8mwkZd8/tC77cxEVrWzBUD5rxkEC61XqeAWi3gijpGpOv6sQd4Sdk1n/tKxc ajuxljOb1PLw9xYmiMrRQHTIF1ufwtBrU58Pk5xq058nPiIGkV5oaYpNn4Z4ps/g 5P/AYJA7aRiHLMHYJ7nXqVteC+JJDEY3UHK87kXiizMeKutnys30qVlkzoYZxmvZ XxxzGjXTCqDbNTbp5oD2VtMP0iVIjtnwL5DgixJpkSALUPI42YjE+7P+hfxJLaIo RkTAbw== 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=QWwoHi6cgeNu/GIdx1eMcjsIkyGAKLAdZK7q9AP6T kE=; b=XZ+dsKinH0RavATgdIOGCPe6q0eLgNAWXFheG1PbTEALbaaWHRKfQBqTy qAzyL46hZskwOq+u53/mwldVdBNxhuH+VGCdNcxydIBQpOJOif+Bv7t1MZtZ3Y+2 12DOI8uF7AanFZu2GpQDqq9xtT4ieZ+HLa0vMQq0PI5ocWclrjBoVYHfqUONEysv AdQn+6rqYMj3K5CFx310Nx8Yr7rp/8nXc1tGWdSwRyz7K1dxRSnxzCLzLe1htVmE SCfvQCRtnKhNfK3z58uBBYkGig/rZYUmOmj/VbKvuXY/ZuSIbaghOpDIG2ZDYJ40 uCufEap7IGlrDJjg/3Wr9pnrQmNwA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddvgdduiecutefuodetggdotefrodftvf 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 5606724005A; Wed, 20 Jan 2021 05:21:52 -0500 (EST) From: Thomas Monjalon To: Juraj =?utf-8?B?TGlua2XFoQ==?= Cc: "david.marchand@redhat.com" , "aconole@redhat.com" , "maicolgabriel@hotmail.com" , "jerinjacobk@gmail.com" , "ferruh.yigit@intel.com" , "Ruifeng.Wang@arm.com" , "dev@dpdk.org" , "bruce.richardson@intel.com" Date: Wed, 20 Jan 2021 11:21:50 +0100 Message-ID: <1834029.KMe6SH2nP9@thomas> In-Reply-To: <081daf7d51bf4af9a210a745eeae277f@pantheon.tech> References: <1601631508-5307-1-git-send-email-juraj.linkes@pantheon.tech> <5185690.nF8rMpdJ4n@thomas> <081daf7d51bf4af9a210a745eeae277f@pantheon.tech> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v4 1/3] build: add aarch64 clang to meson cross-compile 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" 20/01/2021 09:24, Juraj Linke=C5=A1: > From: Thomas Monjalon > > 19/01/2021 09:33, Juraj Linke=C5=A1: > > > Create meson cross-file arm64_armv8_linux_clang_ubuntu1804. > >=20 > > Why is it specific to Ubuntu 18.04? > > I don't want to add specifc cross files per distributions. > >=20 > > > Use clang/LLVM toolchain with sysroot pointing to gcc cross stdlib. > > > > > > The sysroot path must be in the cross-file so that Clang can find the > > > proper headers: > > > * setting CFLAGS, LDFLAGS or -Dc_args, -Dc_link_args doesn't affect > > > cross builds (only native builds). Support added in 0.51.0. > > > * setting pkg-config vars only affects lib searching, not includes > > > * splitting the cross-file into two (one with clang info, one with > > > paths) doesn't work. Support added in 0.52.0. > >=20 > > I don't understand the explanations above. > > Please explain what is the bug and how it is fixed. > >=20 >=20 > I guess the missing piece is that the sysroot path is the ubuntu specific= part. The explanations illustrate why we can't have a generic cross file w= ith the current meson version - there's no way to pass the paths to cross b= uilds. Now that I think about it, the commit message needs a rewrite - I sh= ould've mentioned that clang/llvm doesn't provide it's own standard c lib, = so that has to come from elsewhere (such as gcc) and thus we have to provid= e the paths. Can it be done with the option -Dc_args? > > [...] > > > +c_args =3D ['-target', 'aarch64-linux-gnu', '--sysroot', > > > +'/usr/aarch64-linux-gnu'] c_link_args =3D ['-target', > > > +'aarch64-linux-gnu', '-fuse-ld=3Dlld', '--gcc-toolchain=3D/usr']