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: espanso (aarch64-darwin) #274769

Closed
n8henrie opened this issue Dec 16, 2023 · 1 comment · Fixed by #274839
Closed

Build failure: espanso (aarch64-darwin) #274769

n8henrie opened this issue Dec 16, 2023 · 1 comment · Fixed by #274839

Comments

@n8henrie
Copy link
Contributor

Steps To Reproduce

$ nix build \
    github:nixos/nixpkgs/231716639e43f219bceff7faed169c832d88add2#legacyPackages.aarch64-darwin.espanso
error: builder for '/nix/store/j3j35y09r9icqwv9g71nzdh5yf00fcq0-espanso-2.1.8.drv' failed with exit code 101;
       last 10 log lines:
       >                 FormFrame::FormFrame(wxString const&, wxPoint const&, wxSize const&) in libespanso_modulo-85904d1567e56237.rlib(form.o)
       >                 FormFrame::AddComponent(wxPanel*, wxBoxSizer*, FieldMetadata) in libespanso_modulo-85904d1567e56237.rlib(form.o)
       >                 wxButton::wxButton(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) in libespanso_modulo-85904d1567e56237.rlib(form.o)
       >                 FormFrame::UpdateHelpText() in libespanso_modulo-85904d1567e56237.rlib(form.o)
       >                 ...
       >           ld: symbol(s) not found for architecture arm64
       >           clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
       >
       >
       > error: could not compile `espanso` (bin "espanso") due to previous error
       For full logs, run 'nix log /nix/store/j3j35y09r9icqwv9g71nzdh5yf00fcq0-espanso-2.1.8.drv'.
$ nix log /nix/store/j3j35y09r9icqwv9g71nzdh5yf00fcq0-espanso-2.1.8.drv |
    gh gist create -f espanso-aarch64-darwin-build-failure.log
- Creating gist espanso-aarch64-darwin-build-failure.log
✓ Created secret gist espanso-aarch64-darwin-build-failure.log
https://gist.github.com/n8henrie/80f791891d3f7d8108517398b8b9c297

Build log

https://gist.github.com/n8henrie/80f791891d3f7d8108517398b8b9c297

Additional context

I was looking to resume my work on espanso's runtime crash on aarch64-darwin (which has been somewhat impeded by rust debug symbols not working), and now I find that espanso no longer builds at all.

As those issues haven't gotten much attention thought I'd reach out to @NixOS/darwin-maintainers to see if anyone can at least confirm (as my understanding is that the reproducibility on darwin can't be quite as good as NixOS -- especially when one has to disable the sandbox).

Notify maintainers

@kimat
@Thehedgeh0g

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.2.0, macOS 14.2`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(n8henrie): `""`
 - channels(root): `""`
 - nixpkgs: `/nix/store/8vnaa1py1c4d972kbb9xc2zkhabmdaks-source`

Add a 👍 reaction to issues you find important.

@n8henrie
Copy link
Contributor Author

@wegank Thank you so much for the quick fix! I keep running into these libcxx.cxxabi issues on darwin, I really want / need to learn more so I can contribute back!

Unfortunately I'm still getting a build error, which looks to be a sandbox issue:

  > Executing cargoInstallHook                                                                                    
       > ./scripts/create_bundle.sh: line 21: /bin/echo: Operation not permitted                                       
       > /nix/store/sf52i9wcklk5i5f2w15p0kng8dq3qqwx-stdenv-darwin/setup: line 140: pop_var_context: head of shell_variables not a function context

This seems to fix the issue: #275232

Could you take a look and if appropriate merge? Many thanks!

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.

1 participant