illegalprime / nixos-on-arm

Cross Compiling NixOS to ARM as a replacement for Yocto
141 stars 15 forks source link

Infinite recursion error #28

Open DanLipsitt opened 3 years ago

DanLipsitt commented 3 years ago

I'm trying to compile for BeagleBone on MacOS. I'm new to Nix, so maybe this is too many things to try to do at once. I'm not sure how to debug this error further.

commit 7709513b41b0c1c50ed5b4e3b3644cd34b26652c (HEAD, tag: 0.7.0, origin/master, origin/HEAD)

$ nix build -f . -I nixpkgs=nixpkgs -I machine=machines/beaglebone -I image=images/micro --show-trace
error: while evaluating the attribute 'buildCommand' of the derivation 'nixos-on-beaglebone-19.09pre-git-armv7l-linux.img-armv7l-unknown-linux-gnueabihf' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:196:11:
while evaluating the attribute 'buildCommand' of the derivation 'ext4-fs.img-armv7l-unknown-linux-gnueabihf' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:196:11:
while evaluating the attribute 'PATH' of the derivation 'closure-info' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/build-support/closure-info.nix:14:3:
while evaluating the attribute '__impureHostDeps' of the derivation 'coreutils-8.31' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:190:11:
while evaluating 'unique' at /Users/dan/nixos-on-arm/nixpkgs/lib/lists.nix:630:12, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:173:9:
while evaluating anonymous function at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:173:36, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:173:21:
while evaluating the attribute 'bash' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:6735:3:
while evaluating 'addMetaAttrs' at /Users/dan/nixos-on-arm/nixpkgs/lib/meta.nix:15:28, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:6735:10:
while evaluating 'callPackageWith' at /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:108:35, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:6735:19:
while evaluating 'makeOverridable' at /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:67:24, called from /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:112:8:
while evaluating anonymous function at /Users/dan/nixos-on-arm/nixpkgs/pkgs/shells/bash/4.4.nix:1:1, called from /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:69:12:
while evaluating 'wrapBintoolsWith' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:7901:5, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:8636:14:
while evaluating 'callPackageWith' at /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:108:35, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/top-level/all-packages.nix:7905:7:
while evaluating 'makeOverridable' at /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:67:24, called from /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:112:8:
while evaluating anonymous function at /Users/dan/nixos-on-arm/nixpkgs/pkgs/build-support/bintools-wrapper/default.nix:8:1, called from /Users/dan/nixos-on-arm/nixpkgs/lib/customisation.nix:69:12:
while evaluating the attribute 'cc.nativeTools' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/default.nix:148:14:
while evaluating anonymous function at /Users/dan/nixos-on-arm/nixpkgs/pkgs/build-support/cc-wrapper/default.nix:8:1, called from /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/darwin/default.nix:84:49:
while evaluating the attribute 'installPhase' of the derivation 'Libsystem-osx-10.11.6' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/default.nix:153:5:
while evaluating the attribute 'buildInputs' of the derivation 'xnu-osx-10.11.6' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/default.nix:153:5:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'bootstrap_cmds-dev-tools-7.0' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/default.nix:153:5:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'bison-3.3.2' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:190:11:
while evaluating the attribute 'postPatch' of the derivation 'perl-5.28.1' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/development/interpreters/perl/default.nix:30:5:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'coreutils-8.31' at /Users/dan/nixos-on-arm/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:190:11:
infinite recursion encountered, at undefined position
bensleveritt commented 3 years ago

I have the same error for RPi Zero.