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

<autogenerated-issue> #919

Open
siriobalmelli opened this issue Apr 5, 2024 · 1 comment
Open

<autogenerated-issue> #919

siriobalmelli opened this issue Apr 5, 2024 · 1 comment

Comments

@siriobalmelli
Copy link

Error

Error: 
   0: Error reverting
   0: Action `create_or_merge_nix_config` errored
      Remove file `/etc/nix/nix.conf`

      Action `create_apfs_volume` errored
      Failed to execute command with status 1 `"/usr/sbin/diskutil" "apfs" "deleteVolume" "Nix Store"`, stdout: Started APFS operation
      Deleting APFS Volume from its APFS Container
      Unmounting disk3s7
      The volume "Nix Store" on disk3s7 couldn't be unmounted because it is in use by process 0 (kernel)

      stderr: Error: -69888: Couldn't unmount disk

Metadata

key value
version 0.16.0
os macos
arch aarch64

Notes

Nix install on this machine seems fundamentally broken somehow: trying (and failing) to build llvm_13 and clang_13:

$ nix build .#darwinConfigurations.myMachine.system
error: builder for '/nix/store/37r2r9wrslmjrvf6fy7kwxsa70g2pyih-llvm-13.0.1.drv' failed with exit code 2;
       last 10 log lines:
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/Types.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/X86DisassemblerTables.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/X86EVEX2VEXTablesEmitter.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/X86FoldTablesEmitter.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/X86ModRMFilters.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/X86RecognizableInstr.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/WebAssemblyDisassemblerEmitter.cpp.o
       > [  6%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/CTagsEmitter.cpp.o
       > [  6%] Built target obj.llvm-tblgen
       > make: *** [Makefile:156: all] Error 2
       For full logs, run 'nix log /nix/store/37r2r9wrslmjrvf6fy7kwxsa70g2pyih-llvm-13.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/6q9cnag2i3hxvpn709zm7va3z822py63-clang-13.0.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2jsrm466g61xyhrcx5jd9fbbxrz9p62c-libredirect-0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jid2cxhkbh42v3r0k5ss9518q3cciggy-openssh-9.7p1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dvvf2j31zf2f6za4y9bh8l5v95gm0ym4-code-r816.drv' failed to build
error: 1 dependencies of derivation '/nix/store/92l3pn2xmzygi23yscrd2wq3iw973yhz-ctags-816.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a34aiff5wz0632b0fw3d1dx1i96psyhw-Toolchains.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sr1ib50c3mal2j4sqhynj3w7671r6rqv-xcodebuild-0.1.2-pre.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7ixpisgi8393w6dals5sk096hvvna8bk-python3.11-lxml-5.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ywdxvwcszyk1fv0b5kkikmiz9f8ljav8-xcbuild-hook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vl6fh4ha914wb5dvi203ccbyxmdrqdnd-developer_cmds-62.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hkpxzqzvwwl26rr2mplzvsnrxvb29pql-gtk-doc-1.33.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ymvqafnhgmvdvqkvnir8zxz2llinl24q-libutil-47.30.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cq3sw6gpgdhkggjcqwmh53m19xiacfxx-libpsl-0.21.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3jx57km695iim9fdzr8jn7820d65w2pg-system_cmds-970.0.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rzc0xz8lhh0p02czrivzqh9bbl5aawnp-curl-8.6.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z52z5cii21qhbrwgnf6990ibdi97h5mb-sysctl-system_cmds-970.0.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d0mh4mh8y5hxicv4llz45qva0q6c6qgb-git-2.44.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/535g0zl21ma15pbblyp498adx60nlc9k-llvm-16.0.6.drv' failed to build
error: 1 dependencies of derivation '/nix/store/65kn7i21y84vckg9n1bzkq5wfk95wzvq-llvm-16.0.6.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w74g64ydki2pz111kqg7im9ca7kqv782-activate.drv' failed to build
  • llvm_13 builds fine on another aarch64-darwin machine
  • my system closure doesn't have llvm_13

Even basic commands like nix why-depends .#darwinConfigurations.myMachine.system llvm_13 errors trying to build llvm_13.

I tried to update nix but got a failure because of nix-darwin being installed, so uninstalled it and trying to uninstall the nix installer so I can re-install the latest one and hopefully get a workng stdenv.

@siriobalmelli
Copy link
Author

... thankfully it's Nix, so the road back was relatively painless:

  • reboot
  • unmount and delete the APFS volume for /nix
  • run the determinate nix installer
  • nix build .#darwinConfigurations.myMachine.system
  • ./result/sw/bin/darwin-rebuild switch --flake .

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

No branches or pull requests

1 participant