All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1142] [19.11.14-rc1]  kernel/linux/igb_uio make build failed with gcc12 on fedora37&&ubuntu22.10
Date: Wed, 07 Dec 2022 07:10:55 +0000	[thread overview]
Message-ID: <bug-1142-3@http.bugs.dpdk.org/> (raw)

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.

                 reply	other threads:[~2022-12-07  7:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-1142-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.