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

Problem: nix builds are broken on aarch64-darwin #481

Closed
trevorbernard opened this issue Feb 18, 2024 · 3 comments · Fixed by #482
Closed

Problem: nix builds are broken on aarch64-darwin #481

trevorbernard opened this issue Feb 18, 2024 · 3 comments · Fixed by #482
Assignees
Labels
DevOps DevOps, Nix, CI/CD, etc.

Comments

@trevorbernard
Copy link
Contributor

No description provided.

@jhult
Copy link
Member

jhult commented Feb 18, 2024

This is the error I get on an Apple M1:

Undefined symbols for architecture arm64:
   "___cxa_end_catch", referenced from:
           std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char>>::overflow(int) in liblibspeedb_sys-2abd140cc78f8689.rlib(perf_context.o)
           std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence[abi:v160006]<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in liblibspeedb_sys-2abd140cc78f8689.rlib(perf_context.o)

I wonder if this could be related.

@trevorbernard
Copy link
Contributor Author

This is the error I get on an Apple M1:

Undefined symbols for architecture arm64:
   "___cxa_end_catch", referenced from:
           std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char>>::overflow(int) in liblibspeedb_sys-2abd140cc78f8689.rlib(perf_context.o)
           std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence[abi:v160006]<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in liblibspeedb_sys-2abd140cc78f8689.rlib(perf_context.o)

I wonder if this could be related.

This is a cmake cross-compilation bug in speedb. The PR linked should resolve your issue

@trevorbernard
Copy link
Contributor Author

If you wanted to learn why it's broke on aarch64-darwin, read the following issue which thoroughly describes the problem: (NixOS/nixpkgs#166205). This also explains why our previous flake worked under llvmPackages_11. TIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevOps DevOps, Nix, CI/CD, etc.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants