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

[aarch64-darwin] niv fails to build #144187

Closed
damien-biasotto opened this issue Nov 2, 2021 · 2 comments
Closed

[aarch64-darwin] niv fails to build #144187

damien-biasotto opened this issue Nov 2, 2021 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@damien-biasotto
Copy link

Describe the bug

I wanted to use niv to manage the dependencies of my project, I'm not entirely sure what's the cause of the failure. Just before the error message there is a mention of cyclic dependency. Not sure how I can address that.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix-shell -p nix on a M1 machine.

Expected behavior

niv is correctly built, and invokable from the nix-shell

Additional context

The relevant part of the build log:

Linking dist/build/unit/unit ...
running tests
Running 1 test suites...
Test suite unit: RUNNING...
Test suite unit: PASS
Test suite logged to: dist/test/niv-0.2.19-unit.log
1 of 1 test suites (1 of 1 test cases) passed.
haddockPhase
installing
Installing library in /nix/store/njlg1h6f80fvs7brbxzajcv2y6jyk2w2-niv-0.2.19/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7/niv-0.2.19-Ab4AhfOgbWKE9LPVEs35u0
Installing executable niv in /nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin/bin
Warning: The directory
/nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin/bin is not in the
system search path.
/nix/store/7lfjbip2dvhvnhvdj0kx4d63apqlz83v-cctools-binutils-darwin-949.0.1/bin/strip: changes being made to the file will invalidate the code signature in: /nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin/bin/niv
Registering library for niv-0.2.19..
post-installation fixup
strip is /nix/store/jgaarpq3rdfk7gbm0gm3xlh8hhbw15ay-clang-wrapper-11.1.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/njlg1h6f80fvs7brbxzajcv2y6jyk2w2-niv-0.2.19/lib 
patching script interpreter paths in /nix/store/njlg1h6f80fvs7brbxzajcv2y6jyk2w2-niv-0.2.19
strip is /nix/store/jgaarpq3rdfk7gbm0gm3xlh8hhbw15ay-clang-wrapper-11.1.0/bin/strip
patching script interpreter paths in /nix/store/1s0sp3w4xdkcv2j3300j8mxs8fnp33dy-niv-0.2.19-data
strip is /nix/store/jgaarpq3rdfk7gbm0gm3xlh8hhbw15ay-clang-wrapper-11.1.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin/bin 
patching script interpreter paths in /nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin
cycle detected in the references of '/nix/store/8yarqpfzbswh29jqv83d6kmzzqbjp727-niv-0.2.19-bin' from '/nix/store/njlg1h6f80fvs7brbxzajcv2y6jyk2w2-niv-0.2.19'
error: build of '/nix/store/n0ixxkly3qsv93qmail0hcwpdmiiqx6m-niv-0.2.19.drv' failed

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 20.6.0, macOS 11.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.15`
 - channels(damienbiasotto): `"home-manager, nixpkgs-21.11pre317666.1a56d76d718"`
 - nixpkgs: `/Users/damienbiasotto/.nix-defexpr/channels/nixpkgs`
@damien-biasotto damien-biasotto added the 0.kind: bug Something is broken label Nov 2, 2021
@arkivm
Copy link
Contributor

arkivm commented Nov 3, 2021

duplicate of #140774

@damien-biasotto
Copy link
Author

duplicate of #140774

Oh my bad, I was looking for a similar issue and somehow didn’t find it.
Closing this one then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants