Skip to content

Instantly share code, notes, and snippets.

@theoparis
Created January 9, 2026 07:06
Show Gist options
  • Select an option

  • Save theoparis/bbee869f1647e5c14a614d73ba9e6fd0 to your computer and use it in GitHub Desktop.

Select an option

Save theoparis/bbee869f1647e5c14a614d73ba9e6fd0 to your computer and use it in GitHub Desktop.
nix redox cross compilation
nom build -v .#pkgsCross.x86_64-redox.libc --show-trace
fetching git input 'git+file:///home/theo/src/nixpkgs'
error:
… while evaluating an expression to select 'drvPath' on it
at «internal»:1:552:
… while evaluating strict
at «internal»:1:552:
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'relibc-x86_64-unknown-redox-0.2.5'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'cargoDeps' of derivation 'relibc-x86_64-unknown-redox-0.2.5'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/build-support/rust/build-rust-package/default.nix:104:7:
103|
104| cargoDeps =
| ^
105| if cargoVendorDir != null then
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'relibc-0.2.5-vendor'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'nativeBuildInputs' of derivation 'relibc-0.2.5-vendor'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:590:13:
589| depsBuildBuild = elemAt (elemAt dependencies 0) 0;
590| nativeBuildInputs = elemAt (elemAt dependencies 0) 1;
| ^
591| depsBuildTarget = elemAt (elemAt dependencies 0) 2;
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'x86_64-unknown-redox-cargo-1.91.1'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'buildCommand' of derivation 'x86_64-unknown-redox-cargo-1.91.1'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/build-support/trivial-builders/default.nix:80:17:
79| enableParallelBuilding = true;
80| inherit buildCommand name;
| ^
81| passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'x86_64-unknown-redox-rustc-wrapper-1.91.1'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'buildCommand' of derivation 'x86_64-unknown-redox-rustc-wrapper-1.91.1'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/build-support/trivial-builders/default.nix:80:17:
79| enableParallelBuilding = true;
80| inherit buildCommand name;
| ^
81| passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'x86_64-unknown-redox-rustc-1.91.1'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'configureFlags' of derivation 'x86_64-unknown-redox-rustc-1.91.1'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:604:13:
603| # This parameter is sometimes a string, sometimes null, and sometimes a list, yuck
604| configureFlags =
| ^
605| configureFlags
… while evaluating ccForTarget
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/development/compilers/rust/rustc.nix:181:26:
180| "${setHost}.cc=${ccForHost}"
181| "${setTarget}.cc=${ccForTarget}"
| ^
182|
… from call site
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/development/compilers/rust/rustc.nix:123:21:
122| cxxForHost = cxxPrefixForStdenv pkgsBuildHost.targetPackages.stdenv;
123| ccForTarget = ccPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
| ^
124| cxxForTarget = cxxPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
… while calling 'ccPrefixForStdenv'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/development/compilers/rust/rustc.nix:113:9:
112| ccPrefixForStdenv =
113| stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang" else "cc"}";
| ^
114| cxxPrefixForStdenv =
… from call site
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/development/compilers/rust/rustc.nix:113:20:
112| ccPrefixForStdenv =
113| stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang" else "cc"}";
| ^
114| cxxPrefixForStdenv =
… while calling 'prefixForStdenv'
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/development/compilers/rust/rustc.nix:111:25:
110| let
111| prefixForStdenv = stdenv: "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}";
| ^
112| ccPrefixForStdenv =
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'x86_64-unknown-redox-clang-wrapper-21.1.2'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'bintools' of derivation 'x86_64-unknown-redox-clang-wrapper-21.1.2'
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
… while calling the 'derivationStrict' builtin
at «internal»:1:208:
… while evaluating derivation 'x86_64-unknown-redox-llvm-binutils-wrapper-21.1.2'
whose name attribute is located at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13
at /nix/store/ssvk6qavijkjz3g7qqa3lckccxfmhzkp-source/pkgs/stdenv/generic/make-derivation.nix:541:13:
540| // {
541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
| ^
542| let
… while evaluating attribute 'libc_bin' of derivation 'x86_64-unknown-redox-llvm-binutils-wrapper-21.1.2'
… while calling the 'getAttr' builtin
at «internal»:1:500:
… while evaluating the second argument passed to builtins.getAttr
error: infinite recursion encountered
note: trace involved the following derivations:
derivation 'relibc-x86_64-unknown-redox-0.2.5'
derivation 'relibc-0.2.5-vendor'
derivation 'x86_64-unknown-redox-cargo-1.91.1'
derivation 'x86_64-unknown-redox-rustc-wrapper-1.91.1'
derivation 'x86_64-unknown-redox-rustc-1.91.1'
derivation 'x86_64-unknown-redox-clang-wrapper-21.1.2'
derivation 'x86_64-unknown-redox-llvm-binutils-wrapper-21.1.2'
┏━ 1 Errors:
┃ 540| // {
┃ 541| ${if (attrs ? name || (attrs ? pname && attrs ? version)) then "name" else null} =
┃ | ^
┃ 542| let
┃ … while evaluating attribute 'libc_bin' of derivation 'x86_64-unknown-redox-llvm-binutils-wrapper-21.1.2'
┃ … while calling the 'getAttr' builtin
┃ at «internal»:1:500:
┃ … while evaluating the second argument passed to builtins.getAttr
┃ error: infinite recursion encountered
┃ note: trace involved the following derivations:
┃ derivation 'relibc-x86_64-unknown-redox-0.2.5'
┃ derivation 'relibc-0.2.5-vendor'
┃ derivation 'x86_64-unknown-redox-cargo-1.91.1'
┃ derivation 'x86_64-unknown-redox-rustc-wrapper-1.91.1'
┃ derivation 'x86_64-unknown-redox-rustc-1.91.1'
┃ derivation 'x86_64-unknown-redox-clang-wrapper-21.1.2'
┃ derivation 'x86_64-unknown-redox-llvm-binutils-wrapper-21.1.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment