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

mtxclient, nheko fail to build on aarch64-linux #211758

Closed
uninsane opened this issue Jan 20, 2023 · 8 comments · Fixed by #212051
Closed

mtxclient, nheko fail to build on aarch64-linux #211758

uninsane opened this issue Jan 20, 2023 · 8 comments · Fixed by #212051
Labels
0.kind: build failure A package fails to build

Comments

@uninsane
Copy link
Contributor

uninsane commented Jan 20, 2023

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build '.#legacyPackages.aarch64-linux.nheko'

Build log

error: builder for '/nix/store/x2p0k768qavk91cwq9jv4xwcgpyhrscm-mtxclient-0.9.0.drv' failed with exit code 2;
       last 10 log lines:
       > make[2]: *** [CMakeFiles/matrix_client.dir/build.make:370: CMakeFiles/matrix_client.dir/lib/structs/events/encrypted.cpp.o] Error 1
       > In file included from /build/source/include/mtxclient/crypto/client.hpp:17,
       >                  from /build/source/lib/crypto/utils.cpp:17:
       > /build/source/include/mtx/identifiers.hpp:12:10: fatal error: compare: No such file or directory
       >    12 | #include <compare>
       >       |          ^~~~~~~~~
       > compilation terminated.
       > make[2]: *** [CMakeFiles/matrix_client.dir/build.make:132: CMakeFiles/matrix_client.dir/lib/crypto/utils.cpp.o] Error 1
       > make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/matrix_client.dir/all] Error 2
       > make: *** [Makefile:136: all] Error 2
       For full logs, run 'nix log /nix/store/x2p0k768qavk91cwq9jv4xwcgpyhrscm-mtxclient-0.9.0.drv'.
error: 1 dependencies of derivation '/nix/store/szdzykpfiknzmzl5j0mar4kvngnq7hig-nheko-0.11.1.drv' failed to build

Additional context

Notify maintainers

  • tagging @rnhmjoj for having initiated the backport.
  • tagging @fpletz as maintainer of both mtxclient and nheko.

Metadata

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

[[email protected]:~/dev/3rd/nixpkgs]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.86, NixOS, 23.05 (Stoat), 23.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - nixpkgs: `/home/colin/dev/3rd/nixpkgs`
@uninsane uninsane added the 0.kind: build failure A package fails to build label Jan 20, 2023
@uninsane
Copy link
Contributor Author

tested against the outstanding mtxclient 0.9.0 -> 0.9.1 PR: #211684. still broken.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Jan 20, 2023

I have no idea why a standard library header would depend, let alone be missing, on a different architecture.

@NickCao
Copy link
Member

NickCao commented Jan 20, 2023

Likely due to us using outdated gcc (gcc9) on aarch64-linux. The story is complicated, but is being addressed.

@NickCao
Copy link
Member

NickCao commented Jan 20, 2023

Forcing it to use gcc11Stdenv may fix the issue.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Jan 20, 2023

It seems so: I tested by cross-compiling mtxclient (I don't have an aarch64 system).

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Jan 20, 2023

Opened #211776

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Jan 20, 2023

Great... now coeurl fails to build.
EDIT: Fixed, but nheko is still broken.

@uninsane uninsane changed the title nixos-22.11: mtxclient, nheko fail to build on aarch64-linux mtxclient, nheko fail to build on aarch64-linux Jan 22, 2023
@uninsane
Copy link
Contributor Author

uninsane commented Jan 22, 2023 via email

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants