pci_write_config ; osdev->dip
Code:
[00:01:23] gawk: cmd. line:58: warning: regexp escape sequence `\o' is not a known regexp operator
[00:01:23] gawk: cmd. line:116: warning: regexp escape sequence `\,' is not a known regexp operator
[00:01:23] gawk: cmd. line:116: warning: regexp escape sequence `\;' is not a known regexp operator
[00:01:23] gawk: cmd. line:58: warning: regexp escape sequence `\o' is not a known regexp operator
[00:01:23] gawk: cmd. line:116: warning: regexp escape sequence `\,' is not a known regexp operator
[00:01:23] gawk: cmd. line:116: warning: regexp escape sequence `\;' is not a known regexp operator
[00:01:23] cd prototype/usr/local/lib/oss/build && sh install.sh
[00:01:23] Compiling module osscore
[00:01:24] Compiling osscore module failed
[00:01:24] machine -> /usr/src/sys/amd64/include
[00:01:24] x86 -> /usr/src/sys/x86/include
[00:01:24] awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h
[00:01:24] awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h
[00:01:24] awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h
[00:01:24] touch opt_global.h
[00:01:24] Warning: Object directory not changed from original /wrkdirs/usr/ports/audio/oss/work/.build/prototype/usr/local/lib/oss/build
[00:01:24] /usr/local/bin/ccache cc -O2 -pipe -march=ivybridge -fno-strict-aliasing ""-fno-lto -O2 -pipe -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fstack-protector -fno-short-enums -fexceptions -fident -fverbose-asm -frecord-gcc-switches -fvisibility=default -fomit-frame-pointer -fstrict-aliasing"" -march=ivybridge -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-error=unused-but-set-variable -Wno-format-zero-length -mno-aes -mno-avx -std=iso9899:1999 -c osscore.c -o osscore.o
[00:01:24] 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]
[00:01:24] intr->irqres = bus_alloc_resource (osdev->dip, SYS_RES_IRQ, &(intr->irqid),
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/sys/bus.h:515:46: note: passing argument to parameter 'dev' here
[00:01:24] struct resource *bus_alloc_resource(device_t dev, int type, int *rid,
[00:01:24] ^
[00:01:24] 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]
[00:01:24] intr->irq = bus_setup_intr (osdev->dip, intr->irqres,
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/sys/bus.h:535:29: note: passing argument to parameter 'dev' here
[00:01:24] int bus_setup_intr(device_t dev, struct resource *r, int flags,
[00:01:24] ^
[00:01:24] 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]
[00:01:24] bus_teardown_intr (osdev->dip, intr->irqres, intr->cookie);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/sys/bus.h:538:32: note: passing argument to parameter 'dev' here
[00:01:24] int bus_teardown_intr(device_t dev, struct resource *r, void *cookie);
[00:01:24] ^
[00:01:24] 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]
[00:01:24] bus_release_resource (osdev->dip, SYS_RES_IRQ, intr->irqid,
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/sys/bus.h:532:35: note: passing argument to parameter 'dev' here
[00:01:24] int bus_release_resource(device_t dev, int type, int rid,
[00:01:24] ^
[00:01:24] 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]
[00:01:24] *val = pci_read_config (osdev->dip, where, 1);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev' here
[00:01:24] pci_read_config(device_t dev, int reg, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] *val = pci_read_config (osdev->dip, where, 1);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev' here
[00:01:24] pci_read_config(device_t dev, int reg, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] *val = pci_read_config (osdev->dip, where, 2);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev' here
[00:01:24] pci_read_config(device_t dev, int reg, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] *val = pci_read_config (osdev->dip, where, 4);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:401:26: note: passing argument to parameter 'dev' here
[00:01:24] pci_read_config(device_t dev, int reg, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] pci_write_config (osdev->dip, where, val, 1);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev' here
[00:01:24] pci_write_config(device_t dev, int reg, uint32_t val, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] pci_write_config (osdev->dip, where, val, 2);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev' here
[00:01:24] pci_write_config(device_t dev, int reg, uint32_t val, int width)
[00:01:24] ^
[00:01:24] 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]
[00:01:24] pci_write_config (osdev->dip, where, val, 4);
[00:01:24] ^~~~~~~~~~
[00:01:24] /usr/src/sys/dev/pci/pcivar.h:407:27: note: passing argument to parameter 'dev' here
[00:01:24] pci_write_config(device_t dev, int reg, uint32_t val, int width)
[00:01:24] ^
[00:01:24] 11 errors generated.
[00:01:24] *** Error code 1
[00:01:24]
[00:01:24] Stop.
[00:01:24] make[2]: stopped in /wrkdirs/usr/ports/audio/oss/work/.build/prototype/usr/local/lib/oss/build
[00:01:24] *** Error code 1
[00:01:24]
[00:01:24] Stop.
[00:01:24] make[1]: stopped in /wrkdirs/usr/ports/audio/oss/work/.build
[00:01:24] *** Error code 1
[00:01:24]
[00:01:24] Stop.
[00:01:24] make: stopped in /usr/ports/audio/oss
[00:01:33] =>> Cleaning up wrkdir
[00:01:33] ===> Cleaning for oss-4.2.b2019_2
[00:01:37] build of audio/oss | oss-4.2.b2019_2 ended at Sat Mar 19 00:22:54 CET 2022
[00:01:37] build time: 00:01:37
[00:01:37] !!! build failure encountered !!!