<div dir="ltr">Got it!<br><br>I've re-enabled Werror now that the patch has been merged.<div><br></div><div>Thanks,<br>Cody</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 28, 2024 at 5:41 PM Thomas Monjalon <<a href="mailto:thomas@monjalon.net" target="_blank">thomas@monjalon.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
There was a patch pending for this issue.<br>
It has been merged quickly because it looks urgent,<br>
but I would have preferred a test of the patch from you.<br>
Next time ;)<br>
<br>
Thanks<br>
<br>
<br>
28/05/2024 20:28, Cody Cheng:<br>
> Here is the warning:<br>
> <br>
> FAILED: lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o<br>
> ccache cc -Ilib/76b5a35@@rte_pcapng@sta -Ilib -I../lib -Ilib/pcapng<br>
> -I../lib/pcapng -I. -I../ -Iconfig -I../config -Ilib/eal/include<br>
> -I../lib/eal/include -Ilib/eal/linux/include<br>
> -I../lib/eal/linux/include -Ilib/eal/x86/include<br>
> -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common<br>
> -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log<br>
> -I../lib/log -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics<br>
> -Ilib/telemetry -I../lib/telemetry -Ilib/ethdev -I../lib/ethdev<br>
> -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool<br>
> -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter<br>
> -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall<br>
> -Winvalid-pch -Wextra -Werror -std=c11 -O3 -include rte_config.h<br>
> -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral<br>
> -Wformat-security -Wmissing-declarations -Wmissing-prototypes<br>
> -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare<br>
> -Wstrict-prototypes -Wundef -Wwrite-strings<br>
> -Wno-address-of-packed-member -Wno-packed-not-aligned<br>
> -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE<br>
> -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API<br>
> -DALLOW_INTERNAL_API -Wno-format-truncation<br>
> -DRTE_LOG_DEFAULT_LOGTYPE=lib.pcapng -MD -MQ<br>
> 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -MF<br>
> 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o.d' -o<br>
> 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -c<br>
> ../lib/pcapng/rte_pcapng.c<br>
> In file included from /usr/include/string.h:548,<br>
>                  from ../lib/pcapng/rte_pcapng.c:9:<br>
> In function ‘memcpy’,<br>
>     inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,<br>
>     inlined from ‘pcapng_section_block’ at ../lib/pcapng/rte_pcapng.c:192:8:<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error:<br>
> argument 2 null where non-null expected [-Werror=nonnull]<br>
>    29 |   return __builtin___memcpy_chk (__dest, __src, __len,<br>
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>    30 |                                  __glibc_objsize0 (__dest));<br>
>       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in<br>
> a call to built-in function ‘__builtin___memcpy_chk’<br>
> In function ‘memcpy’,<br>
>     inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,<br>
>     inlined from ‘rte_pcapng_add_interface’ at ../lib/pcapng/rte_pcapng.c:308:8:<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error:<br>
> argument 2 null where non-null expected [-Werror=nonnull]<br>
>    29 |   return __builtin___memcpy_chk (__dest, __src, __len,<br>
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>    30 |                                  __glibc_objsize0 (__dest));<br>
>       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in<br>
> a call to built-in function ‘__builtin___memcpy_chk’<br>
> In function ‘memcpy’,<br>
>     inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,<br>
>     inlined from ‘rte_pcapng_write_stats’ at ../lib/pcapng/rte_pcapng.c:371:9:<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error:<br>
> argument 2 null where non-null expected [-Werror=nonnull]<br>
>    29 |   return __builtin___memcpy_chk (__dest, __src, __len,<br>
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>    30 |                                  __glibc_objsize0 (__dest));<br>
>       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in<br>
> a call to built-in function ‘__builtin___memcpy_chk’<br>
> cc1: all warnings being treated as errors<br>
> <br>
> <br>
> On Tue, May 28, 2024 at 12:32 PM Cody Cheng <<a href="mailto:ccheng@iol.unh.edu" target="_blank">ccheng@iol.unh.edu</a>> wrote:<br>
> <br>
> > Hi,<br>
> ><br>
> > We have added the Ubuntu 24.04 environment to the Community Lab! Due to a<br>
> > warning in rte_pcapng.c, we have temporarily disabled Werror. Once this<br>
> > warning has been fixed, we will re-enable Werror. I have attached the logs<br>
> > for the warning error below.<br>
> ><br>
> >  log.txt<br>
> > <<a href="https://drive.google.com/file/d/1qnBcQWg9AHG8RksjGjv8QaqTqw6yC3Gc/view?usp=drive_web" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1qnBcQWg9AHG8RksjGjv8QaqTqw6yC3Gc/view?usp=drive_web</a>><br>
> ><br>
> > Thanks,<br>
> > Cody<br>
> ><br>
> <br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>