-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
cross compiling rustc-1.60.0 fails (build on x86_64, target aarch64, QEMU) #183956
Comments
Hmm, I don't recall rustc being broken on 22.05. Note that the cross-compilation support in master is generally better than in the release branches. I'd like to improve that but for now my recommendation is using master (or one of the unstable branches). |
Thanks, I'll try now with unstable and then master if it fails again... |
It seems like you might be confused between two different methods for building images for other platforms. One is using QEMU to emulate native builds for the platform you're building for, and the other is cross compilation (using compilers etc. native to your build system to produce binaries for the system you're building for).
So try either using QEMU emulation (without |
For reference, here's
and
|
Steps To Reproduce
Trying to cross-compile a full aarch64 system on a x86_64 machine (arch linux set up as per https://nixos.wiki/wiki/NixOS_on_ARM#Compiling_through_QEMU)
Using this flake:
flake.lock
and then
nix build .\#images.rpi2
(backslash is because zsh)Console output:
Build log
Output of
nix log /nix/store/d0d9yl1p52dljdgd2qh9km01jdj2k8y1-rustc-1.60.0.drv
Gist: https://gist.github.com/karthanistyr/ae79df64ff783bfee26af0da7c2e7369
Notify maintainers
@madjar @cstrahan @globin @Havvy
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: