Closed TomSmeets closed 6 years ago
cc @Ericson2314 who was working on cross compiling stuff and should know "everything" ;)
Try just removing .crossDrv
from that line. CrossDrv is now the default.
@Ericson2314 What line do you mean?
@TomSmeets probably means changing this line (from your original error message) from
inherit (kernel.crossDrv) src patches preUnpack;
to
inherit (kernel) src patches preUnpack;
Yes, it started compiling.
There were also some errors in my cryssSystem definition.
I changed my crossSystem.gcc
to:
gcc = {
arch = "armv8-a;
abi = "lp64";
};
Thanks for your help. :+1:
Can somebody make a PR for this?
Reopening until somebody confirms this is fixed on master
.
I just want to say that I never managed to finish the compilation. It fails with this error message:
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
https://github.com/NixOS/nixpkgs/pull/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? :grinning:
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
cross-aarch64.nix
Technical details
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)nix-env --version
)nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)