Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2021 15:49:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 259275] [PATCH] audio/oss fails to build on 14-CURRENT
Message-ID:  <bug-259275-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259275

            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=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include     -MD  -MF.depend.o=
sscore.o
-MTosscore.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float=
=20
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -W=
all
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-co=
mpare
-Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality
-Wno-error=3Dunused-function -Wno-error=3Dpointer-sign
-Wno-error=3Dshift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length   -mno-aes -mno-avx  -std=3Diso9899: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 =3D bus_alloc_resource (osdev->dip, SYS_RES_IRQ, &(intr->irq=
id),
                                     ^~~~~~~~~~
/usr/src/sys/sys/bus.h:518:46: note: passing argument to parameter 'dev' he=
re
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 =3D bus_setup_intr (osdev->dip, intr->irqres,
                              ^~~~~~~~~~
/usr/src/sys/sys/bus.h:538:29: note: passing argument to parameter 'dev' he=
re
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' he=
re
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' he=
re
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 =3D 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 =3D 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 =3D 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 =3D 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
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/oss
=3D>> Cleaning up wrkdir
=3D=3D=3D>  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 !!!

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259275-7788>