Did a checkout of https://github.com/openbsd/src/ into /usr/src and did

  # cd /sys/arch/amd64/compile/GENERIC.MP
  # make obj
  # make

However it errors out with

  cc -g -Werror -Wall -Wimplicit-function-declaration  -Wno-pointer-sign  
-Wframe-larger-than=2047 -Wno-address-of-packed-member -Wno-constant-conversion 
 -Wno-unused-but-set-variable -Wno-gnu-folding-constant 
-Wno-deprecated-non-prototype -Wno-unknown-warning-option -mcmodel=kernel 
-mno-red-zone -mno-sse2 -mno-sse -mno-3dnow  -mno-mmx -msoft-float 
-fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O2  -pipe 
-nostdinc -I/sys -I/sys/arch/amd64/compile/GENERIC.MP/obj -I/sys/arch  
-I/sys/dev/pci/drm/include  -I/sys/dev/pci/drm/include/uapi  
-I/sys/dev/pci/drm/amd/include/asic_reg  -I/sys/dev/pci/drm/amd/include  
-I/sys/dev/pci/drm/amd/amdgpu  -I/sys/dev/pci/drm/amd/display  
-I/sys/dev/pci/drm/amd/display/include  -I/sys/dev/pci/drm/amd/display/dc  
-I/sys/dev/pci/drm/amd/display/amdgpu_dm  -I/sys/dev/pci/drm/amd/pm/inc  
-I/sys/dev/pci/drm/amd/pm/legacy-dpm  -I/sys/dev/pci/drm/amd/pm/swsmu  
-I/sys/dev/pci/drm/amd/pm/swsmu/inc  -I/sys/dev/pci/drm/amd/pm/swsmu/smu11  
-I/sys/dev/pci/drm/amd/pm/swsmu/smu12  -I/sys/dev/pci/drm/amd/pm/swsmu/smu13  
-I/sys/dev/pci/drm/amd/pm/powerplay/inc  
-I/sys/dev/pci/drm/amd/pm/powerplay/hwmgr  
-I/sys/dev/pci/drm/amd/pm/powerplay/smumgr  -I/sys/dev/pci/drm/amd/pm/swsmu/inc 
 -I/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if  
-I/sys/dev/pci/drm/amd/display/dc/inc  -I/sys/dev/pci/drm/amd/display/dc/inc/hw 
 -I/sys/dev/pci/drm/amd/display/dc/clk_mgr  
-I/sys/dev/pci/drm/amd/display/modules/inc  
-I/sys/dev/pci/drm/amd/display/modules/hdcp  
-I/sys/dev/pci/drm/amd/display/dmub/inc  -I/sys/dev/pci/drm/i915 -DDDB 
-DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG 
-DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES 
-DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF 
-DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 
-DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG 
-DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DSUSPEND -DHIBERNATE -DPCIVERBOSE 
-DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD 
-DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMULTIPROCESSOR 
-DMAXUSERS=80 -D_KERNEL -MD -MP  -c /sys/kern/kern_pledge.c
  /sys/kern/kern_pledge.c:81:10: fatal error: 'psp.h' file not found
     81 | #include "psp.h"
        |          ^~~~~~~
  1 error generated.
  *** Error 1 in /sys/arch/amd64/compile/GENERIC.MP (Makefile:2283 
'kern_pledge.o')

I tried to track it down:

  # find / -name psp.h 2>/dev/null

but get 0 results back.  The current system is

  $ uname -msv
  OpenBSD GENERIC.MP#10 amd64

I can provide dmesg output if needed or other file-sources & command
output if needed, but it should be a pretty mundane 8.0 install and git
checkout.

Is there something I missed in the process?

Thanks,

-tkc
-- 





Reply via email to