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

Build failure: zig #353702

Open
ryanseipp opened this issue Nov 4, 2024 · 9 comments
Open

Build failure: zig #353702

ryanseipp opened this issue Nov 4, 2024 · 9 comments
Labels
0.kind: build failure A package fails to build 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master 6.topic: darwin Running or building packages on Darwin 6.topic: zig

Comments

@ryanseipp
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix repl
  2. :lf github:nixos/nixpkgs/7ffd9ae656aec493492b44d0ddfb28e79a1ea25d
  3. :b outputs.legacyPackages.aarch64-darwin.zig

Build log

https://gist.github.com/ryanseipp/9ecd265a0ab3fcd41383413f770e1990

Additional context

Appears to be a path lookup problem.

# looking up
/nix/store/4s8z8il6zyq77ixy4b8kfzwsnz90vsrm-apple-sdk-11.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk//nix/store/4s8z8il6zyq77ixy4b8kfzwsnz90vsrm-apple-sdk-11.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/system/libunwind.tbd
# actual path
/nix/store/4s8z8il6zyq77ixy4b8kfzwsnz90vsrm-apple-sdk-11.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/system/libunwind.tbd

Notify maintainers

@andrewrk @figsoda

Metadata

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.1.0, macOS 15.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/Users/ryanseipp/.nix-defexpr/channels/nixpkgs`

Add a 👍 reaction to issues you find important.

@ryanseipp ryanseipp added the 0.kind: build failure A package fails to build label Nov 4, 2024
@FliegendeWurst FliegendeWurst added 6.topic: zig 6.topic: darwin Running or building packages on Darwin labels Nov 4, 2024
@emilazy
Copy link
Member

emilazy commented Nov 5, 2024

Fixed by #353383.

@emilazy emilazy added the 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master label Nov 5, 2024
@haruki7049
Copy link
Contributor

Hey, I am encountered an error with zig_0_13. I note the steps to reproduce.


Steps to reproduce

  1. Build below nix expression:
# FileName: default.nix
{
  pkgs ? import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/3d7216f0da3265e6fc25eb78745111632df5e906.tar.gz") { },
}:

pkgs.zig_0_13

nix-shell -p nix-info --run "nix-info -m"

 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.1.0, macOS 15.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/63lvc59rjz075kb1f11xww2x2xqpw1pn-source`

Error log

https://gist.github.com/haruki7049/c36b10b7d94b49bb1e7012e4a2cae36b

@DontEatOreo
Copy link
Member

You can track when #353383 will reach master here:

https://nixpk.gs/pr-tracker.html?pr=353383

@haruki7049
Copy link
Contributor

I didn't know such a site existed. Thanks for letting me know.

@gshpychka
Copy link
Contributor

What's a good way to find out the last working commit in cases like this?

@emilazy
Copy link
Member

emilazy commented Nov 13, 2024

hydra-check can help you narrow it down. In this case it would be the last commit before the #348827 staging-next cycle was merged, containing #346043. OTOH, that fixed much more than it broke on macOS.

@cpick
Copy link

cpick commented Nov 14, 2024

It looks like staging-next was merged a few hours ago, but (if I’m reading hydra correctly) I believe the resulting evaluation unfortunately still has a broken zig build on darwin.

@cpick
Copy link

cpick commented Nov 14, 2024

I’m thinking I may be confused?
The staging-next build of zig.aarch64-darwin succeeded three days ago, but when that was merged into master a few hours ago the resulting evaluation still contained the zig.aarch64-darwin job that failed 15 days ago?

@haruki7049
Copy link
Contributor

Hey @cpick, Did you try nix build github:NixOS/nixpkgs/774183fcfe0583c03008b54995c5c2a1467ea762#zig?

I tried this command, then this command successed.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.1.0, macOS 15.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/63lvc59rjz075kb1f11xww2x2xqpw1pn-source`

If you successed to run the command, the cause might be happened by Hydra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master 6.topic: darwin Running or building packages on Darwin 6.topic: zig
Projects
None yet
Development

No branches or pull requests

7 participants