Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac os errors #93

Closed
benjiqq opened this issue Jul 18, 2023 · 5 comments · Fixed by #111
Closed

mac os errors #93

benjiqq opened this issue Jul 18, 2023 · 5 comments · Fixed by #111

Comments

@benjiqq
Copy link

benjiqq commented Jul 18, 2023

getting non descript errors on zigup 0.11.0-dev.3771+128fd7dd0

install directory '/Users/ben/zig'
mkdir '/Users/ben/zig'
rm -rf '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing'
mkdir '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing'
downloading 'https://ziglang.org/builds/zig-macos-x86_64-0.11.0-dev.3771+128fd7dd0.tar.xz' to '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing/zig-macos-x86_64-0.11.0-dev.3771+128fd7dd0.tar.xz'
[RUN] tar xf /Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing/zig-macos-x86_64-0.11.0-dev.3771+128fd7dd0.tar.xz -C /Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing
rm -rf '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing/zig-macos-x86_64-0.11.0-dev.3771+128fd7dd0.tar.xz'
mv '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing/zig-macos-x86_64-0.11.0-dev.3771+128fd7dd0' '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing/files'
mv '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0.installing' '/Users/ben/zig/0.11.0-dev.3771+128fd7dd0'
error: NotLink
???:?:?: 0x104b6ef6a in _std.os.mkdirZ (???)
???:?:?: 0x104b6ee2f in _std.os.mkdir (???)
???:?:?: 0x104b6ec38 in _std.fs.makeDirAbsolute (???)
???:?:?: 0x104b6e251 in _loggyMakeDirAbsolute (???)
???:?:?: 0x104bb44c9 in _std.os.faccessatZ (???)
???:?:?: 0x104b6f344 in _std.fs.Dir.accessZ (???)
???:?:?: 0x104b6f25a in _std.fs.Dir.access (???)
???:?:?: 0x104c54524 in _std.os.unlinkatZ (???)
???:?:?: 0x104bf8401 in _std.fs.Dir.deleteFileZ (???)
???:?:?: 0x104ba7c2c in _std.fs.Dir.deleteFile (???)
???:?:?: 0x104bf972e in _std.os.openatZ (???)
???:?:?: 0x104bae390 in _std.fs.Dir.openFileZ (???)
???:?:?: 0x104bae100 in _std.fs.Dir.openFile (???)
???:?:?: 0x104bf972e in _std.os.openatZ (???)
???:?:?: 0x104bae390 in _std.fs.Dir.openFileZ (???)
???:?:?: 0x104bae100 in _std.fs.Dir.openFile (???)
???:?:?: 0x104bab509 in _std.os.readlinkZ (???)
???:?:?: 0x104bab3c1 in _std.os.readlink (???)
???:?:?: 0x104bab042 in _std.fs.readLinkAbsolute (???)
???:?:?: 0x104ba4c73 in _loggyUpdateSymlink (???)
???:?:?: 0x104b6a0b1 in _setDefaultCompiler (???)
???:?:?: 0x104b67251 in _fetchCompiler (???)
???:?:?: 0x104b6302d in _main2 (???)
???:?:?: 0x104b61b3a in _main.0 (???)
@Nova-archx86
Copy link

Nova-archx86 commented Jul 20, 2023

I'm experiencing a very similar issue over on Arch linux using the package from the AUR. The error in this case is AccessDenied, however I know that I for sure have read, write, and execute permissions in these directories... Its also worth mentioning that I get the same error when installing zig from the master branch.

install directory '/home/nova/zig'
mkdir '/home/nova/zig'
rm -rf '/home/nova/zig/0.10.1.installing'
mkdir '/home/nova/zig/0.10.1.installing'
downloading 'https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz' to '/home/nova/zig/0.10.1.installing/zig-linux-x86_64-0.10.1.tar.xz'
[RUN] tar xf /home/nova/zig/0.10.1.installing/zig-linux-x86_64-0.10.1.tar.xz -C /home/nova/zig/0.10.1.installing
rm -rf '/home/nova/zig/0.10.1.installing/zig-linux-x86_64-0.10.1.tar.xz'
mv '/home/nova/zig/0.10.1.installing/zig-linux-x86_64-0.10.1' '/home/nova/zig/0.10.1.installing/files'
mv '/home/nova/zig/0.10.1.installing' '/home/nova/zig/0.10.1'
error: AccessDenied
???:?:?: 0x229461 in ??? (???)
???:?:?: 0x23f7cd in ??? (???)
???:?:?: 0x22b64c in ??? (???)
???:?:?: 0x229461 in ??? (???)
???:?:?: 0x2a1b21 in ??? (???)
???:?:?: 0x2a15ec in ??? (???)
???:?:?: 0x29c239 in ??? (???)
???:?:?: 0x24bdfc in ??? (???)
???:?:?: 0x2498ff in ??? (???)
???:?:?: 0x246f21 in ??? (???)
???:?:?: 0x243c2c in ??? (???)
???:?:?: 0x25f734 in ??? (???)
???:?:?: 0x254728 in ??? (???)
???:?:?: 0x260d9d in ??? (???)
???:?:?: 0x260d9d in ??? (???)
???:?:?: 0x26ab5e in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x2574b7 in ??? (???)
???:?:?: 0x23f7cd in ??? (???)
???:?:?: 0x22b64c in ??? (???)
???:?:?: 0x229461 in ??? (???)
???:?:?: 0x23f7cd in ??? (???)
???:?:?: 0x22b64c in ??? (???)
???:?:?: 0x229461 in ??? (???)
???:?:?: 0x23f7cd in ??? (???)
???:?:?: 0x22b64c in ??? (???)


@marler8997
Copy link
Owner

@benjiqq I tried zigup 0.11.0-dev.3771+128fd7dd0 on my m1 laptop but it worked. What MacOS version are you on and is it arm or x86?

@benjiqq
Copy link
Author

benjiqq commented Jul 21, 2023

MacBook Air 2022, Apple M2, MacOS Ventura 13.0 (22A380)

@sahyrlelyaams
Copy link

@benjiqq - may I suggest installing the latest pre-built binaries from v2023_07_27?

This worked for me to get zigup running as expected.

@marler8997
Copy link
Owner

It looks like this problem was caused by having a directory named "zig" that lived alongside the zigup executable. zigup attempts to make zig a symlink but it's already a directory and can't overwrite it. I've pushed a change (#111) to provide a helpful error message in this case:

unable to create the exe link, the path '/path/to/zig' is a directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants