I'm compiling emacs from source in a debian/bookworm VM hosted on macOS.
The VM runs und VirtualBox.
The emacs source directory is mounted via NFSv3 into the VM. (macOS
doesn't support NFSv4 as NFS server.)
The build failed early because autogen.sh saves some files with "cp -p"
which fails.
E.g.:
$ touch boom
$ strace -o boom.trace cp -p boom boom.bust; echo $?
cp: preserving permissions for ‘boom.bust’: Operation not permitted
1
$
The relevant part from boom.trace seems to be:
fgetxattr(3, "system.posix_acl_access", 0x7ffd43f7be00, 132) = -1 EOPNOTSUPP
(Operation not supported)
fsetxattr(4, "system.posix_acl_access",
"\2\0\0\0\1\0\6\0\377\377\377\377\4\0\4\0\377\377\377\377 \0\4\0\377\377\377\377", 28, 0)
= -1 EPERM (Operation not permitted)
fchmod(4, 0100644) = 0
after which it produces the error message.