[Bug 259275] [PATCH] audio/oss fails to build on 14-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Oct 2021 15:49:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259275

            Bug ID: 259275
           Summary: [PATCH] audio/oss fails to build on 14-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: crees@FreeBSD.org
          Reporter: cy@FreeBSD.org
          Assignee: crees@FreeBSD.org
             Flags: maintainer-feedback?(crees@FreeBSD.org)

The audio/oss build failure on 14-CURRENT is:

--- osscore.o ---
/usr/local/bin/ccache cc  -O2 -pipe -Wno-misleading-indentation
-Wno-tautological-overlap-compare -fno-strict-aliasing
-Wno-misleading-indentation -Wno-tautological-overlap-compare  -Werror
-D_KERNEL -DKLD_MODULE -nostdinc   -include
/wrkdirs/usr/ports/audio/oss/work/.build/prototype/usr/local/lib/oss/build/opt_global.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include     -MD  -MF.depend.osscore.o
-MTosscore.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare
-Wno-error=empty-body -Wno-error=parentheses-equality
-Wno-error=unused-function -Wno-error=pointer-sign
-Wno-error=shift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length   -mno-aes -mno-avx  -std=iso9899:1999 -c osscore.c -o
osscore.o
osscore.c:150:38: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  intr->irqres = bus_alloc_resource (osdev->dip, SYS_RES_IRQ, &(intr->irqid),
                                     ^~~~~~~~~~
/usr/src/sys/sys/bus.h:518:46: note: passing argument to parameter 'dev' here
struct  resource *bus_alloc_resource(device_t dev, int type, int *rid,
                                              ^
osscore.c:159:31: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  intr->irq = bus_setup_intr (osdev->dip, intr->irqres,
                              ^~~~~~~~~~
/usr/src/sys/sys/bus.h:538:29: note: passing argument to parameter 'dev' here
int     bus_setup_intr(device_t dev, struct resource *r, int flags,
                                ^
osscore.c:182:21: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
        bus_teardown_intr (osdev->dip, intr->irqres, intr->cookie);
                           ^~~~~~~~~~
/usr/src/sys/sys/bus.h:541:32: note: passing argument to parameter 'dev' here
int     bus_teardown_intr(device_t dev, struct resource *r, void *cookie);
                                   ^
osscore.c:183:24: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
        bus_release_resource (osdev->dip, SYS_RES_IRQ, intr->irqid,
                              ^~~~~~~~~~
/usr/src/sys/sys/bus.h:535:35: note: passing argument to parameter 'dev' here
int     bus_release_resource(device_t dev, int type, int rid,
                                      ^
osscore.c:201:27: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  *val = pci_read_config (osdev->dip, where, 1);
                          ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev'
here
pci_read_config(device_t dev, int reg, int width)
                         ^
osscore.c:208:27: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  *val = pci_read_config (osdev->dip, where, 1);
                          ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev'
here
pci_read_config(device_t dev, int reg, int width)
                         ^
osscore.c:216:27: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  *val = pci_read_config (osdev->dip, where, 2);
                          ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev'
here
pci_read_config(device_t dev, int reg, int width)
                         ^
osscore.c:224:27: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  *val = pci_read_config (osdev->dip, where, 4);
                          ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev'
here
pci_read_config(device_t dev, int reg, int width)
                         ^
osscore.c:232:21: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  pci_write_config (osdev->dip, where, val, 1);
                    ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev'
here
pci_write_config(device_t dev, int reg, uint32_t val, int width)
                          ^
osscore.c:240:21: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  pci_write_config (osdev->dip, where, val, 2);
                    ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev'
here
pci_write_config(device_t dev, int reg, uint32_t val, int width)
                          ^
osscore.c:248:21: error: incompatible pointer types passing 'dev_info_t *' (aka
'struct device *') to parameter of type 'device_t' (aka 'struct _device *')
[-Werror,-Wincompatible-pointer-types]
  pci_write_config (osdev->dip, where, val, 4);
                    ^~~~~~~~~~
/usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev'
here
pci_write_config(device_t dev, int reg, uint32_t val, int width)
                          ^
11 errors generated.
*** [osscore.o] Error code 1

make[2]: stopped in
/wrkdirs/usr/ports/audio/oss/work/.build/prototype/usr/local/lib/oss/build
1 error

make[2]: stopped in
/wrkdirs/usr/ports/audio/oss/work/.build/prototype/usr/local/lib/oss/build
*** [install] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/audio/oss/work/.build
1 error

make[1]: stopped in /wrkdirs/usr/ports/audio/oss/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/oss
=>> Cleaning up wrkdir
===>  Cleaning for oss-4.2.b2019_2
build of audio/oss | oss-4.2.b2019_2 ended at Mon Oct 18 20:02:11 PDT 2021
build time: 00:04:53
!!! build failure encountered !!!

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