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

nushell: fails to build on x86_64-darwin #214872

Closed
EjPlatzer opened this issue Feb 6, 2023 · 6 comments · Fixed by #215782
Closed

nushell: fails to build on x86_64-darwin #214872

EjPlatzer opened this issue Feb 6, 2023 · 6 comments · Fixed by #215782

Comments

@EjPlatzer
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install nix on x86_64-darwin
  2. Enable experimental features nix-command and flakes
  3. Attempt to install nushell v0.75.0 via nix profile install nixpkgs#nushell.

Build log

[log here if short otherwise a link to a gist](https://gist.github.com/EjPlatzer/077e1625908508c3c41b94423555ac23)

Notify maintainers

@Br1ght0ne @JohnTitor @marsam

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

user ~nix-shell -p nix-info --run "nix-info -m"
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «string»:1:25:

            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
             |                         ^
(use '--show-trace' to show detailed location information)
@amz-x
Copy link
Contributor

amz-x commented Feb 11, 2023

@EjPlatzer I can confirm the bug, the following PR #215059 could resolve it.

@EjPlatzer
Copy link
Author

@amz-x that is great news! I am hopeful that #215059 can resolve it.

@wegank I see that you marked this as resolved by #215782. However, this does not seem to have resolved the issue for me. I am still receiving the same error when trying to build nushell:

error: builder for '/nix/store/c0pkdjfxwdvmkiwwh2zsnj2625dxawag-nushell-0.75.0.drv' failed with exit code 101;
       last 10 log lines:
       >   = note: Undefined symbols for architecture x86_64:
       >             "_kCFURLVolumeAvailableCapacityForImportantUsageKey", referenced from:
       >                 _$LT$sysinfo..apple..disk..Disk$u20$as$u20$sysinfo..traits..DiskExt$GT$::refresh::h3cc64d9b2cf97f93 in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >                 sysinfo::apple::disk::get_disks::h86f062a8f7a628cb in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >                 sysinfo::apple::disk::get_available_volume_space::h89d71545bfc1fec1 (.llvm.4439549944550214236) in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >           ld: symbol(s) not found for architecture x86_64
       >           clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
       >
       >
       > error: could not compile `nu` due to previous error
       For full logs, run 'nix log /nix/store/c0pkdjfxwdvmkiwwh2zsnj2625dxawag-nushell-0.75.0.drv'.

@wegank
Copy link
Member

wegank commented Feb 11, 2023

@amz-x that is great news! I am hopeful that #215059 can resolve it.

@wegank I see that you marked this as resolved by #215782. However, this does not seem to have resolved the issue for me. I am still receiving the same error when trying to build nushell:

error: builder for '/nix/store/c0pkdjfxwdvmkiwwh2zsnj2625dxawag-nushell-0.75.0.drv' failed with exit code 101;
       last 10 log lines:
       >   = note: Undefined symbols for architecture x86_64:
       >             "_kCFURLVolumeAvailableCapacityForImportantUsageKey", referenced from:
       >                 _$LT$sysinfo..apple..disk..Disk$u20$as$u20$sysinfo..traits..DiskExt$GT$::refresh::h3cc64d9b2cf97f93 in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >                 sysinfo::apple::disk::get_disks::h86f062a8f7a628cb in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >                 sysinfo::apple::disk::get_available_volume_space::h89d71545bfc1fec1 (.llvm.4439549944550214236) in nu-72036f9e72d4f945.sysinfo-a32bb0760ff2e40d.sysinfo.26688a53-cgu.11.rcgu.o.rcgu.o
       >           ld: symbol(s) not found for architecture x86_64
       >           clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
       >
       >
       > error: could not compile `nu` due to previous error
       For full logs, run 'nix log /nix/store/c0pkdjfxwdvmkiwwh2zsnj2625dxawag-nushell-0.75.0.drv'.

The ofborg test did pass, see https://github.com/NixOS/nixpkgs/runs/11270409222. Maybe you have to build it on master?

Also, I don't think #215059 will help, as the author of that PR.

@EjPlatzer
Copy link
Author

Maybe you have to build it on master?

Hmm, after upgrading nix and updating my nixpkgs-unstable channel, I'm still receiving the same error.

@wegank
Copy link
Member

wegank commented Feb 11, 2023

Maybe you have to build it on master?

Hmm, after upgrading nix and updating my nixpkgs-unstable channel, I'm still receiving the same error.

You have to wait for a day or two for the commit to arrive on nixpkgs-unstable.

@amz-x
Copy link
Contributor

amz-x commented Feb 12, 2023

Thank you @wegank your PR resolved it.

@EjPlatzer the fix is in the nixpkgs-unstable channel.

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants