Bug 1422 - vfio-pci driver fails to compile on Alpine Linux
Summary: vfio-pci driver fails to compile on Alpine Linux
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2024-04-26 22:44 CEST by Adam Hassick
Modified: 2024-04-26 22:44 CEST (History)
0 users



Attachments

Description Adam Hassick 2024-04-26 22:44:10 CEST
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]

Note You need to log in before you can comment on or make changes to this bug.