On 10/03/2025 18:20, Christoph Badura wrote:
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.
$ dpkg-query -l coreutils\* |grep core
ii coreutils 9.1-1 amd64 GNU core utilities
Could you try with a newer version please,
as 9.1 is 3 years old now. Something like:
sudo apt-get build-dep coreutils
wget https://mirror.ibcp.fr/pub/gnu/coreutils/coreutils-9.6.tar.xz
tar -xf coreutils-9.6.tar.xz
cd coreutils-9.6
./configure --quiet && make -j $(nproc)
export PATH=$PWD/src:$PATH
thanks,
Pádraig