d -r -d '' file +++ isELF /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/libstdc++.a +++ local fn=/nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/libstdc++.a +++ local fd +++ local magic +++ exec +++ read -r -n 4 -u 11 magic +++ exec +++ [[ !' +++ autoPatchelfFile /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o +++ local dep rpath= toPatch=/nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o +++ local interpreter=/nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/ld-linux-x86-64.so.2 +++ isExecutable /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o +++ readelf -h /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o +++ grep -q '^ *Type: *EXEC\>' +++ echo 'searching for dependencies of /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o' searching for dependencies of /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o +++ patchelf --remove-rpath /nix/store/0bvwvmaz3rd8iz3zc3vyclwid0sfbbhg-gcc-arm-embedded-7-2018-q2-update/arm-none-eabi/lib/redboot-crt0.o wrong ELF type + exitHandler + exitCode=1 + set +e + '[' -n '' ']' + (( 1 != 0 )) + runHook failureHook ++ shopt -po nounset + local 'oldOpts=set +o nounset' + set -u + local hookName=failureHook + shift + local 'hooksSlice=failureHooks[@]' + local hook + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"} + _eval '_callImplicitHook 0 failureHook' ++ type -t '_callImplicitHook 0 failureHook' + '[' '' = function ']' + set +u + eval '_callImplicitHook 0 failureHook' ++ _callImplicitHook 0 failureHook ++ set -u ++ local def=0 ++ local hookName=failureHook ++ case "$(type -t "$hookName")" in +++ type -t failureHook ++ '[' -z '' ']' ++ return 0 + set -u + eval 'set +o nounset' ++ set +o nounset + return 0 + '[' -n '' ']' + exit 1 builder for '/nix/store/fyy18kcbjlgwqayr9iyykhmbrmsqp598-gcc-arm-embedded-7-2018-q2-update.drv' failed with exit code 1 error: build of '/nix/store/fyy18kcbjlgwqayr9iyykhmbrmsqp598-gcc-arm-embedded-7-2018-q2-update.drv' failed