I've installed OpenBSD 7.3 in an amd64 VM (qemu, Debian GNU/Linux host). Any regression test target other than test-host is a fork-bomb. I see this problem neither when using Debian GNU/Linux on amd64, nor when using OpenBSD on powerpc64.
openbsd-test$ ps x | grep sdcc
50446 p1 R+p/8 0:00.00 grep sdcc
openbsd-test$ ps x
PID TT STAT TIME COMMAND
78039 ?? I 0:05.67 sshd: test@ttyp0 (sshd)
58683 ?? S 0:00.81 sshd: test@ttyp1 (sshd)
8107 p0 I+p 0:00.09 -ksh (ksh)
91071 p1 Sp 0:00.09 -ksh (ksh)
81287 p1 R+pU/2 0:00.00 ps -x
openbsd-test$ ps x | grep sdcc
37709 p1 R+p/2 0:00.00 grep sdcc
openbsd-test$ ps x | grep sdcc
88290 p0 S+p 0:00.00 /bin/sh ../../bin/sdcc --fverbose-asm -DNO_VARARGS --nostdinc -I../.. -mpdk14 --less-pedantic --out-fmt-ihx -I./fwk/include -I./tests -I../../device/include -c fwk/lib/testfwk.c -o gen/pdk14/testfwk.rel
65760 p0 S+p 0:00.01 /bin/sh /home/test/sdcc-trunk/sdcc/bin/sdcc --fverbose-asm -DNO_VARARGS --nostdinc -I../.. -mpdk14 --less-pedantic --out-fmt-ihx -I./fwk/include -I./tests -I../../device/include -c fwk/lib/testfwk.c -o gen/pdk14/testfwk.rel
60313 p0 S+p 0:00.00 /bin/sh /home/test/sdcc-trunk/sdcc/bin/sdcc --fverbose-asm -DNO_VARARGS --nostdinc -I../.. -mpdk14 --less-pedantic --out-fmt-ihx -I./fwk/include -I./tests -I../../device/include -c fwk/lib/testfwk.c -o gen/pdk14/testfwk.rel
[many more lines identical to the one above, except for the process id]
Diff:
I cannot reproduce this issue using OpenBSD 7.4.