-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Build failure: nixpkgs-manual.lib-docs (aarch64-darwin) #339808
Comments
I don't reproduce this, either with the sandbox option or without. I suspect this has nothing to do with I tried on |
Huh. It's been an issue for the last several days, originally noted when I was building the manual (and an opener script) like so:
Searching for issues is how I discovered your new package (thank you) but building the new package gives me the same error, so I assumed the issue was somewhere in the docs -- When I omit these from my configuration, it builds normally. I've tried removing I'm on nix 2.18.5. I'm sure you've already done / considered this, but:
|
Looks like it may be actually the
|
Still getting this with current master. Could anyone from @NixOS/darwin-maintainers confirm whether this is a "me" issue? (You'll only need the With sandbox enabled: $ nix build --rebuild github:nixos/nixpkgs/8b16862469fc1e239f672ddd2e9af3fa9dd9352d#nixpkgs-manual.lib-docs
nixpkgs-lib-docs> Running phase: unpackPhase
nixpkgs-lib-docs> unpacking source archive /nix/store/3q00f8w2hc6665vmr515ccqygwwkxq52-source
nixpkgs-lib-docs> source root is source
nixpkgs-lib-docs> Running phase: patchPhase
nixpkgs-lib-docs> Running phase: updateAutotoolsGnuConfigScriptsPhase
nixpkgs-lib-docs> Running phase: configurePhase
nixpkgs-lib-docs> no configure script, doing nothing
nixpkgs-lib-docs> Running phase: buildPhase
nixpkgs-lib-docs> no Makefile or custom buildPhase, doing nothing
nixpkgs-lib-docs> Running phase: installPhase
nixpkgs-lib-docs> error: getting status of '/nix/store/.links': Operation not permitted
error: builder for '/nix/store/2mqfpfb5sr8lh12zd3z4cffqxvafj6h1-nixpkgs-lib-docs.drv' failed with exit code 1;
last 10 log lines:
> unpacking source archive /nix/store/3q00f8w2hc6665vmr515ccqygwwkxq52-source
> source root is source
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
> no Makefile or custom buildPhase, doing nothing
> Running phase: installPhase
> error: getting status of '/nix/store/.links': Operation not permitted
For full logs, run 'nix log /nix/store/2mqfpfb5sr8lh12zd3z4cffqxvafj6h1-nixpkgs-lib-docs.drv'. |
Disable automatic store optimization in |
@reckenrode Thanks for your thoughts -- I assume this builds without error for you? I disabled automatic store optimization last week in trying to troubleshoot this issue, and tried |
I'm seeing the same error with the sandbox enabled ( |
Thank you @gshpychka -- glad to know it's not just me. |
Same issue on my wife's machine:
Her machine does have
Mine does not:
@gshpychka did you ever have |
Contextual issue for @reckenrode's comment: NixOS/nix#7273 |
Also, my error seems a little different: Abbreviated from the linked issue: |
I don't think so, because enabling it breaks builds for me (linked issue above). |
@reckenrode I have
|
It’s going to be something to do with the docs generation code running a nested Nix that’s trying to look at the host store for some reason, I think. |
Yep: nixpkgs/doc/doc-support/lib-function-docs.nix Lines 105 to 109 in a0bc9c0
I’m guessing you have the sandbox on, right? (edit: yep, you do.) I’m not sure why it’s looking at the store, but perhaps |
Wow, you are amazing. Thank you. $ git diff
doc/doc-support/lib-function-docs.nix
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────┐
106: stdenvNoCC.mkDerivation { │
───────────────────────────────┘
--arg nixpkgsPath "./." \
--argstr revision ${nixpkgs.rev or "master"} \
--argstr libsetsJSON ${lib.escapeShellArg (builtins.toJSON libsets)} \
+ --store $(mktemp -d) \
> locations.json
function docgen {
$ nix build .#nixpkgs-manual.lib-docs
$ nix build .#nixpkgs-manual
$ ls result/share/doc/nixpkgs/
anchor-use.js anchor.min.js highlightjs manual.html media nixpkgs-manual.epub style.css |
Steps To Reproduce
Steps to reproduce the behavior:
nix build github:nixos/nixpkgs/master#nixpkgs-manual
(nixpkgs is currently at 8b16862)
Build log
Additional context
Seems to be a sandbox issue:
Notify maintainers
@philiptaron
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: