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 dev@dpdk.org
Reporter ahassick@iol.unh.edu
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]
          


You are receiving this mail because: