Skip to contentSkip to conversation

vfio-pci driver fails to compile on Alpine Linux

DPDK/core Bug 1422 [email protected] 1 participant 2 messages Apr 26, 2024 – Jul 30, 2024

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 1422
Summary: vfio-pci driver fails to compile on Alpine Linux
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

The DPDK main branch, on commit 7e06c0de1952d3109a5b0c4779d7e7d8059c9d78, encounters a compilation error on Alpine Linux. This appears to be a new issue caused by us upgrading our container image, which includes newer versions of GCC and musl.

GCC version: (Alpine 13.2.1_git20231014) 13.2.1 20231014 musl-libc version: 1.2.4_git20230717-r4
Kernel: 5.4.0-167 generic

Output from GCC:

../drivers/bus/pci/linux/pci_vfio.c: In function 'pci_vfio_read_config':
../drivers/bus/pci/linux/pci_vfio.c:83:16: warning: implicit declaration of function 'pread64'; did you mean 'pread'? [-Wimplicit-function-declaration]

   83 |         return pread64(fd, buf, len, offset + offs);
      |                ^~~~~~~
      |                pread

../drivers/bus/pci/linux/pci_vfio.c:83:16: warning: nested extern declaration of 'pread64' [-Wnested-externs] ../drivers/bus/pci/linux/pci_vfio.c: In function 'pci_vfio_write_config':
../drivers/bus/pci/linux/pci_vfio.c:104:16: warning: implicit declaration of function 'pwrite64'; did you mean '_ptwrite64'? [-Wimplicit-function-declaration]

  104 |         return pwrite64(fd, buf, len, offset + offs);
      |                ^~~~~~~~
      |                _ptwrite64

../drivers/bus/pci/linux/pci_vfio.c:104:16: warning: nested extern declaration of 'pwrite64' [-Wnested-externs]

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

Thomas Monjalon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=884f83ccf7

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.