From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40084.outbound.protection.outlook.com [40.107.4.84]) by dpdk.org (Postfix) with ESMTP id EEB9037B0 for ; Mon, 4 Jun 2018 08:03:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x8Lr32HN7gaexdfH8DyLLbjbkVfkXvi461sjuu5ynvQ=; b=EbzZg9caylvDjf49wOQiapLd8KVNzIb6jXMyn3n/vbY1sG6K3qjYgjeOsSiCULMCtnPbF3OXMiHdMikasteSDMSr46CCb7HQezJlJPM9zRukC+ggTjyJj4hfneGiThCG9Kn6lePiP43QfvjOrtZm5ll8vvF0jwvAwapCNOjdoCQ= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB2640.eurprd08.prod.outlook.com (10.175.245.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Mon, 4 Jun 2018 06:03:34 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::bccc:7b61:9039:89a0]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::bccc:7b61:9039:89a0%3]) with mapi id 15.20.0820.012; Mon, 4 Jun 2018 06:03:34 +0000 From: Gavin Hu To: Jerin Jacob , Bruce Richardson , Thomas Monjalon CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v5 2/2] doc: add a guide doc for cross compiling from x86 Thread-Index: AQHT9zntX/Wb/v3qYU2eFDmL5XrIPaRIrE6AgAbzOyA= Date: Mon, 4 Jun 2018 06:03:34 +0000 Message-ID: References: <1527578508-27297-1-git-send-email-gavin.hu@arm.com> <1527590616-28299-1-git-send-email-gavin.hu@arm.com> <1527590616-28299-3-git-send-email-gavin.hu@arm.com> <20180530193534.GA1336@jerin> In-Reply-To: <20180530193534.GA1336@jerin> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB2640; 7:5H1QT03zY1Fx46hO+WqdZaLTxw6sXKaVGbWMo5/aVc5ClAsBa6xkjxoWxfGbUHxVIqysdtHgTfF4lNAyxiLLTnGAxN4bgyr/xRhpVLwr+90ws22/OnCii+21lbytH5AfHtaBfbvyqZuEKQxJr8nDA/KTbBrvlRXP+pAKuaaWk3RUNLGSfT4OHn0pbtgPUPgLu1CkbIlRg9yTsGk11AHCBTklAOVSJHS07696hzkoBvOaMA6MKyrl972RrHS0tNcJ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB2640; x-ms-traffictypediagnostic: VI1PR08MB2640: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:VI1PR08MB2640; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB2640; x-forefront-prvs: 069373DFB6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(396003)(376002)(346002)(366004)(39380400002)(189003)(199004)(13464003)(40434004)(5250100002)(68736007)(81166006)(6306002)(316002)(478600001)(186003)(5660300001)(966005)(3280700002)(3846002)(19273905006)(33656002)(8676002)(66066001)(53936002)(2906002)(3660700001)(6116002)(72206003)(53376002)(2900100001)(14454004)(9686003)(486006)(97736004)(102836004)(106356001)(7736002)(6436002)(99286004)(305945005)(105586002)(86362001)(6506007)(7696005)(59450400001)(6246003)(4326008)(76176011)(8936002)(53546011)(55236004)(93886005)(110136005)(55016002)(229853002)(476003)(26005)(11346002)(74316002)(81156014)(446003)(25786009)(5890100001)(563064011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB2640; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Tambn8hjBBS3YAmXFvPyuSJFis8eDsLbrgWSxoTDIAjcP7KESVTgQAgIuoUt/6iuu2iYKxB8VtxU18CCUKjrp2wpTJ9Evf4GvmRO/PyMfwYpd2nusr//vHFA2cf6vfM2E90mWKeO7BesO3CnOOc5YyHUc4YCk0x9SX9WknLRrfaKCcUGNweBewGNSFJ3oLIO spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ea39253c-9427-45b6-f416-08d5c9e0e801 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea39253c-9427-45b6-f416-08d5c9e0e801 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2018 06:03:34.4311 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2640 Subject: Re: [dpdk-dev] [PATCH v5 2/2] doc: add a guide doc for cross compiling from x86 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2018 06:03:38 -0000 See my inline comments: > -----Original Message----- > From: Jerin Jacob > Sent: Thursday, May 31, 2018 3:36 AM > To: Gavin Hu > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 2/2] doc: add a guide doc for cross > compiling from x86 > > -----Original Message----- > > Date: Tue, 29 May 2018 18:43:36 +0800 > > From: Gavin Hu > > To: dev@dpdk.org > > CC: gavin.hu@arm.com > > Subject: [dpdk-dev] [PATCH v5 2/2] doc: add a guide doc for cross > > compiling from x86 > > X-Mailer: git-send-email 2.1.4 > > > > + 1. EXTRA_CFLAGS and EXTRA_LDFLAGS should be added to include the > NUMA headers and link the library respectively, > > + if the step :ref:`argment_the_cross_toolcain_with_numa_support` was > skipped therefore the toolchain was not > > + argmented with NUMA support. > > + > > + 2. RTE_DEVEL_BUILD has to be disabled, otherwise the numa.h file > > + gets > > If the warnings are from numa.h then please use -isystem > instead of disabling RTE_DEVEL_BUILD. > [Gavin Hu] This is a good advice, I verified it okay and can upload a new p= atch. > > + a lot of compiling errors of Werror=3Dcast-qual, Werror=3Dstrict-pr= ototypes > and Werror=3Dold-style-definition. > > + An example is given below: > > + > > + .. code-block:: console > > + > > + make -j CROSS=3Daarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=3Dn > CONFIG_RTE_EAL_IGB_UIO=3Dn > > + RTE_DEVEL_BUILD=3Dn EXTRA_CFLAGS=3D"-I/include= " > EXTRA_LDFLAGS=3D > > + "-L/lib -lnuma" > > + > > As discussed earlier, meson cross build instruction is missing. > [Gavin Hu] I reproduced the meson build issue Bruce reported, as shown belo= w. It was not introduced by gcc, nor clang, it was actually introduced by meso= n.build, see line #65 of http://www.dpdk.org/browse/dpdk/tree/config/meson.= build Even worse, "has_argument" is not reliable(refer here: http://mesonbuild.co= m/Compiler-properties.html#has-argument) for some compilers. This is the case of gcc and clang, which caused the 4 warning options were = included in the whole project, either the compiler is gcc or clang, cross o= r native. This finally caused the unrecognized warning options. I tried to disable the warning options, then the compiling got lots of nois= y warnings and errors. To fix this issue, we need to create a meson subproject for pmdinfogen, th= e change is not little and I am not familiar with this. Any comments are welcome! [265/893] Compiling C object 'buildtools/pmdinfogen/pmdinfogen@exe/pmdinfog= en.c.o'. warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning= -option] 1 warning generated. > > > diff --git a/doc/guides/linux_gsg/index.rst > > b/doc/guides/linux_gsg/index.rst index 2a7bdfe..077f930 100644 > > --- a/doc/guides/linux_gsg/index.rst > > +++ b/doc/guides/linux_gsg/index.rst > > @@ -13,6 +13,7 @@ Getting Started Guide for Linux > > intro > > sys_reqs > > build_dpdk > > + cross_build_dpdk_for_arm64 > > linux_drivers > > build_sample_apps > > enable_func > > -- > > 2.1.4 > > IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.