DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 727] [build]Some branch build failed on Fedora34 with gcc 11/clang12
Date: Tue, 08 Jun 2021 09:09:11 +0000	[thread overview]
Message-ID: <bug-727-3@http.bugs.dpdk.org/> (raw)

https://bugs.dpdk.org/show_bug.cgi?id=727

            Bug ID: 727
           Summary: [build]Some branch build failed on Fedora34 with gcc
                    11/clang12
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: longfengx.liang@intel.com
  Target Milestone: ---

1.Environment
  1)DPDK commit:
commit 34c96748ae1420c9101edce4a9d7c40c4ba2d58f (HEAD -> main, origin/main,
origin/for-next-net, origin/HEAD)
  2)OS:
Linux dpdk-Fedora34-64-gcc 5.11.15-300.fc34.x86_64 #1 SMP Fri Apr 16 13:41:48
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  3)gcc --version
gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0)
  4)clang --version
clang version 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34)

2.gcc build result:
  1)build command:
#CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-gcc
#ninja -C x86_64-native-linuxapp-gcc/

  2)output result:
[root@dpdk-Fedora34-64-gcc dpdk-next-net-llf]# ninja -C
x86_64-native-linuxapp-gcc/
ninja: Entering directory `x86_64-native-linuxapp-gcc/'
[488/2894] Compiling C object
lib/librte_table.a.p/librte_table_rte_swx_table_wm.c.o
FAILED: lib/librte_table.a.p/librte_table_rte_swx_table_wm.c.o
gcc -Ilib/librte_table.a.p -Ilib -I../lib -Ilib/librte_table
-I../lib/librte_table -I. -I.. -Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/x86/include
-I../lib/librte_eal/x86/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_metrics
-I../lib/librte_metrics -Ilib/librte_telemetry -I../lib/librte_telemetry
-Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool
-I../lib/librte_mempool -Ilib/librte_ring -I../lib/librte_ring
-Ilib/librte_port -I../lib/librte_port -Ilib/librte_ethdev
-I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte_net -Ilib/librte_meter
-I../lib/librte_meter -Ilib/librte_sched -I../lib/librte_sched
-Ilib/librte_ip_frag -I../lib/librte_ip_frag -Ilib/librte_hash
-I../lib/librte_hash -Ilib/librte_rcu -I../lib/librte_rcu
-Ilib/librte_cryptodev -I../lib/librte_cryptodev -Ilib/librte_eventdev
-I../lib/librte_eventdev -Ilib/librte_timer -I../lib/librte_timer
-Ilib/librte_kni -I../lib/librte_kni -Ilib/librte_pci -I../lib/librte_pci
-Ilib/librte_lpm -I../lib/librte_lpm -Ilib/librte_acl -I../lib/librte_acl
-fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch
-Werror -O3 -include rte_config.h -Wextra -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=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -MD -MQ
lib/librte_table.a.p/librte_table_rte_swx_table_wm.c.o -MF
lib/librte_table.a.p/librte_table_rte_swx_table_wm.c.o.d -o
lib/librte_table.a.p/librte_table_rte_swx_table_wm.c.o -c
../lib/librte_table/rte_swx_table_wm.c
../lib/librte_table/rte_swx_table_wm.c: In function ‘acl_table_create’:
../lib/librte_table/rte_swx_table_wm.c:64:14: error: array subscript ‘uint64_t
{aka long unsigned int}[0]’ is partly outside array bounds of ‘unsigned
char[7]’ [-Werror=array-bounds]
   64 |         *tsc = rte_get_tsc_cycles();
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
../lib/librte_table/rte_swx_table_wm.c:59:16: note: referencing an object of
size 7 allocated by ‘calloc’
   59 |         name = calloc(7, 1);
      |                ^~~~~~~~~~~~
cc1: all warnings being treated as errors
[499/2894] Compiling C object
lib/librte_vhost.a.p/librte_vhost_vhost_crypto.c.o
ninja: build stopped: subcommand failed.


  3)Expected results:
 Gcc build passed

3.clang build result:
  1)build command:
#CC=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-clang
#ninja -C x86_64-native-linuxapp-clang
  2)output result:
[root@dpdk-Fedora34-64-gcc dpdk-next-net-llf]# ninja -C
x86_64-native-linuxapp-clang/
ninja: Entering directory `x86_64-native-linuxapp-clang/'
[2523/2894] Compiling C object app/test/dpdk-test.p/test_cmdline_ipaddr.c.o
FAILED: app/test/dpdk-test.p/test_cmdline_ipaddr.c.o
clang -Iapp/test/dpdk-test.p -Iapp/test -I../app/test -Ilib/librte_acl
-I../lib/librte_acl -I. -I.. -Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/x86/include
-I../lib/librte_eal/x86/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_metrics
-I../lib/librte_metrics -Ilib/librte_telemetry -I../lib/librte_telemetry
-Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux
-Ilib/librte_pci -I../lib/librte_pci -Idrivers/bus/vdev -I../drivers/bus/vdev
-Ilib/librte_bitratestats -I../lib/librte_bitratestats -Ilib/librte_ethdev
-I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte_net -Ilib/librte_mbuf
-I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool
-Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_meter -I../lib/librte_meter
-Ilib/librte_bpf -I../lib/librte_bpf -Ilib/librte_cfgfile
-I../lib/librte_cfgfile -Ilib/librte_cmdline -I../lib/librte_cmdline
-Ilib/librte_cryptodev -I../lib/librte_cryptodev -Ilib/librte_rcu
-I../lib/librte_rcu -Ilib/librte_distributor -I../lib/librte_distributor
-Ilib/librte_efd -I../lib/librte_efd -Ilib/librte_hash -I../lib/librte_hash
-Ilib/librte_eventdev -I../lib/librte_eventdev -Ilib/librte_timer
-I../lib/librte_timer -Ilib/librte_fib -I../lib/librte_fib -Ilib/librte_rib
-I../lib/librte_rib -Ilib/librte_flow_classify -I../lib/librte_flow_classify
-Ilib/librte_table -I../lib/librte_table -Ilib/librte_port -I../lib/librte_port
-Ilib/librte_sched -I../lib/librte_sched -Ilib/librte_ip_frag
-I../lib/librte_ip_frag -Ilib/librte_kni -I../lib/librte_kni -Ilib/librte_lpm
-I../lib/librte_lpm -Ilib/librte_graph -I../lib/librte_graph -Ilib/librte_ipsec
-I../lib/librte_ipsec -Ilib/librte_security -I../lib/librte_security
-Ilib/librte_latencystats -I../lib/librte_latencystats -Ilib/librte_member
-I../lib/librte_member -Ilib/librte_node -I../lib/librte_node
-Ilib/librte_pipeline -I../lib/librte_pipeline -Ilib/librte_rawdev
-I../lib/librte_rawdev -Ilib/librte_reorder -I../lib/librte_reorder
-Ilib/librte_stack -I../lib/librte_stack -Idrivers/mempool/ring
-I../drivers/mempool/ring -Idrivers/mempool/stack -I../drivers/mempool/stack
-Idrivers/event/skeleton -I../drivers/event/skeleton -Idrivers/net/bonding
-I../drivers/net/bonding -Idrivers/net/ring -I../drivers/net/ring
-Ilib/librte_power -I../lib/librte_power -Ilib/librte_pdump
-I../lib/librte_pdump -Ilib/librte_compressdev -I../lib/librte_compressdev
-Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Xclang
-fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror
-O3 -include rte_config.h -Wextra -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-missing-field-initializers -D_GNU_SOURCE
-march=native -DALLOW_EXPERIMENTAL_API -fno-strict-aliasing
-DALLOW_INTERNAL_API -MD -MQ app/test/dpdk-test.p/test_cmdline_ipaddr.c.o -MF
app/test/dpdk-test.p/test_cmdline_ipaddr.c.o.d -o
app/test/dpdk-test.p/test_cmdline_ipaddr.c.o -c
../app/test/test_cmdline_ipaddr.c
../app/test/test_cmdline_ipaddr.c:259:3: error: suspicious concatenation of
string literals in an array initialization; did you mean to separate the
elements with a comma? [-Werror,-Wstring-concatenation]
                "random invalid text",
                ^
../app/test/test_cmdline_ipaddr.c:258:3: note: place parentheses around the
string literal to silence warning
                "1234:1234:1234:1234:1234:1234:1234:1234:1234:1234:1234"
                ^
1 error generated.
[2534/2894] Compiling C object
drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker_dual.c.o
ninja: build stopped: subcommand failed.
  3)Expected results:
Build passed

4.Now found failed branch(Same failure information with branch
"dpdk-next-net"):
 
dpdk-next-net-mlx/dpdk-next-net/dpdk-next-virtio/dpdk-next-net-intel/dpdk-next-crypto/dpdk-next-net-brcm/dpdk-next-eventdev/

-- 
You are receiving this mail because:
You are the assignee for the bug.

             reply	other threads:[~2021-06-08  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-08  9:09 bugzilla [this message]
2021-06-16  3:16 ` bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-727-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).