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

On Darwin, build-use-chroot = true broken #10663

Closed
mikesperber opened this issue Oct 28, 2015 · 9 comments
Closed

On Darwin, build-use-chroot = true broken #10663

mikesperber opened this issue Oct 28, 2015 · 9 comments
Labels
6.topic: darwin Running or building packages on Darwin

Comments

@mikesperber
Copy link
Contributor

Builds consistently end in something like this:

dyld: Library not loaded: /usr/lib/libSystem.B.dylib
  Referenced from: /nix/store/kp4f6acmkhslpsy6zc9v2x7jzn9417b5-perl-5.20.1/bin/perl
  Reason: no suitable image found.  Did find:
    /usr/lib/libSystem.B.dylib: stat() failed with errno=1
    /usr/lib/libSystem.B.dylib: stat() failed with errno=1

This is mentioned in #9215 and #8363, but doesn't seem to have received much attention there.

@domenkozar
Copy link
Member

@pikajude @edolstra

@domenkozar domenkozar added the 6.topic: darwin Running or building packages on Darwin label Oct 28, 2015
@henrytill
Copy link
Member

It would be helpful if you could give some information like the nixpkgs revision you are using and nix-env --version.

Also, there has been a lot of churn recently as the Pure-Darwin stdenv has become the default, so it helps to be using the latest revision of nixpkgs and the git version of Nix. Instructions for doing so are on the wiki page, which I would recommend looking at if you haven't recently, as it has stayed up to date with the recent work, and there might be some helpful information there.

@mikesperber
Copy link
Contributor Author

I followed the instructions on the Wiki page, first using the regular installer, and then trying to switch to a freshly pulled (yesterday) git version of Nix. nix-env --version returns 1.10.

@henrytill
Copy link
Member

You might try installing Nix itself from HEAD, which should be version 1.11pre1234_abcdef

git clone https://github.com/NixOS/nix
cd nix
nix-env -f release.nix -iA build.x86_64-darwin --option build-use-chroot false

@mikesperber
Copy link
Contributor Author

Thanks for the tip - unfortunately, that makes me run into #10691 ... :-(

@mikesperber
Copy link
Contributor Author

... but once I monkey-patch my way around #10691 (keep deleting /share/man), things work. Is it OK if I include a link to here in the Wiki?

@henrytill
Copy link
Member

I'm not opposed to putting it in the wiki if more users report having this problem. AFAIK you are the only person with the /share/man issue, and it'd be better to tackle that issue in #10691, if we can get a reproducible case. So far, the problems in the Troubleshooting section of the wiki have been ones that have affected multiple users for known reasons.

So could we close this issue and move the discussion to #10691?

@mikesperber
Copy link
Contributor Author

Sure. But this problem, other people had - see the referenced ticket at the front.

@henrytill
Copy link
Member

And to clarify for posterity's sake:

If anyone else has this problem, they should try the aforementioned fix of installing Nix from HEAD, as specified in the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

3 participants