From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 728] [dpdk-19.11.9-rc2]When compiling dpdk with make or meson under SUSE Linux Enterprise Server 15 SP2, the compilation fails
Date: Thu, 10 Jun 2021 07:35:13 +0000 [thread overview]
Message-ID: <bug-728-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=728
Bug ID: 728
Summary: [dpdk-19.11.9-rc2]When compiling dpdk with make or
meson under SUSE Linux Enterprise Server 15 SP2, the
compilation fails
Product: DPDK
Version: 19.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: leweix.yang@intel.com
Target Milestone: ---
Environment:
OS: SUSE Linux Enterprise Server 15 SP2 5.3.18-22
Compiler: gcc (SUSE Linux) 7.5.0
Test Error:
1. When compiling dpdk with make,the error is reported as follows :
/root/bak/x86_64-native-linuxapp-gcc/build/kernel/linux/kni/kni_net.c:791:20:
error: initialization from incompatible pointer type
[-Werror=incompatible-pointer-types]
.ndo_tx_timeout = kni_net_tx_timeout,
^~~~~~~~~~~~~~~~~~
/root/bak/x86_64-native-linuxapp-gcc/build/kernel/linux/kni/kni_net.c:791:20:
note: (near initialization for ‘kni_net_netdev_ops.ndo_tx_timeout’)
cc1: all warnings being treated as errors
make[9]: *** [/usr/src/linux-5.3.18-22/scripts/Makefile.build:282:
/root/bak/x86_64-native-linuxapp-gcc/build/kernel/linux/kni/kni_net.o] Error 1
make[9]: *** Waiting for unfinished jobs....
INSTALL-LIB librte_bus_vmbus.a
make[8]: *** [/usr/src/linux-5.3.18-22/Makefile:1644:
_module_/root/bak/x86_64-native-linuxapp-gcc/build/kernel/linux/kni] Error 2
make[7]: *** [../../../linux-5.3.18-22/Makefile:179: sub-make] Error 2
make[6]: *** [/root/bak/mk/rte.module.mk:51: rte_kni.ko] Error 2
make[5]: *** [/root/bak/mk/rte.subdir.mk:37: kni] Error 2
make[5]: *** Waiting for unfinished jobs....
2. When compiling dpdk with meson,the error is reported as follows :
FAILED: kernel/linux/kni/rte_kni.ko
make -j4 -C /lib/modules/5.3.18-22-default/build
M=/root/bak/x86_64-native-linuxapp-gcc/kernel/linux/kni
src=/root/bak/kernel/linux/kni 'MODULE_CFLAGS=-include
/root/bak/config/rte_config.h -I/root/bak/lib/librte_eal/common/include
-I/root/bak/lib/librte_eal/linux/eal/include
-I/root/bak/x86_64-native-linuxapp-gcc -I/root/bak/kernel/linux/kni' modules
make: Entering directory '/usr/src/linux-5.3.18-22-obj/x86_64/default'
CC [M] /root/bak/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o
CC [M] /root/bak/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_misc.o
/root/bak/kernel/linux/kni/kni_net.c:791:20: error: initialization from
incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_tx_timeout = kni_net_tx_timeout,
^~~~~~~~~~~~~~~~~~
/root/bak/kernel/linux/kni/kni_net.c:791:20: note: (near initialization for
‘kni_net_netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-5.3.18-22/scripts/Makefile.build:281:
/root/bak/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o] Error 1
make[1]: *** [/usr/src/linux-5.3.18-22/Makefile:1644:
_module_/root/bak/x86_64-native-linuxapp-gcc/kernel/linux/kni] Error 2
make: *** [../../../linux-5.3.18-22/Makefile:179: sub-make] Error 2
make: Leaving directory '/usr/src/linux-5.3.18-22-obj/x86_64/default'
Bad commitid : de7bca5de2e3d605ef9977bd6eba8aa565af01fd
Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Date: Wed Jun 2 15:59:42 2021 +0200
kni: fix compilation on SLES15-SP3
Like what was done for mainline kernel in commit 38ad54f3bc76 ("kni: fix
build with Linux 5.6"), a new parameter 'txqueue' has to be added to
'ndo_tx_timeout' ndo on SLES 15-SP3 kernel.
Caused by:
commit c3bf155c40e9db722feb8a08c19efd44c12d5294
Author: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Date: Fri Sep 11 16:08:31 2020 +0200
- netdev: pass the stuck queue to the timeout handler
(jsc#SLE-13536).
- Refresh patches.suse/sfc-move-various-functions.patch.
That is part of the SLES 5.3.18 kernel
Cc: stable@dpdk.org
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2021-06-10 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-10 7:35 bugzilla [this message]
2021-06-18 10:55 ` [dpdk-dev] [Bug 728] [dpdk-19.11.9-rc2]When compiling dpdk with make or meson under SUSE Linux Enterprise Server 15 SP2, the compilation fails bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-728-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.