[dpdk-dev] Build KNI module failed
Juraj Linkeš
juraj.linkes at pantheon.tech
Fri Apr 30 14:17:54 CEST 2021
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-aarch64-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=true -Dkernel_dir=/home/jlinkes/linux --cross-file config/arm/arm64_armv8_linux_gcc
/home/jlinkes/linux is where I have my Linux git repo.
Juraj
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Joakim Zhang
> Sent: Tuesday, April 27, 2021 11:43 AM
> To: users at dpdk.org; dev at 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!
> == 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=sysreg'; did you mean '-fstack-protector-strong'?
> aarch64-linux-gnu-gcc: error: unrecognized command line option '-mstack-
> protector-guard-reg=sp_el0'; did you mean '-fstack-protector-all'?
> aarch64-linux-gnu-gcc: error: unrecognized command line option '-mstack-
> protector-guard-offset=1096'; 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
>
> I search the source code, have not found these gcc command line options.
>
> Best Regards,
> Joakim Zhang
>
More information about the dev
mailing list