| 25 Jul 2023 |
@2xsaiko:tchncs.de | In reply to @moots:matrix.org
error: builder for '/nix/store/cwjscarzmmrdhjbsqvwp21qxwnk2sr4q-aarch64-unknown-linux-gnueabihf-stage-static-gcc-12.2.0.drv' failed with exit code 2;
last 10 log lines:
> checking for O_CLOEXEC... yes
> checking for AF_UNIX... yes
> checking for AF_INET6... yes
> checking for _LK_LOCK... no
> checking if mkdir takes one argument... no
> This target does not support --with-float.
and this looks like it's cross compiling but I think "stage" is the bootstrap gcc which is very strange, why is it not cached | 17:44:00 |
moots | In reply to @2xsaiko:tchncs.de and this looks like it's cross compiling but I think "stage" is the bootstrap gcc which is very strange, why is it not cached im back to the same issue as before | 17:45:25 |
@ulli:hrnz.li | In reply to @2xsaiko:tchncs.de ah, okay :p not specifying it is probably better as you cannot specify invalid target quartets | 17:45:52 |
moots | bonks, head n suddenly it crossbuilds again :| | 17:46:11 |
moots | literally just ran nix fmt | 17:46:18 |
moots | * literally just ran nix fmt, had
error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range} | 17:46:32 |
moots | * literally just ran nix fmt, had
error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range} as error | 17:46:34 |
@ulli:hrnz.li | moots: are you trying to use aarch64-unknown-linu$-gnueabihf? | 17:46:40 |
@ulli:hrnz.li | because that is not a thing | 17:46:43 |
moots | system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu"; | 17:46:50 |
moots | i think thats right im not sure | 17:46:59 |
@ulli:hrnz.li | that should be fine | 17:47:17 |
@ulli:hrnz.li | is mounts.sh a thing from disko? | 17:47:24 |
moots | maybe, like i said the error vanished after a nixpkgs fmt | 17:47:41 |
@2xsaiko:tchncs.de | moots: yeah, I know why I think | 17:48:18 |
moots | building aarch64-unknown-linux-musl-binutils-2.40, hmm why musl n not glibc | 17:47:54 |
@2xsaiko:tchncs.de | flake-parts gives you packages that don't cross build | 17:48:37 |
@2xsaiko:tchncs.de | so in case this is from some package set instantiated by flake-parts, that won't work | 17:49:07 |
moots | unsure why its not downloading from caches though, it seems to be building a lot atm | 18:02:01 |
moots | also tried adding
nixConfig = {
extra-substituters = [
"https://colmena.cachix.org"
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg="
];
};
it did query them, but didnt seem to download any
| 18:02:22 |
moots | my input is nixpkgs.url = "nixpkgs/nixos-23.05";
and every other input has inputs.nixpkgs.follows = "nixpkgs"; | 18:02:45 |
moots | and accoridng to docs aarch64 should been in the cache | 18:03:28 |
@ulli:hrnz.li | there aren't really any caches for most cross stuff | 18:07:43 |
@ulli:hrnz.li | native aarch64 stuff is on the cache. | 18:08:11 |
moots | oh so cross built stuff has different hashes ? hm can i only cross build missing packages somehow? | 18:13:01 |
@ulli:hrnz.li | no | 18:15:38 |
@ulli:hrnz.li | when instantiating, nix doesn't know yet what's available on the cache and what isn't | 18:16:05 |
@ulli:hrnz.li | <obligatory * screams in impurity * > | 18:16:39 |
@ulli:hrnz.li | but you can generally use a native system and manually add a few packages from crossPkgs to that. | 18:17:25 |
@ulli:hrnz.li | you can also override some of the inputs of the cross-derivation you want to build with the native versions again | 18:19:56 |