+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-video-xgi-1.6.1nb4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-video-xgi-1.6.1nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xf86-video-xgi-1.6.1nb4
--- all ---
/usr/pkg/bin/bmake  all-recursive
--- all-recursive ---
Making all in src
--- init.lo ---
--- vb_ext.lo ---
--- init.lo ---
  CC       init.lo
--- vb_ext.lo ---
  CC       vb_ext.lo
In file included from vb_ext.c:34:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- init.lo ---
In file included from init.h:62,
                 from init.c:67:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- vb_i2c.lo ---
  CC       vb_i2c.lo
In file included from vb_i2c.c:25:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- vb_init.lo ---
  CC       vb_init.lo
In file included from vb_init.c:49:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
vb_init.c: In function 'XGIInitNew':
vb_init.c:447:81: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
         HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x50 , 0 , &Temp ) ; /* Get */
                                                                                 ^~~~~
vb_init.c:447:81: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c: In function 'DualChipInit':
vb_init.c:679:84: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , PCI_COMMAND , 0 , &Temp ) ; /* Get */
                                                                                    ^~~~~
vb_init.c:679:84: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:680:91: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , PCI_COMMAND + 0x80 , 1 , &Temp ) ; /* Set */
                                                                                           ^~~~~
vb_init.c:680:91: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:682:77: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x0c , 0 , &Temp ) ; /* Get */
                                                                             ^~~~~
vb_init.c:682:77: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:683:84: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x0c + 0x80 , 1 , &Temp ) ; /* Set */
                                                                                    ^~~~~
vb_init.c:683:84: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:685:77: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x10 , 0 , &Temp ) ; /* Get */
                                                                             ^~~~~
vb_init.c:685:77: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:686:84: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x10 + 0x80 , 1 , &Temp ) ; /* Set */
                                                                                    ^~~~~
vb_init.c:686:84: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:688:77: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x14 , 0 , &Temp ) ; /* Get */
                                                                             ^~~~~
vb_init.c:688:77: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:690:84: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x14 + 0x80 , 1 , &Temp ) ; /* Set */
                                                                                    ^~~~~
vb_init.c:690:84: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:692:77: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x18 , 0 , &Temp ) ; /* Get */
                                                                             ^~~~~
vb_init.c:692:77: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c:694:84: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x18 + 0x80 , 1 , &Temp ) ; /* Set */
                                                                                    ^~~~~
vb_init.c:694:84: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
vb_init.c: In function 'SetPowerConsume':
vb_init.c:2938:77: warning: passing argument 4 of 'HwDeviceExtension->pQueryVGAConfigSpace' from incompatible pointer type [-Wincompatible-pointer-types]
     HwDeviceExtension->pQueryVGAConfigSpace( HwDeviceExtension , 0x08 , 0 , &lTemp ) ; /* Get */
                                                                             ^~~~~~
vb_init.c:2938:77: note: expected 'CARD32 *' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
--- vb_setmode.lo ---
  CC       vb_setmode.lo
In file included from vb_setmode.c:34:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_accel.lo ---
  CC       xgi_accel.lo
In file included from xgi_accel.c:42:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_cursor.lo ---
  CC       xgi_cursor.lo
In file included from xgi_cursor.c:39:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_dac.lo ---
  CC       xgi_dac.lo
In file included from xgi_dac.c:51:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_dga.lo ---
  CC       xgi_dga.lo
In file included from xgi_dga.c:42:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_driver.lo ---
  CC       xgi_driver.lo
In file included from xgi_driver.c:61:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_opt.lo ---
  CC       xgi_opt.lo
--- xgi_driver.lo ---
xgi_driver.c: In function 'XGIDisplayPowerManagementSet':
xgi_driver.c:511:2: warning: implicit declaration of function 'XGISetDPMS'; did you mean 'XGISetup'? [-Wimplicit-function-declaration]
  XGISetDPMS(pScrn, pVBInfo, pHwDevInfo, PowerState);
  ^~~~~~~~~~
  XGISetup
xgi_driver.c: In function 'XGIGenerateModeListFromMetaModes':
xgi_driver.c:1187:53: warning: passing argument 1 of 'XGIGetModeFromName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
                     mode2 = XGIGetModeFromName(mode1->name, j);
                                                ~~~~~^~~~~~
xgi_driver.c:1023:26: note: expected 'char *' but argument is of type 'const char *'
 XGIGetModeFromName(char *str, DisplayModePtr i)
                    ~~~~~~^~~
xgi_driver.c: In function 'XGIDDCPreInit':
xgi_driver.c:2310:28: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
                 strcpy(newm->name, tempm->name);
                        ~~~~^~~~~~
In file included from /usr/include/features.h:438,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h:9,
                 from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pixman-1/pixman.h:105,
                 from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/fb.h:28,
                 from xgi_driver.c:50:
/usr/include/bits/string_fortified.h:92:1: note: expected 'char * restrict' but argument is of type 'const char *'
 __NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
 ^~~~~
xgi_driver.c: In function 'XGIPreInit':
xgi_driver.c:2903:36: warning: assignment to 'XGIIOADDRESS' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     pXGI->xgi_HwDevExt.pjIOAddress = (pointer)((XGIIOADDRESS) (pXGI->RelIO + 0x30));
                                    ^
xgi_driver.c: In function 'XGIMapMem':
xgi_driver.c:4087:9: warning: 'pci_device_map_region' is deprecated [-Wdeprecated-declarations]
         err = pci_device_map_region(pXGI->PciInfo, i, TRUE);
         ^~~
In file included from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86.h:93,
                 from xgi_driver.c:52:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pciaccess.h:85:19: note: declared here
 int  __deprecated pci_device_map_region(struct pci_device *dev,
                   ^~~~~~~~~~~~~~~~~~~~~
xgi_driver.c: In function 'XGIUnmapMem':
xgi_driver.c:4163:17: warning: 'pci_device_unmap_region' is deprecated [-Wdeprecated-declarations]
                 pci_device_unmap_region(pXGI->PciInfo, 1);
                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86.h:93,
                 from xgi_driver.c:52:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pciaccess.h:88:18: note: declared here
 int __deprecated pci_device_unmap_region(struct pci_device *dev,
                  ^~~~~~~~~~~~~~~~~~~~~~~
xgi_driver.c:4197:17: warning: 'pci_device_unmap_region' is deprecated [-Wdeprecated-declarations]
                 pci_device_unmap_region(pXGI->PciInfo, 0);
                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86.h:93,
                 from xgi_driver.c:52:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pciaccess.h:88:18: note: declared here
 int __deprecated pci_device_unmap_region(struct pci_device *dev,
                  ^~~~~~~~~~~~~~~~~~~~~~~
xgi_driver.c:4212:9: warning: 'pci_device_unmap_region' is deprecated [-Wdeprecated-declarations]
         pci_device_unmap_region(pXGI->PciInfo, 0);
         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86.h:93,
                 from xgi_driver.c:52:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pciaccess.h:88:18: note: declared here
 int __deprecated pci_device_unmap_region(struct pci_device *dev,
                  ^~~~~~~~~~~~~~~~~~~~~~~
xgi_driver.c:4213:9: warning: 'pci_device_unmap_region' is deprecated [-Wdeprecated-declarations]
         pci_device_unmap_region(pXGI->PciInfo, 1);
         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86.h:93,
                 from xgi_driver.c:52:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/pciaccess.h:88:18: note: declared here
 int __deprecated pci_device_unmap_region(struct pci_device *dev,
                  ^~~~~~~~~~~~~~~~~~~~~~~
xgi_driver.c: In function 'XGIModeInit':
xgi_driver.c:4320:5: warning: implicit declaration of function 'Volari_SetDefaultIdleWait' [-Wimplicit-function-declaration]
     Volari_SetDefaultIdleWait(pXGI, mode->HDisplay, pScrn->depth);
     ^~~~~~~~~~~~~~~~~~~~~~~~~
xgi_driver.c: In function 'XGIRestore':
xgi_driver.c:4481:2: warning: implicit declaration of function 'XGISetModeNew'; did you mean 'XGI_GetModePtr'? [-Wimplicit-function-declaration]
  XGISetModeNew( &pXGI->xgi_HwDevExt, pXGI->XGI_Pr, 0x03);
  ^~~~~~~~~~~~~
  XGI_GetModePtr
--- xgi_opt.lo ---
In file included from xgi_opt.c:41:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
--- xgi_setup.lo ---
  CC       xgi_setup.lo
In file included from xgi_setup.c:38:
/home/pbulk/build/x11/xf86-video-xgi/work/.buildlink/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
 #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
  ^~~~~~~
xgi_setup.c: In function 'XGI_InitHwDevInfo':
xgi_setup.c:590:29: warning: assignment to 'XGIIOADDRESS' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     pHwDevInfo->pjIOAddress = (pointer)(pXGI->RelIO + 0x30);
                             ^
xgi_setup.c:638:5: warning: implicit declaration of function 'XGI_New_GetVBType'; did you mean 'XGI_GetRegByte'? [-Wimplicit-function-declaration]
     XGI_New_GetVBType(pXGI->XGI_Pr, pHwDevInfo); //yilin
     ^~~~~~~~~~~~~~~~~
     XGI_GetRegByte
--- xgi_driver.lo ---
In file included from /usr/include/fcntl.h:328,
                 from xgi_driver.c:109:
In function 'open',
    inlined from 'XGIPreInit' at xgi_driver.c:2800:19:
/usr/include/bits/fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
    __open_missing_mode ();
    ^~~~~~~~~~~~~~~~~~~~~~
*** [xgi_driver.lo] Error code 1

bmake[2]: stopped making "all" in /home/pbulk/build/x11/xf86-video-xgi/work/xf86-video-xgi-1.6.1/src
bmake[2]: 1 error

bmake[2]: stopped making "all" in /home/pbulk/build/x11/xf86-video-xgi/work/xf86-video-xgi-1.6.1/src

bmake[1]: stopped making "all-recursive" in /home/pbulk/build/x11/xf86-video-xgi/work/xf86-video-xgi-1.6.1

bmake: stopped making "all" in /home/pbulk/build/x11/xf86-video-xgi/work/xf86-video-xgi-1.6.1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/x11/xf86-video-xgi
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/x11/xf86-video-xgi