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 99DBBA0546; Fri, 30 Apr 2021 15:55:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9156D41150; Fri, 30 Apr 2021 15:54:19 +0200 (CEST) Received: from mailgw02.pantheon.sk (mailgw01.pantheon.sk [46.229.239.26]) by mails.dpdk.org (Postfix) with ESMTP id 1AF9041196; Fri, 30 Apr 2021 15:54:16 +0200 (CEST) Received: from mailgw02.pantheon.sk (localhost.localdomain [127.0.0.1]) by mailgw02.pantheon.sk (Proxmox) with ESMTP id CBE18185497; Fri, 30 Apr 2021 15:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; h=cc:content-transfer-encoding:content-type:content-type:date :from:from:message-id:mime-version:references:reply-to:subject :subject:to:to; s=dkim; bh=ACw5P4AiXjY0le+BXDEo6UATMg42azYRbthtp kRgFYw=; b=qWVdk2Hk7Mbaks6JseI/7LITlNAUgQCBN3E8F2kgbij+qOrIgQmOA W4d33ThzoNY7zHW7yuk1c/mJQr6SwGlWcnW/nOMAMdlZpXsxDZtO+pROT77rfZol lDMQ42UaPRX4iUngra1qLyPV3sU+MWKuaqPA4XY/gKC1MMKvpg0IupwIk8AGL3iL RBSxki4PnEUVzJdwBsBaBv8FzN7uMQXstdEaj8tSl2fapUP68kBXwUiHCgjn7dU8 gYElwPzg5j7O4c6Z5fFCS4KlGFnJNXNRKUqoXe4rlc2rD9yVCYvQDW0w1vWnfuWm 5oM4B2NofgtoRSg6RIOepgOdOq0rSM4Kg== From: =?iso-8859-2?Q?Juraj_Linke=B9?= To: Joakim Zhang , "users@dpdk.org" , "dev@dpdk.org" Thread-Topic: Build KNI module failed Thread-Index: Adc7RURVF+vBL+aIQpS7PZG8+w5c9gCbsRMgAAT9lyA= Date: Fri, 30 Apr 2021 13:54:14 +0000 Message-ID: <0933a03b97e14482bd0425c59f52d8b1@pantheon.tech> References: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.101.4.10] Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Build KNI module failed 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" Maybe we actually need to step back a bit and talk about versions. Which DPDK version are you using? Why are you using the old make build system instead of Meson? Support for KNI cross-compilation was only added recently to Meson and I do= n't know enough about the old Make system to comment on that. Juraj > -----Original Message----- > From: Juraj Linke=B9 > Sent: Friday, April 30, 2021 2:18 PM > To: 'Joakim Zhang' ; users@dpdk.org; > dev@dpdk.org > Subject: RE: Build KNI module failed >=20 > Hi Joakim, >=20 > When I cross-compiled KNI I only used gcc that comes with Ubuntu, e.g.: > sudo apt install gcc-aarch64-linux-gnu libc6-dev-arm64-cross pkg-config- > aarch64-linux-gnu >=20 > Which Ubuntu version are you using? The Ubuntu18.04 gcc works fine: > aarch64-linux-gnu-gcc -v > gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) >=20 > This is a bit strange, since the versions are the same/similar. >=20 > I am using this meson invocation: > meson kni-cross-gcc -Denable_kmods=3Dtrue -Dkernel_dir=3D/home/jlinkes/li= nux -- > cross-file config/arm/arm64_armv8_linux_gcc >=20 > /home/jlinkes/linux is where I have my Linux git repo. >=20 > Juraj >=20 > > -----Original Message----- > > From: dev On Behalf Of Joakim Zhang > > Sent: Tuesday, April 27, 2021 11:43 AM > > To: users@dpdk.org; dev@dpdk.org > > Subject: [dpdk-dev] Build KNI module failed > > > > > > Hi guys, > > > > Is there anyone met gcc build error when build KNI module on Ubuntu to > > cross build ARM64? > > I tried both gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu and > > gcc-linaro- 7.5.0-2019.12-x86_64_aarch64-linux-gnu. > > > > The error log as below, any comments would be appreciated! Thanks a lot= ! > > =3D=3D Build kernel/linux/kni > > CC [M] /home/zqq/dpdk/arm64-dpaa-linuxapp- > > gcc/build/kernel/linux/kni/kni_misc.o > > aarch64-linux-gnu-gcc: error: unrecognized command line option > > '-mstack- protector-guard=3Dsysreg'; did you mean '-fstack-protector-st= rong'? > > aarch64-linux-gnu-gcc: error: unrecognized command line option > > '-mstack- protector-guard-reg=3Dsp_el0'; did you mean '-fstack-protecto= r-all'? > > aarch64-linux-gnu-gcc: error: unrecognized command line option > > '-mstack- protector-guard-offset=3D1096'; did you mean '-fstack-protect= or- > strong'? > > scripts/Makefile.build:279: recipe for target > > '/home/zqq/dpdk/arm64-dpaa- > > linuxapp-gcc/build/kernel/linux/kni/kni_misc.o' failed > > > > I search the source code, have not found these gcc command line options= . > > > > Best Regards, > > Joakim Zhang > >