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 4E818A0546; Fri, 30 Apr 2021 14:17:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C1074014F; Fri, 30 Apr 2021 14:17:58 +0200 (CEST) Received: from mailgw01.pantheon.sk (mailgw01.pantheon.sk [46.229.239.26]) by mails.dpdk.org (Postfix) with ESMTP id 199204013F; Fri, 30 Apr 2021 14:17:56 +0200 (CEST) Received: from mailgw01.pantheon.sk (localhost.localdomain [127.0.0.1]) by mailgw01.pantheon.sk (Proxmox) with ESMTP id CE19A2038AF; Fri, 30 Apr 2021 14:17:55 +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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=dkim; bh=R8OuYPAtc0d8erAZM7ZA y3RAZEhJn/RuEyP+K0h2j9s=; b=MUMZuyA0BE3JVZhzKqXLofwdrNgcOJ9+RWd9 xox/xa3KBovq1Ap5YiQ4a+ks/ZLJKpT8fNmXvu8IqJkJ12vPJpr3KPB+mcOnBaxc NuQJ0ZxbDUGCLBhQxq24XRMSwSR4/mwN2xgW498eY2aerHmfjKIukz92E7dYpBwY Xvh7xScYEcgQxitpv4lmt2No7sqC8HttHgkm2k8auqn8Obww9tf/fcrMv1uT97Wn +22M/ayuMw/X6oJo/iE1dECpviLQWyWk2u37FMQ0shFVC3tFzD0DpV9hlaSUrIns vkFMnS/IPsZzI7fcCPE9FwA23f7WvMlgNldH7S1usC9juF2VjA== 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+w5c9gCbsRMg Date: Fri, 30 Apr 2021 12:17:54 +0000 Message-ID: <5943396dd133451d81e79a28a448574f@pantheon.tech> References: In-Reply-To: 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" Hi Joakim, 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-aar= ch64-linux-gnu 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) This is a bit strange, since the versions are the same/similar. I am using this meson invocation: meson kni-cross-gcc -Denable_kmods=3Dtrue -Dkernel_dir=3D/home/jlinkes/linu= x --cross-file config/arm/arm64_armv8_linux_gcc /home/jlinkes/linux is where I have my Linux git repo. Juraj > -----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 >=20 >=20 > Hi guys, >=20 > Is there anyone met gcc build error when build KNI module on Ubuntu to cr= oss > build ARM64? > I tried both gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu and gcc-li= naro- > 7.5.0-2019.12-x86_64_aarch64-linux-gnu. >=20 > 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-strong'? > aarch64-linux-gnu-gcc: error: unrecognized command line option '-mstack- > protector-guard-reg=3Dsp_el0'; did you mean '-fstack-protector-all'? > aarch64-linux-gnu-gcc: error: unrecognized command line option '-mstack- > protector-guard-offset=3D1096'; did you mean '-fstack-protector-strong'? > scripts/Makefile.build:279: recipe for target '/home/zqq/dpdk/arm64-dpaa- > linuxapp-gcc/build/kernel/linux/kni/kni_misc.o' failed >=20 > I search the source code, have not found these gcc command line options. >=20 > Best Regards, > Joakim Zhang >=20