On Sun 20 Feb 2022 at 15:41:59 -0000, Michael van Elst wrote: > rhialto%falu.nl@localhost (Rhialto) writes: > > >$ /usr/pkg/bin/mame=20 > >bash: /usr/pkg/bin/mame: Cannot allocate memory > > >$ size /usr/pkg/bin/mame > > text data bss dec hex filename > >278129058 32803980 6454620 317387658 12eaf38a /us= > >r/pkg/bin/mame > > It's a kernel limit: > > NetBSD-9: > /usr/include/amd64/vmparam.h:#define MAXTSIZ (256*1024*1024) > > NetBSD-9.99.93: > /usr/include/amd64/vmparam.h:#define MAXTSIZ (8L*1024*1024*1024) /* max text size */ > Right. I looked at mame and fortunately there is an option to compile fewer emulators in the monolithic binary: MAKE_FLAGS+= SUBTARGET=mess The PLIST and the Makefile further need to be adjusted because the binary it builds is now called "mess". $ size /usr/pkg/bin/mess text data bss dec hex filename 154451249 10311988 3784860 168548097 a0bd701 /usr/pkg/bin/mess As an additional change to the package, it could build mess and arcade separately. I didn't check, but hopefully arcade would also be smaller than 256 MB. -Olaf. -- ___ "Buying carbon credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFH falu.nl@rhialto
Attachment:
signature.asc
Description: PGP signature