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 14554A04FD; Mon, 23 May 2022 09:52:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4F0E4014F; Mon, 23 May 2022 09:52:50 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 8C91B40041 for ; Mon, 23 May 2022 09:52:49 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 5E702A04FF; Mon, 23 May 2022 09:52:49 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1017] [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64 Date: Mon, 23 May 2022 07:52:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daxuex.gao@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 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1017 Bug ID: 1017 Summary: [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64 Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex.gao@intel.com Target Milestone: --- [DPDK Version] dpdk latest code dpdk-next-* and dpdk branch=20=20 [OS version] Ubuntu22.04 LTS/(5.17.5-051705-generic/5.15.0-25-generic) GCC 11.2.0 [Test Setup] This error is to fix https://bugs.dpdk.org/show_bug.cgi?id=3D1009 # wget https://patchwork.dpdk.org/project/dpdk/patch/20220510150635.61975-1-heinri= ch.schuchardt@canonical.com/mbox/ -O /tmp/a.patch # git apply /tmp/a.patch # meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Dall --default-library=3Dstatic gcc-linux-app # ninja -C gcc-linux-app [log] [warning log] ninja: Entering directory `gcc-linux-app' [3631/3631] Generating kernel/linux/kni/rte_kni with a custom command make: Entering directory '/usr/src/linux-headers-5.17.5-051705-generic' CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/kni_misc.o CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/kni_net.o /tmp/dpdk/kernel/linux/kni/kni_net.c: In function =E2=80=98kni_net_set_mac= =E2=80=99: /tmp/dpdk/kernel/linux/kni/kni_net.c:782:22: warning: passing argument 1 of =E2=80=98memcpy=E2=80=99 discards =E2=80=98const=E2=80=99 qualifier from po= inter target type [-Wdiscarded-qualifiers] 782 | memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); | ~~~~~^~~~~~~~~ In file included from ./include/linux/string.h:253, from ./include/linux/bitmap.h:11, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:63, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/ratelimit.h:6, from ./include/linux/dev_printk.h:16, from ./include/linux/device.h:15, from /tmp/dpdk/kernel/linux/kni/kni_net.c:11: ./include/linux/fortify-string.h:212:37: note: expected =E2=80=98void *=E2= =80=99 but argument is of type =E2=80=98const unsigned char *=E2=80=99 212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size= _t size) | ~~~~~~^ /tmp/dpdk/kernel/linux/kni/kni_misc.c: In function =E2=80=98kni_ioctl_creat= e=E2=80=99: /tmp/dpdk/kernel/linux/kni/kni_misc.c:406:31: warning: passing argument 1 of =E2=80=98memcpy=E2=80=99 discards =E2=80=98const=E2=80=99 qualifier from po= inter target type [-Wdiscarded-qualifiers] 406 | memcpy(net_dev->dev_addr, dev_info.mac_addr, ETH_AL= EN); | ~~~~~~^~~~~~~~~ In file included from ./include/linux/string.h:253, from ./include/linux/bitmap.h:11, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/cpumask.h:5, from ./arch/x86/include/asm/msr.h:11, from ./arch/x86/include/asm/processor.h:22, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:65, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/dpdk/kernel/linux/kni/kni_misc.c:7: ./include/linux/fortify-string.h:212:37: note: expected =E2=80=98void *=E2= =80=99 but argument is of type =E2=80=98const unsigned char *=E2=80=99 212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size= _t size) | ~~~~~~^ /tmp/dpdk/kernel/linux/kni/kni_misc.c:409:40: warning: passing argument 1 of =E2=80=98eth_random_addr=E2=80=99 discards =E2=80=98const=E2=80=99 qualifie= r from pointer target type [-Wdiscarded-qualifiers] 409 | eth_random_addr(net_dev->dev_addr); | ~~~~~~^~~~~~~~~ In file included from /tmp/dpdk/kernel/linux/kni/kni_misc.c:10: ./include/linux/etherdevice.h:230:40: note: expected =E2=80=98u8 *=E2=80=99= {aka =E2=80=98unsigned char *=E2=80=99} but argument is of type =E2=80=98const unsigned char *=E2=80=99 230 | static inline void eth_random_addr(u8 *addr) | ~~~^~~ LD [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.o MODPOST /tmp/dpdk/gcc-linux-app/kernel/linux/kni/Module.symvers CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.mod.o LD [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.ko BTF [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.ko Skipping BTF generation for /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kn= i.ko due to unavailability of vmlinux make: Leaving directory '/usr/src/linux-headers-5.17.5-051705-generic' --=20 You are receiving this mail because: You are the assignee for the bug.=