Running phase: unamePreHook Running phase: unpackPhase Running phase: patchPhase applying patch /nix/store/6sxl0ap25xcg5pcvqpq80963i945jir8-source/buildroot-external/board/nabucasa/green/patches/linux/0004-Input-rk805-pwrkey-reverse-polarity-of-pwrkey.patch patching file drivers/input/misc/rk805-pwrkey.c Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase /nix/store/49cnv1lz3hiybz55z8lm8i401iqrpqyw-stdenv-linux/setup: line 1772: space: command not found make: Entering directory '/nix/store/6d2as8vsppsjanajch6v14mid81ypvc9-linux-7.3.1-dev/lib/modules/7.3.1/build' make[1]: Entering directory '/build/drivers/input/misc' CC [M] rk805-pwrkey.o MODPOST Module.symvers CC [M] rk805-pwrkey.mod.o CC [M] .module-common.o LD [M] rk805-pwrkey.ko BTF [M] rk805-pwrkey.ko make[1]: Leaving directory '/build/drivers/input/misc' make: Leaving directory '/nix/store/6d2as8vsppsjanajch6v14mid81ypvc9-linux-7.3.1-dev/lib/modules/7.3.1/build' Running phase: installPhase Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/8jgb8vpb7vi4pbvk5cpz5akds6j8s4nq-rk805-pwrkey-7.3.1 shrinking /nix/store/8jgb8vpb7vi4pbvk5cpz5akds6j8s4nq-rk805-pwrkey-7.3.1/lib/modules/7.3.1/updates/rk805-pwrkey.ko patchelf: wrong ELF type: Cannot allocate memory checking for references to /build/ in /nix/store/8jgb8vpb7vi4pbvk5cpz5akds6j8s4nq-rk805-pwrkey-7.3.1... patchelf: wrong ELF type: Cannot allocate memory patching script interpreter paths in /nix/store/8jgb8vpb7vi4pbvk5cpz5akds6j8s4nq-rk805-pwrkey-7.3.1 stripping (with command strip and flags -S -p) in /nix/store/8jgb8vpb7vi4pbvk5cpz5akds6j8s4nq-rk805-pwrkey-7.3.1/lib