DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1142] [19.11.14-rc1]  kernel/linux/igb_uio make build failed with gcc12 on fedora37&&ubuntu22.10
@ 2022-12-07  7:10 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-12-07  7:10 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1142
           Summary: [19.11.14-rc1]  kernel/linux/igb_uio make build failed
                    with gcc12 on fedora37&&ubuntu22.10
           Product: DPDK
           Version: 19.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: daxuex.gao@intel.com
  Target Milestone: ---

[DPDK version]
commit f99f2e55af7a49a6ee6555a5554847094086017f
Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Date:   Mon Nov 28 11:46:00 2022 +0100

    version: 19.11.14-rc1

    Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

[OS version]
UB22.10-64/5.19.0-21-generic
GCC Version: 12.2.0
Fedora37-64/6.0.7-301.fc37.x86_64
GCC Version: 12.2.1 

[Test Setup]
sed -i -e 's/BNX2X_PMD=n$/BNX2X_PMD=y/' config/common_base
sed -i -e 's/PMD_PCAP=n$/PMD_PCAP=y/' config/common_base
sed -i -e 's/IGB_UIO=n$/IGB_UIO=y/' config/common_base
sed -i -e 's/PMD_QAT_SYM=n$/PMD_QAT_SYM=y/' config/common_base
sed -i -e 's/PMD_OPENSSL=n$/PMD_OPENSSL=y/' config/common_base
sed -i -e 's/PMD_ISAL=n$/PMD_ISAL=y/' config/common_base
sed -i -e 's/PMD_ZLIB=n$/PMD_ZLIB=y/' config/common_base
sed -i -e 's/KNI_KMOD=y$/KNI_KMOD=n/' config/common_base

make -j10 install T=x86_64-native-linuxapp-gcc

[Bad commit]
commit 9a6f9e34878ae119598c794061f7988215b51732
Author: David Marchand <david.marchand@redhat.com>
Date:   Thu Jun 16 16:46:50 2022 +0200

    vhost/crypto: fix build with GCC 12

    [ upstream commit 4414bb67010dfec2559af52efe8f479b26d55447 ]

    GCC 12 raises the following warning:

    In file included from ../lib/mempool/rte_mempool.h:46,
                     from ../lib/mbuf/rte_mbuf.h:38,
                     from ../lib/vhost/vhost_crypto.c:7:

[Error log]
== Build drivers/common/dpaax
  CC octeontx_mbox.o
  CC cpt_pmd_ops_helper.o
  CC otx2_dev.o
  CC otx2_irq.o
  CC otx2_mbox.o
  CC otx2_common.o
  CC dpaax_iova_table.o
  CC dpaa_of.o
  AR librte_common_octeontx.a
  CC [M] 
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio/igb_uio.o
  CC [M] 
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/kni/kni_misc.o
  CC [M]  /opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/kni/kni_net.o
  INSTALL-LIB librte_common_octeontx.a
  CC caamflib.o
  AR librte_common_dpaax.a
  INSTALL-LIB librte_common_dpaax.a
  AR librte_common_cpt.a
  INSTALL-LIB librte_common_cpt.a
  AR librte_common_octeontx2.a
  INSTALL-LIB librte_common_octeontx2.a
== Build drivers/bus
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio/igb_uio.c: In
function ‘igbuio_pci_probe’:
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio/igb_uio.c:501:15:
error: implicit declaration of function ‘pci_set_dma_mask’; did you mean
‘ipi_send_mask’? [-Werror=implicit-function-declaration]
  501 |         err = pci_set_dma_mask(dev,  DMA_BIT_MASK(64));
      |               ^~~~~~~~~~~~~~~~
      |               ipi_send_mask
== Build drivers/bus/dpaa
== Build drivers/bus/pci
== Build drivers/bus/fslmc
== Build drivers/bus/vdev
== Build drivers/bus/ifpga
== Build drivers/bus/vmbus
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio/igb_uio.c:507:15:
error: implicit declaration of function ‘pci_set_consistent_dma_mask’
[-Werror=implicit-function-declaration]
  507 |         err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64));
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[8]: *** [scripts/Makefile.build:249:
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio/igb_uio.o]
Error 1
make[7]: *** [Makefile:1856:
/opt/dpdk/x86_64-native-linuxapp-gcc/build/kernel/linux/igb_uio] Error 2
make[6]: *** [/opt/dpdk/mk/rte.module.mk:51: igb_uio.ko] Error 2
make[5]: *** [/opt/dpdk/mk/rte.subdir.mk:37: igb_uio] Error 2
make[5]: *** Waiting for unfinished jobs....
  SYMLINK-FILE include/rte_bus_vdev.h

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-07  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07  7:10 [Bug 1142] [19.11.14-rc1] kernel/linux/igb_uio make build failed with gcc12 on fedora37&&ubuntu22.10 bugzilla

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).