# cd /usr/ports/lang/gnatcross-sysroot-aarch64 root@nq3:/usr/ports/lang/gnatcross-sysroot-aarch64 # make clean ===> Cleaning for gnatcross-sysroot-aarch64-1_2 rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libc.so.7: Operation not permitted rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libthr.so.3: Operation not permitted rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libcrypt.so.5: Operation not permitted rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib: Directory not empty rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/usr/lib/librt.so.1: Operation not permitted rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/usr/lib: Directory not empty rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work/usr: Directory not empty rm: /usr/ports/lang/gnatcross-sysroot-aarch64/work: Directory not empty *** Error code 1 Stop. make[1]: stopped in /usr/ports/lang/gnatcross-sysroot-aarch64 *** Error code 1 Stop. make: stopped in /usr/ports/lang/gnatcross-sysroot-aarch64 root@nq3:/usr/ports/lang/gnatcross-sysroot-aarch64/ # ll work/lib total 1042 -r--r--r-- 1 root wheel 1598544 Jul 5 2019 libc.so.7 -r--r--r-- 1 root wheel 200712 Jul 5 2019 libcrypt.so.5 -r--r--r-- 1 root wheel 271320 Jul 5 2019 libthr.so.3
Same type of problem occurs with a build: [/usr/ports/lang/gnatcross-sysroot-aarch64] # make ===> NOTICE: The sysroot port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> gnatcross-sysroot-aarch64-1_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by gnatcross-sysroot-aarch64-1_2 for building ===> Extracting for gnatcross-sysroot-aarch64-1_2 => SHA256 Checksum OK for gnatcross/arm64-aarch64/R11_3/base.txz. chmod: /usr/ports/lang/gnatcross-sysroot-aarch64/work/usr/lib/librt.so.1: Operation not permitted chmod: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libc.so.7: Operation not permitted chmod: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libcrypt.so.5: Operation not permitted chmod: /usr/ports/lang/gnatcross-sysroot-aarch64/work/lib/libthr.so.3: Operation not permitted *** Error code 1 Stop. make: stopped in /usr/ports/lang/gnatcross-sysroot-aarch64
I can't reproduce this. It builds fine for me in poudriere for 12.3{amd64,i386} and 13.1 amd64. There aren't any pkg-fallout messages about this either: https://lists.freebsd.org/archives/freebsd-pkg-fallout/2022-October/
Closing this due to feedback timeout. Please, feel free to re-open if needed.