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

stdenv-darwin build problem #14704

Closed
davidak opened this issue Apr 14, 2016 · 10 comments
Closed

stdenv-darwin build problem #14704

davidak opened this issue Apr 14, 2016 · 10 comments
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin

Comments

@davidak
Copy link
Member

davidak commented Apr 14, 2016

Issue description

i want to build a package on darwin (from git master commit https://github.com/NixOS/nixpkgs/tree/358900674b9ecf85ef4add5fa36aa0eb94f76c36) but get this error:

building path(s) ‘/nix/store/f2cdni6pj5mj7cv59w8hyny8gjn6q8gf-stdenv-darwin’
output ‘/nix/store/f2cdni6pj5mj7cv59w8hyny8gjn6q8gf-stdenv-darwin’ is not allowed to refer to path ‘/nix/store/96kz6yfzhx9v7i591sdp015lscwp1xa8-llvm-3.7.1’

same error on different machines, so not a local problem.

Steps to reproduce

nix-env -iA hello -f ~/code/nixpkgs/

Technical details

  • System: OS X 10.10.5 / 10.9.5
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: git master

@edolstra @copumpkin

@joachifm joachifm added 0.kind: bug 6.topic: darwin Running or building packages on Darwin labels Apr 14, 2016
@copumpkin
Copy link
Member

I'll try to take a look this weekend, but unsure I'll have the time

@davidak
Copy link
Member Author

davidak commented Apr 16, 2016

👍 Thank you, @copumpkin!

@domenkozar
Copy link
Member

We should also fix mysql as it's blocking the channel: http://hydra.nixos.org/build/34620439

@davidak
Copy link
Member Author

davidak commented Apr 17, 2016

@domenkozar here is my latest error #11861 (comment)

@copumpkin
Copy link
Member

copumpkin commented Apr 17, 2016

@davidak @domenkozar I will take a look and see if it's an easy fix. Is there a bug for the actual mariadb brokenness? I couldn't see one

@davidak
Copy link
Member Author

davidak commented Apr 17, 2016

@copumpkin the linked issue is about that problem.

@copumpkin
Copy link
Member

@davidak I think mariadb/mysql is good again. Can you give it a quick go to make sure I didn't break something subtle?

@davidak
Copy link
Member Author

davidak commented Apr 17, 2016

@copumpkin it builds now but again this priority conflict:

/nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/lib/libmysqld.18.dylib: fixing dylib
stripping (with flags -S) in /nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/lib  /nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/bin
strip: can't process non-object and non-archive file: /nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/lib/mysql/plugin/daemon_example.ini
strip: can't process non-object and non-archive file: /nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/bin/mysql_config
patching script interpreter paths in /nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib
/nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/bin/mysql_config: interpreter directive changed from "/bin/sh" to "/nix/store/jd4z1i8wyzcaaymk4mh41bdn2qw80bx9-bash-4.3-p42/bin/sh  "
building path(s) ‘/nix/store/xb5sx67kjmpvfx166q9wa6kphvjd4aa2-user-environment’
Wide character in die at /nix/store/64jc9gd2rkbgdb4yjx3nrgc91bpjj5ky-buildenv.pl line 79.
collision between ‘/nix/store/vsr0d0rdk4qbvpxgdk85gl09afn7lrc0-mariadb-10.1.9/bin/mysql_config’ and ‘/nix/store/p0jqcgfnaygmjp26wlh49bs11c09rqsq-mariadb-10.1.9-lib/bin/mysql_config’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
builder for ‘/nix/store/88clrrxjcbdycqaax9npz1iricx4dzw3-user-environment.drv’ failed with exit code 2
error: build of ‘/nix/store/88clrrxjcbdycqaax9npz1iricx4dzw3-user-environment.drv’ failed

@copumpkin
Copy link
Member

That sounds like a broader multiple-outputs issue that shouldn't be specific to darwin. It looks like the post-install script explicitly copies mysql_config into $lib/bin: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/mariadb/default.nix#L112-L115

Not sure what the proper multiple-outputs behavior here is. @vcunat, any ideas?

@vcunat
Copy link
Member

vcunat commented Apr 18, 2016

This issue has been there for much longer. #12072

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

No branches or pull requests

5 participants