zig icon indicating copy to clipboard operation
zig copied to clipboard

zig reports error: AccessDenied when compiling from source on netbsd

Open nikkicoon opened this issue 7 months ago • 6 comments

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

I think I reported this before... zig fails to install since at least 0.12.0. This is 0.13.0, on NetBSD, but should be reproducible on any other OS through pkgsrc:

=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Installing for zig-0.13.0
=> Generating pre-install file lists
[ 36%] Built target zigcpp
[ 47%] Built target zig-wasm2c
[ 68%] Built target zig1
[ 94%] Built target zig2
[100%] Built target stage3
Install the project...
-- Install configuration: "Release"
error: AccessDenied
::
:: ERROR: 1
:: (execute_process)
::
:: argv: /tmp/work/zig-0.13.0/cmake-pkgsrc-build/zig2 build --prefix /usr/pkg --zig-lib-dir /tmp/work/zig-0.13.0/lib -Dversion-string=0.13.0 -Dtarget=native -Dcpu=baseline -Denable-llvm -Dconfig_h=/tmp/work/zig-0.13.0/cmake-pkgsrc-build/config.h -Dno-langref -Dstd-docs=false -Doptimize=ReleaseFast -Dstrip
::
:: argv[0]: /tmp/work/zig-0.13.0/cmake-pkgsrc-build/zig2
:: argv[1]: build
:: argv[2]: --prefix
:: argv[3]: /usr/pkg
:: argv[4]: --zig-lib-dir
:: argv[5]: /tmp/work/zig-0.13.0/lib
:: argv[6]: -Dversion-string=0.13.0
:: argv[7]: -Dtarget=native
:: argv[8]: -Dcpu=baseline
:: argv[9]: -Denable-llvm
:: argv[10]: -Dconfig_h=/tmp/work/zig-0.13.0/cmake-pkgsrc-build/config.h
:: argv[11]: -Dno-langref
:: argv[12]: -Dstd-docs=false
:: argv[13]: -Doptimize=ReleaseFast
:: argv[14]: -Dstrip
::
CMake Error at /tmp/work/zig-0.13.0/cmake/install.cmake:26 (message):
Call Stack (most recent call first):
  cmake_install.cmake:57 (include)


*** Error code 1

Stop.
make[2]: stopped in /tmp/work/zig-0.13.0/cmake-pkgsrc-build
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/zig
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/zig

Expected Behavior

zig installs.

nikkicoon avatar Jul 13 '24 11:07 nikkicoon