You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let
pkgs-cross = pkgs.pkgsCross.aarch64-multiplatform;
in ...
And my problem is that the rust compiler (or zig linker more specifically) cannot see any system libraries. So sqlite, ring and openssl-sys are unable to build. Outside of the nix env everything works (traditional setup) so I can guarantee that my rust setup etc works.
Do you have any pointers for me?
The text was updated successfully, but these errors were encountered:
Okay this is REALLY weird
It seems to be something with how i execute cargo and nix getting confused.
If I execute the cargo command directly from the devenv folder with maniefest_path then everything works.
Example command:
BUT, when executed through python with subprocess call - nothing works and I get cross compilation errors.
This is part of a build process with aws-cdk - that is why python runs the call to build it
I have no clue why or how - i checked the nix source for aws-cdk and found nothing. I checked their repo and found nothing. I have no clue why this variable gets added.
I will leave this open in the off-chance this has somthing to do with devenv. Feel free to close though, since my direct problem is resolved.
I for the life of me cannot figure out how to set up cross compilation with rust.
I have checked out https://github.com/cachix/devenv/blob/main/examples/rust-wasm-cross/devenv.nix but that just sets up wasm.
What I am doing is:
And my problem is that the rust compiler (or zig linker more specifically) cannot see any system libraries. So sqlite, ring and openssl-sys are unable to build. Outside of the nix env everything works (traditional setup) so I can guarantee that my rust setup etc works.
Do you have any pointers for me?
The text was updated successfully, but these errors were encountered: