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 D431E4597A; Fri, 13 Sep 2024 11:57:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 644DC402B3; Fri, 13 Sep 2024 11:57:28 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id F0CE14025E for ; Fri, 13 Sep 2024 11:57:26 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id DD7CD4597B; Fri, 13 Sep 2024 11:57:26 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/meson Bug 1542] [dpdk21.11.8-rc1] meson build failed on Ubuntu24.04 and Fedora40 Date: Fri, 13 Sep 2024 09:57:26 +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: tingtingx.liao@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: multipart/alternative; boundary=17262214460.bbACD45E2.367280 Content-Transfer-Encoding: 7bit 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 --17262214460.bbACD45E2.367280 Date: Fri, 13 Sep 2024 11:57:26 +0200 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1542 Bug ID: 1542 Summary: [dpdk21.11.8-rc1] meson build failed on Ubuntu24.04 and Fedora40 Product: DPDK Version: 21.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: tingtingx.liao@intel.com Target Milestone: --- [Environment] DPDK version:=20 commit 680818068d31764357075cde440232ce5ab8b786 (HEAD, tag: v21.11.8-rc1, origin/21.11) OS: Ubuntu 24.04 LTS/6.8.0-31-generic, Fedora39/6.5.6-300.fc39.x86_64 Compiler: clang version 18.1.3/gcc version 13.2.0 Hardware platform: Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz [Test Setup] 1. Build with gcc: CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic x86_64-native-linuxapp-gcc ninja -j 10 -C x86_64-native-linuxapp-gcc 2. Build with clang: CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples= =3Dall --default-library=3Dstatic x86_64-native-linuxapp-clang ninja -j 10 -C x86_64-native-linuxapp-clang 3. Build with gcc-shared: CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dlibdir=3D-DRTE_BUILD_SHARED_LIB --default-library=3Dshared x86_64-native-linuxapp-gcc+shared ninja -j 10 -C x86_64-native-linuxapp-gcc+shared 4. Build with gcc-16byte CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic '-Dc_args=3D-DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC' x86_64-native-linuxapp-gcc+16byte ninja -j 10 -C x86_64-native-linuxapp-gcc+16byte 5. Build document: CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Denable_docs= =3Dtrue x86_64-native-linuxapp-doc ninja -j 10 -C x86_64-native-linuxapp-doc [Show the output from the previous commands.] FAILED: kernel/linux/kni/rte_kni.ko /usr/bin/make -j4 -C /lib/modules/6.8.0-31-generic/build M=3D/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134= 035/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni src=3D/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/202409101= 34035/dpdk/kernel/linux/kni 'MODULE_CFLAGS=3D -include /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/config/rte_config.h -I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403= 5/dpdk/lib/eal/include -I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403= 5/dpdk/lib/kni -I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403= 5/dpdk/x86_64-native-linuxapp-gcc -I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403= 5/dpdk/kernel/linux/kni' modules make: Entering directory '/usr/src/linux-headers-6.8.0-31-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 CC [M]=20 /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_misc.o CC [M]=20 /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/kernel/linux/kni/kni_net.c: In function =E2=80=98kni_get_drvinfo=E2=80=99: /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/kernel/linux/kni/kni_net.c:835:9: error: implicit declaration of function =E2=80=98strlcpy=E2=80=99; did you = mean =E2=80=98strscpy=E2=80=99? [-Werror=3Dimplicit-function-declaration] 835 | strlcpy(info->version, KNI_VERSION, sizeof(info->version)); | ^~~~~~~ | strscpy cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:243: /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.8.0-31-generic/Makefile:1926: /root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/= dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni] Error 2 make: *** [Makefile:240: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.8.0-31-generic' [3253/3330] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker.c.o [3254/3330] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker_dual.c.o ninja: build stopped FAILED: kernel/linux/kni/rte_kni.ko /usr/bin/make -j4 -C /lib/modules/6.8.0-31-generic/build M=3D/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/2024091= 0134035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni src=3D/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240= 910134035/dpdk/kernel/linux/kni 'MODULE_CFLAGS=3D -include /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/config/rte_config.h -I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101= 34035/dpdk/lib/eal/include -I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101= 34035/dpdk/lib/kni -I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101= 34035/dpdk/x86_64-native-linuxapp-clang -I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101= 34035/dpdk/kernel/linux/kni' modules make: Entering directory '/usr/src/linux-headers-6.8.0-31-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 CC [M]=20 /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_misc.o CC [M]=20 /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/kernel/linux/kni/kni_net.c: In function =E2=80=98kni_get_drvinfo=E2=80=99: /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/kernel/linux/kni/kni_net.c:835:9: error: implicit declaration of function =E2=80=98strlcpy=E2=80=99; did you = mean =E2=80=98strscpy=E2=80=99? [-Werror=3Dimplicit-function-declaration] 835 | strlcpy(info->version, KNI_VERSION, sizeof(info->version)); | ^~~~~~~ | strscpy cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:243: /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.8.0-31-generic/Makefile:1926: /root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134= 035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni] Error 2 make: *** [Makefile:240: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.8.0-31-generic' [3329/3330] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o ninja: build stopped [Expected Result] Build Passed --=20 You are receiving this mail because: You are the assignee for the bug.= --17262214460.bbACD45E2.367280 Date: Fri, 13 Sep 2024 11:57:26 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1542
Summary [dpdk21.11.8-rc1] meson build failed on Ubuntu24.04 and Fedor= a40
Product DPDK
Version 21.11
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component meson
Assignee dev@dpdk.org
Reporter tingtingx.liao@intel.com
Target Milestone ---

[Environment]
DPDK version:=20
commit 680818068d31764357075cde440232ce5ab8b786 (HEAD, tag: v21.11.8-rc1,
origin/21.11)
OS:  Ubuntu 24.04 LTS/6.8.0-31-generic, Fedora39/6.5.6-300.fc39.x86_64
Compiler: clang version 18.1.3/gcc version 13.2.0
Hardware platform: Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz

[Test Setup]
1. Build with gcc:
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da=
ll
--default-library=3Dstatic x86_64-native-linuxapp-gcc
ninja -j 10 -C x86_64-native-linuxapp-gcc

2. Build with clang:
CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=
=3Dall
--default-library=3Dstatic x86_64-native-linuxapp-clang
ninja -j 10 -C x86_64-native-linuxapp-clang

3. Build with gcc-shared:
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib
-Dlibdir=3D-DRTE_BUILD_SHARED_LIB --default-library=3Dshared
x86_64-native-linuxapp-gcc+shared
ninja -j 10 -C x86_64-native-linuxapp-gcc+shared

4. Build with gcc-16byte
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da=
ll
--default-library=3Dstatic '-Dc_args=3D-DRTE_LIBRTE_I40E_16BYTE_RX_DESC
-DRTE_LIBRTE_ICE_16BYTE_RX_DESC' x86_64-native-linuxapp-gcc+16byte
ninja -j 10 -C x86_64-native-linuxapp-gcc+16byte

5. Build document:
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Denable_docs=
=3Dtrue
x86_64-native-linuxapp-doc
ninja -j 10 -C x86_64-native-linuxapp-doc

[Show the output from the previous commands.]
FAILED: kernel/linux/kni/rte_kni.ko
/usr/bin/make -j4 -C /lib/modules/6.8.0-31-generic/build
M=3D/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134=
035/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni
src=3D/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/202409101=
34035/dpdk/kernel/linux/kni
'MODULE_CFLAGS=3D  -include
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/config/rte_config.h
-I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403=
5/dpdk/lib/eal/include
-I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403=
5/dpdk/lib/kni
-I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403=
5/dpdk/x86_64-native-linuxapp-gcc
-I/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/2024091013403=
5/dpdk/kernel/linux/kni'
modules
make: Entering directory '/usr/src/linux-headers-6.8.0-31-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4)
13.2.0
  You are using:           gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
  CC [M]=20
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_misc.o
  CC [M]=20
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/kernel/linux/kni/kni_net.c:
In function =E2=80=98kni_get_drvinfo=E2=80=99:
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/kernel/linux/kni/kni_net.c:835:9:
error: implicit declaration of function =E2=80=98strlcpy=E2=80=99; did you =
mean =E2=80=98strscpy=E2=80=99?
[-Werror=3Dimplicit-function-declaration]
  835 |         strlcpy(info->version, KNI_VERSION, sizeof(info->vers=
ion));
      |         ^~~~~~~
      |         strscpy
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243:
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o]
Error 1
make[1]: *** [/usr/src/linux-headers-6.8.0-31-generic/Makefile:1926:
/root/UB2404-64_K6.8.0_GCC13.2.0/x86_64-native-linuxapp-gcc/20240910134035/=
dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni]
Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.0-31-generic'
[3253/3330] Compiling C object
drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker.c.o
[3254/3330] Compiling C object
drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker_dual.c.o
ninja: build stopped

FAILED: kernel/linux/kni/rte_kni.ko
/usr/bin/make -j4 -C /lib/modules/6.8.0-31-generic/build
M=3D/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/2024091=
0134035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni
src=3D/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240=
910134035/dpdk/kernel/linux/kni
'MODULE_CFLAGS=3D  -include
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/config/rte_config.h
-I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101=
34035/dpdk/lib/eal/include
-I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101=
34035/dpdk/lib/kni
-I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101=
34035/dpdk/x86_64-native-linuxapp-clang
-I/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/202409101=
34035/dpdk/kernel/linux/kni'
modules
make: Entering directory '/usr/src/linux-headers-6.8.0-31-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4)
13.2.0
  You are using:           gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
  CC [M]=20
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_misc.o
  CC [M]=20
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/kernel/linux/kni/kni_net.c:
In function =E2=80=98kni_get_drvinfo=E2=80=99:
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/kernel/linux/kni/kni_net.c:835:9:
error: implicit declaration of function =E2=80=98strlcpy=E2=80=99; did you =
mean =E2=80=98strscpy=E2=80=99?
[-Werror=3Dimplicit-function-declaration]
  835 |         strlcpy(info->version, KNI_VERSION, sizeof(info->vers=
ion));
      |         ^~~~~~~
      |         strscpy
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243:
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o]
Error 1
make[1]: *** [/usr/src/linux-headers-6.8.0-31-generic/Makefile:1926:
/root/UB2404-64_K6.8.0_Clang18.1.3/x86_64-native-linuxapp-clang/20240910134=
035/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni]
Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.0-31-generic'
[3329/3330] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
ninja: build stopped

[Expected Result]
Build Passed
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17262214460.bbACD45E2.367280--