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 84B7D440F4; Tue, 28 May 2024 20:28:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B9BF4026C; Tue, 28 May 2024 20:28:18 +0200 (CEST) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mails.dpdk.org (Postfix) with ESMTP id 33FAC4025D for ; Tue, 28 May 2024 20:28:17 +0200 (CEST) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52742fdd363so1318249e87.1 for ; Tue, 28 May 2024 11:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1716920896; x=1717525696; darn=dpdk.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=8QE6sIgB3npEx46z9bomHZ5O1MPM5QqyCgGTFIxR7Bo=; b=BHrmaT0G0mJ9df2v6P/ZyDr3Aq9bj44c1TdD+MZuRMRy+MDrJN2cjL9Z9d2AMM8Qp8 lh0YBBaQVh9c9/sX2rUEaKYTzavayRcAodU2IznMvTxHPpBww/znIX1SsZ/DkcJmDQxz rKbwnYTvfoem3+HVR53nf1c+ndVUIIZK0cMac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716920896; x=1717525696; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8QE6sIgB3npEx46z9bomHZ5O1MPM5QqyCgGTFIxR7Bo=; b=BhDyu3mHUPed/SF0HFHSV6qu114JUsAIYxvW+AqLOttn9eo3Mp4Tyg6mtfxJydc7em a7U6A4H4lb/VGCBMcfu31a0o+QdjKDPtp6SK192gROiMkMcqQu34H/siLcVMruWM7A5o a76OSC2cia0PlYAaVOxMsGgsQqGOZsQp/9smxK9N29PMz5wzzExY0EP75E1ENIffqFDd V5xyxTc9hMgo3a83a6dIb+o7i4yyrXjuZYpnEROTKXNdG/g55AX0Eh9YokxJKr1l1lAC NQIrCJIO6GfFDIMroobY57SXg2MFpma6Xkreq6tPVremzwSWjHrjWZneN+IZy/vws8a9 D2Zg== X-Gm-Message-State: AOJu0Yzz7kJb7bbBTvlF0VkrwJxiY3L++54ETY3yuC51yY+dgNZmVA2K nHDlNO/6kMuB7+ee6qUE0btEqi+X8k0PhdjuejacNA6mif36TWTDE7aLaxqMTVamYEh4/06Irar jS+P/P7S6ZcuF6gIxw0EkScYyyABCBz7oz0c4mFymr+6TcrCV6O0= X-Google-Smtp-Source: AGHT+IEAs2wlS1lZUahOZgXarn/2hMPhaZDiWAh2Cr4CM4Z9BFhLLKN0sSlAxDdFlaSxrrpArb7jy/QCFFgR3SsWIuM= X-Received: by 2002:ac2:4c4d:0:b0:520:36bb:a6e1 with SMTP id 2adb3069b0e04-529651988a9mr12024645e87.29.1716920895967; Tue, 28 May 2024 11:28:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Cody Cheng Date: Tue, 28 May 2024 14:28:04 -0400 Message-ID: Subject: Re: Ubuntu 24.04 rte_pcapng.c warning To: ci@dpdk.org Content-Type: multipart/alternative; boundary="0000000000001cb0ea061987ccab" X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org --0000000000001cb0ea061987ccab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Here is the warning: FAILED: lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o ccache cc -Ilib/76b5a35@@rte_pcapng@sta -Ilib -I../lib -Ilib/pcapng -I../lib/pcapng -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fdiagnostics-color=3Dalways -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=3Dnative -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.pcapng -MD -MQ 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -MF 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o.d' -o 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -c ../lib/pcapng/rte_pcapng.c In file included from /usr/include/string.h:548, from ../lib/pcapng/rte_pcapng.c:9: In function =E2=80=98memcpy=E2=80=99, inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p= capng.c:131:2, inlined from =E2=80=98pcapng_section_block=E2=80=99 at ../lib/pcapng/rt= e_pcapng.c:192:8: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argument 2 null where non-null expected [-Werror=3Dnonnull] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99 In function =E2=80=98memcpy=E2=80=99, inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p= capng.c:131:2, inlined from =E2=80=98rte_pcapng_add_interface=E2=80=99 at ../lib/pcapn= g/rte_pcapng.c:308:8: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argument 2 null where non-null expected [-Werror=3Dnonnull] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99 In function =E2=80=98memcpy=E2=80=99, inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p= capng.c:131:2, inlined from =E2=80=98rte_pcapng_write_stats=E2=80=99 at ../lib/pcapng/= rte_pcapng.c:371:9: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argument 2 null where non-null expected [-Werror=3Dnonnull] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99 cc1: all warnings being treated as errors On Tue, May 28, 2024 at 12:32=E2=80=AFPM Cody Cheng wr= ote: > Hi, > > We have added the Ubuntu 24.04 environment to the Community Lab! Due to a > warning in rte_pcapng.c, we have temporarily disabled Werror. Once this > warning has been fixed, we will re-enable Werror. I have attached the log= s > for the warning error below. > > log.txt > > > Thanks, > Cody > --0000000000001cb0ea061987ccab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is the warning:

FAILED: lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pc=
apng.c.o=20
ccache cc -Ilib/76b5a35@@rte_pcapng@sta -Ilib -I../lib -Ilib/pcapng -I../li=
b/pcapng -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib/eal/incl=
ude -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/includ=
e -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -=
I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/telem=
etry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/tele=
metry -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../l=
ib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter=
 -I../lib/meter -fdiagnostics-color=3Dalways -pipe -D_FILE_OFFSET_BITS=3D64=
 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O3 -include rte_config.h -=
Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmi=
ssing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-defini=
tion -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-str=
ings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-fie=
ld-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=3Dnative=
 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation=
 -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.pcapng -MD -MQ 'lib/76b5a35@@rte_pcapn=
g@sta/pcapng_rte_pcapng.c.o' -MF 'lib/76b5a35@@rte_pcapng@sta/pcapn=
g_rte_pcapng.c.o.d' -o 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcap=
ng.c.o' -c ../lib/pcapng/rte_pcapng.c
In file included from /usr/include/string.h:548,
                 from ../lib/pcapng/rte_pcapng.c:9:
In function =E2=80=98memcpy=E2=80=99,
    inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p=
capng.c:131:2,
    inlined from =E2=80=98pcapng_section_block=E2=80=99 at ../lib/pcapng/rt=
e_pcapng.c:192:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argumen=
t 2 null where non-null expected [-Werror=3Dnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a cal=
l to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99
In function =E2=80=98memcpy=E2=80=99,
    inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p=
capng.c:131:2,
    inlined from =E2=80=98rte_pcapng_add_interface=E2=80=99 at ../lib/pcapn=
g/rte_pcapng.c:308:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argumen=
t 2 null where non-null expected [-Werror=3Dnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a cal=
l to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99
In function =E2=80=98memcpy=E2=80=99,
    inlined from =E2=80=98pcapng_add_option=E2=80=99 at ../lib/pcapng/rte_p=
capng.c:131:2,
    inlined from =E2=80=98rte_pcapng_write_stats=E2=80=99 at ../lib/pcapng/=
rte_pcapng.c:371:9:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: argumen=
t 2 null where non-null expected [-Werror=3Dnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a cal=
l to built-in function =E2=80=98__builtin___memcpy_chk=E2=80=99
cc1: all warnings being treated as errors

On Tue, May 28, 2024= at 12:32=E2=80=AFPM Cody Cheng <c= cheng@iol.unh.edu> wrote:
Hi,

We have added the = Ubuntu 24.04 environment to the Community Lab! Due to a warning in=C2=A0rte= _pcapng.c, we have temporarily disabled Werror. Once this warning has been = fixed, we will re-enable Werror. I have attached the logs for the warning e= rror below.=C2=A0


Thanks,
Cody
--0000000000001cb0ea061987ccab--