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 3CF4BA0C43; Thu, 23 Sep 2021 08:19:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BCF1410DD; Thu, 23 Sep 2021 08:19:47 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 9D3EB410DC for ; Thu, 23 Sep 2021 08:19:45 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 64BA1A0C45; Thu, 23 Sep 2021 08:19:45 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 23 Sep 2021 06:19:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: meson X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longfengx.liang@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 812] [build]Meson build failed on OpenSuse15.3 with GCC 7.5.0/clang 11.0.1 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" https://bugs.dpdk.org/show_bug.cgi?id=3D812 Bug ID: 812 Summary: [build]Meson build failed on OpenSuse15.3 with GCC 7.5.0/clang 11.0.1 Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: longfengx.liang@intel.com Target Milestone: --- 1.DPDK version: commit 68818c85d27d3d749affd97f5eaca1812735dfb4 (HEAD -> main) Author: David Hunt Date: Tue Sep 21 12:50:15 2021 +0100 Signed-off-by: David Hunt Acked-by: Bruce Richardson 2.OS version: OpenSuse15.3 /5.3.18-57-default gcc version:gcc (SUSE Linux) 7.5.0 clang version: clang version 11.0.1 3.Test Setup: gcc&meason build cmd: CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc/ clang&meson build cmd: CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples= =3Dall --default-library=3Dstatic x86_64-native-linuxapp-clang ninja -C x86_64-native-linuxapp-clang/ 4.gcc&clang used meson build failed output info: gcc output info: localhost:~/dpdk # ninja -C x86_64-native-linuxapp-gcc/ ninja: Entering directory `x86_64-native-linuxapp-gcc/' [2930/2930] Generating rte_kni with a custom command FAILED: kernel/linux/kni/rte_kni.ko make -j4 -C /lib/modules/5.3.18-57-default/build M=3D/root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni src=3D/root/dpdk/kernel/linux/kni 'MODULE_CFLAGS=3D-include /root/dpdk/config/rte_config.h -I/root/dpdk/lib/eal/include -I/root/dpdk/lib/kni -I/root/dpdk/x86_64-native-linuxapp-gcc -I/root/dpdk/kernel/linux/kni' modules make: Entering directory '/usr/src/linux-5.3.18-57-obj/x86_64/default' CC [M] /root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o CC [M] /root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_misc.o /root/dpdk/kernel/linux/kni/kni_net.c:809:20: error: initialization from incompatible pointer type [-Werror=3Dincompatible-pointer-types] .ndo_tx_timeout =3D kni_net_tx_timeout, ^~~~~~~~~~~~~~~~~~ /root/dpdk/kernel/linux/kni/kni_net.c:809:20: note: (near initialization for =E2=80=98kni_net_netdev_ops.ndo_tx_timeout=E2=80=99) cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-5.3.18-57/scripts/Makefile.build:287: /root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o] Error 1 make[1]: *** [/usr/src/linux-5.3.18-57/Makefile:1670: _module_/root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni] Error 2 make: *** [../../../linux-5.3.18-57/Makefile:179: sub-make] Error 2 make: Leaving directory '/usr/src/linux-5.3.18-57-obj/x86_64/default' ninja: build stopped: subcommand failed. clang output info: localhost:~/dpdk # ninja -C x86_64-native-linuxapp-clang/ ninja: Entering directory `x86_64-native-linuxapp-clang/' [2932/2932] Generating rte_kni with a custom command FAILED: kernel/linux/kni/rte_kni.ko make -j4 -C /lib/modules/5.3.18-57-default/build M=3D/root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni src=3D/root/dpdk/kernel/linux/kni 'MODULE_CFLAGS=3D-include /root/dpdk/config/rte_config.h -I/root/dpdk/lib/eal/include -I/root/dpdk/lib/kni -I/root/dpdk/x86_64-native-linuxapp-clang -I/root/dpdk/kernel/linux/kni' modules make: Entering directory '/usr/src/linux-5.3.18-57-obj/x86_64/default' CC [M] /root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o CC [M] /root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_misc= .o /root/dpdk/kernel/linux/kni/kni_net.c:809:20: error: initialization from incompatible pointer type [-Werror=3Dincompatible-pointer-types] .ndo_tx_timeout =3D kni_net_tx_timeout, ^~~~~~~~~~~~~~~~~~ /root/dpdk/kernel/linux/kni/kni_net.c:809:20: note: (near initialization for =E2=80=98kni_net_netdev_ops.ndo_tx_timeout=E2=80=99) cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-5.3.18-57/scripts/Makefile.build:288: /root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/usr/src/linux-5.3.18-57/Makefile:1670: _module_/root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni] Error 2 make: *** [../../../linux-5.3.18-57/Makefile:179: sub-make] Error 2 make: Leaving directory '/usr/src/linux-5.3.18-57-obj/x86_64/default' ninja: build stopped: subcommand failed. --=20 You are receiving this mail because: You are the assignee for the bug.=