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 linux_latest fails with 'crossDrv' missing. #24388
Comments
cc @Ericson2314 who was working on cross compiling stuff and should know "everything" ;) |
Try just removing |
@Ericson2314 |
@TomSmeets probably means changing this line (from your original error message) from
to
|
Yes, it started compiling. There were also some errors in my cryssSystem definition.
Thanks for your help. 👍 |
Can somebody make a PR for this? |
Reopening until somebody confirms this is fixed on |
I just want to say that I never managed to finish the compilation. unpacking source archive /nix/store/kj202br6bkh4xhd1i42p9rmlmbs5frhd-kmod-24.tar.xz
/nix/store/fylfd4fpibv5s2c01sq7m777qn8r7jz9-stdenv/setup: line 533: /nix/store/396q89s7wp2mhi94hfxyzll5y6ly4rx7-xz-5.2.2-aarch64-linux-gnu-bin/bin/xz: cannot execute binary file: Exec format error |
#26805 will take non-runnable binaries off the path, which should fix that. https://github.com/obsidiansystems/nixpkgs/tree/linux-cross-overhaul is a WIP branch to fix other linux stuff. |
@shlevy I think we can build linux now? 😀 |
I already built Linux fine on staging... |
(I didn't forget, just being tongue in cheek :). Great work, again!) |
Issue description
I want to cross-compile the linux kernel for my raspberry-pi 3
But it fails with the error:
attribute ‘crossDrv’ missing
.Steps to reproduce
> nix-build -A linux_latest cross-aarch64.nix error: attribute ‘crossDrv’ missing, at /etc/nixos/nixpkgs-rpi/pkgs/os-specific/linux/kernel/generic.nix:74:18 (use ‘--show-trace’ to show detailed location information)
cross-aarch64.nix
Technical details
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)nix-env --version
)nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)The text was updated successfully, but these errors were encountered: