|FAILURE| pw134898 [PATCH v2 4/4] net/hns3: use stdatomic API

0-day Robot robot at bytheb.org
Thu Dec 7 03:21:01 CET 2023


From: robot at bytheb.org

Test-Label: github-robot: build
Test-Status: FAILURE
http://patchwork.dpdk.org/patch/134898/

_github build: failed_
Build URL: https://github.com/ovsrobot/dpdk/actions/runs/7122799721
Build Logs:
-----------------------Summary of failed steps-----------------------
"ubuntu-20.04-gcc-stdatomic" failed at step Build and test
"ubuntu-20.04-clang-stdatomic" failed at step Build and test
"ubuntu-20.04-gcc-abi+debug+doc+examples+tests" failed at step Build and test
"ubuntu-20.04-clang-asan+doc+tests" failed at step Build and test
"ubuntu-20.04-gcc-shared-aarch64" failed at step Build and test
"fedora:37-gcc" failed at step Build
"fedora:37-clang" failed at step Build
----------------------End summary of failed steps--------------------

-------------------------------BEGIN LOGS----------------------------
####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-stdatomic" at step Build and test
####################################################################################
In file included from ../drivers/net/hns3/hns3_common.h:10,
                 from ../drivers/net/hns3/hns3_intr.c:11:
../drivers/net/hns3/hns3_ethdev.h:1008:60: note: expected ‘uint64_t * _Atomic’ {aka ‘long unsigned int * _Atomic’} but argument is of type ‘_Atomic uint64_t *’ {aka ‘_Atomic long unsigned int *’}
 1008 | hns3_atomic_set_bit(unsigned int nr, RTE_ATOMIC(uint64_t *)addr)
../drivers/net/hns3/hns3_intr.c: In function ‘hns3_reset_post’:
../drivers/net/hns3/hns3_intr.c:2754:30: error: passing argument 2 of ‘hns3_clear_reset_level’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2754 |   hns3_clear_reset_level(hw, &hw->reset.pending);
      |                              ^~~~~~~~~~~~~~~~~~
      |                              |
      |                              _Atomic uint64_t * {aka _Atomic long unsigned int *}
../drivers/net/hns3/hns3_intr.c:2541:66: note: expected ‘uint64_t * _Atomic’ {aka ‘long unsigned int * _Atomic’} but argument is of type ‘_Atomic uint64_t *’ {aka ‘_Atomic long unsigned int *’}
 2541 | hns3_clear_reset_level(struct hns3_hw *hw, RTE_ATOMIC(uint64_t *)levels)
../drivers/net/hns3/hns3_intr.c: In function ‘hns3_reset_fail_handle’:
../drivers/net/hns3/hns3_intr.c:2805:29: error: passing argument 2 of ‘hns3_clear_reset_level’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2805 |  hns3_clear_reset_level(hw, &hw->reset.pending);
      |                             ^~~~~~~~~~~~~~~~~~
      |                             |
      |                             _Atomic uint64_t * {aka _Atomic long unsigned int *}
../drivers/net/hns3/hns3_intr.c:2541:66: note: expected ‘uint64_t * _Atomic’ {aka ‘long unsigned int * _Atomic’} but argument is of type ‘_Atomic uint64_t *’ {aka ‘_Atomic long unsigned int *’}
 2541 | hns3_clear_reset_level(struct hns3_hw *hw, RTE_ATOMIC(uint64_t *)levels)
cc1: all warnings being treated as errors
[1452/2844] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_tx.c.o'.
[1453/2844] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_flow.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-stdatomic" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################
../lib/eal/include/rte_stdatomic.h:98:2: note: expanded from macro 'rte_atomic_fetch_and_explicit'
        atomic_fetch_and_explicit(ptr, val, memorder)
        ^                         ~~~
/usr/lib/llvm-11/lib/clang/11.0.0/include/stdatomic.h:145:35: note: expanded from macro 'atomic_fetch_and_explicit'
#define atomic_fetch_and_explicit __c11_atomic_fetch_and
                                  ^
In file included from ../drivers/net/hns3/hns3_cmd.c:8:
In file included from ../drivers/net/hns3/hns3_common.h:10:
../drivers/net/hns3/hns3_ethdev.h:1026:9: error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid)
        return rte_atomic_fetch_and_explicit(addr,
               ^                             ~~~~
../lib/eal/include/rte_stdatomic.h:98:2: note: expanded from macro 'rte_atomic_fetch_and_explicit'
        atomic_fetch_and_explicit(ptr, val, memorder)
        ^                         ~~~
/usr/lib/llvm-11/lib/clang/11.0.0/include/stdatomic.h:145:35: note: expanded from macro 'atomic_fetch_and_explicit'
#define atomic_fetch_and_explicit __c11_atomic_fetch_and
                                  ^
4 errors generated.
[1434/2844] Compiling C object 'drivers/net/hinic/base/12a4447@@hinic_base at sta/hinic_pmd_mbox.c.o'.
[1435/2844] Compiling C object 'drivers/net/hinic/base/12a4447@@hinic_base at sta/hinic_pmd_hwdev.c.o'.
[1436/2844] Compiling C object 'drivers/a715181@@tmp_rte_net_gve at sta/net_gve_gve_tx.c.o'.
[1437/2844] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_ethdev.c.o'.
[1438/2844] Generating pipeline.sym_chk with a meson_exe.py custom command.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-abi+debug+doc+examples+tests" at step Build and test
####################################################################################
In file included from ../lib/eal/include/generic/rte_atomic.h:18,
                 from ../lib/eal/x86/include/rte_atomic.h:16,
                 from ../lib/eal/include/generic/rte_pause.h:19,
                 from ../lib/eal/x86/include/rte_pause.h:12,
                 from ../lib/eal/include/generic/rte_rwlock.h:34,
                 from ../lib/eal/x86/include/rte_rwlock.h:12,
                 from ../lib/eal/include/rte_eal_memconfig.h:10,
                 from ../lib/eal/include/rte_memory.h:25,
                 from ../lib/eal/include/rte_malloc.h:16,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/hns3/hns3_ethdev_vf.c:6:
../lib/eal/include/rte_stdatomic.h:139: note: macro "rte_atomic_load_explicit" defined here
  139 | #define rte_atomic_load_explicit(ptr, memorder) \
      | 
../drivers/net/hns3/hns3_ethdev_vf.c:646:2: error: ‘rte_atomic_load_explicit’ undeclared (first use in this function)
  646 |  rte_atomic_load_explicit(&vf->pf_push_lsc_cap,
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/hns3/hns3_ethdev_vf.c:646:2: note: each undeclared identifier is reported only once for each function it appears in
[1499/3916] Generating symbol file 'lib/76b5a35@@rte_pipeline at sha/librte_pipeline.so.24.1.symbols'.
[1500/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_fdir.c.o'.
[1501/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_dcb.c.o'.
[1502/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_flow.c.o'.
[1503/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_intr.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-abi+debug+doc+examples+tests" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################
[1490/3916] Generating rte_net_failsafe.pmd.c with a custom command.
[1491/3916] Compiling C object 'drivers/a715181@@rte_net_failsafe at sta/meson-generated_.._rte_net_failsafe.pmd.c.o'.
[1492/3916] Linking static target drivers/librte_net_failsafe.a.
[1493/3916] Compiling C object 'drivers/a715181@@rte_net_failsafe at sha/meson-generated_.._rte_net_failsafe.pmd.c.o'.
[1494/3916] Linking target drivers/librte_net_failsafe.so.24.1.
[1495/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev_vf.c.o'.
FAILED: drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev_vf.c.o 
ccache clang -Idrivers/a715181@@tmp_rte_net_hns3 at sta -Idrivers -I../drivers -Idrivers/net/hns3 -I../drivers/net/hns3 -Ilib/ethdev -I../lib/ethdev -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/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Xclang -fcolor-diagnostics -fsanitize=address -fno-omit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=corei7 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.hns3 -MD -MQ 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev_vf.c.o' -MF 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev_vf.c.o.d' -o 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev_vf.c.o' -c ../drivers/net/hns3/hns3_ethdev_vf.c
../drivers/net/hns3/hns3_ethdev_vf.c:647:33: error: too many arguments provided to function-like macro invocation
                HNS3_PF_PUSH_LSC_CAP_UNKNOWN, rte_memory_order_release);
                                              ^
../lib/eal/include/rte_stdatomic.h:139:9: note: macro 'rte_atomic_load_explicit' defined here
#define rte_atomic_load_explicit(ptr, memorder) \
        ^
../drivers/net/hns3/hns3_ethdev_vf.c:646:2: error: use of undeclared identifier 'rte_atomic_load_explicit'
        rte_atomic_load_explicit(&vf->pf_push_lsc_cap,
        ^
2 errors generated.
[1496/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_rx.c.o'.
[1497/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_dcb.c.o'.
[1498/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_flow.c.o'.
[1499/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev.c.o'.
[1500/3916] Compiling C object 'drivers/a715181@@tmp_rte_net_hinic at sta/net_hinic_hinic_pmd_tx.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-shared-aarch64" at step Build and test
####################################################################################
                 from ../lib/eal/arm/include/rte_atomic.h:9,
                 from ../lib/eal/include/generic/rte_pause.h:19,
                 from ../lib/eal/arm/include/rte_pause_64.h:19,
                 from ../lib/eal/arm/include/rte_pause.h:13,
                 from ../lib/eal/include/generic/rte_rwlock.h:34,
                 from ../lib/eal/arm/include/rte_rwlock.h:12,
                 from ../lib/eal/include/rte_eal_memconfig.h:10,
                 from ../lib/eal/include/rte_memory.h:25,
                 from ../lib/eal/include/rte_malloc.h:16,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/hns3/hns3_ethdev_vf.c:6:
../lib/eal/include/rte_stdatomic.h:139: note: macro "rte_atomic_load_explicit" defined here
  139 | #define rte_atomic_load_explicit(ptr, memorder) \
      | 
../drivers/net/hns3/hns3_ethdev_vf.c:646:2: error: ‘rte_atomic_load_explicit’ undeclared (first use in this function)
  646 |  rte_atomic_load_explicit(&vf->pf_push_lsc_cap,
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/hns3/hns3_ethdev_vf.c:646:2: note: each undeclared identifier is reported only once for each function it appears in
[1518/4088] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_dcb.c.o'.
[1519/4088] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_regs.c.o'.
[1520/4088] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_intr.c.o'.
[1521/4088] Compiling C object 'drivers/a715181@@tmp_rte_net_hns3 at sta/net_hns3_hns3_ethdev.c.o'.
[1522/4088] Compiling C object 'drivers/a715181@@tmp_rte_net_cnxk at sta/net_cnxk_tx_cn10k_tx_96_111_vec_mseg.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-shared-aarch64" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "fedora:37-gcc" at step Build
####################################################################################
####################################################################################
#### [End job log] "fedora:37-gcc" at step Build
####################################################################################




####################################################################################
#### [Begin job log] "fedora:37-clang" at step Build
####################################################################################
####################################################################################
#### [End job log] "fedora:37-clang" at step Build
####################################################################################
--------------------------------END LOGS-----------------------------


More information about the test-report mailing list