Running phase: unpackPhase unpacking source archive /nix/store/narnbxbbn9wqa7z715m2x7ycrss2gsj0-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: -j8 SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/bv4iz5h4bsy9ivn45c71j78m8rq233ss-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"/nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/lib/wrap-buddy/loader.bin"' -Iinclude -o stub.elf src/stub/stub.c /nix/store/bii425l899y52i6rv7zd1yq738rrha1m-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions objcopy -O binary --only-section=.all stub.elf stub.bin xxd -i stub.bin > src/patcher/stub_64.h /nix/store/bv4iz5h4bsy9ivn45c71j78m8rq233ss-gcc-wrapper-15.3.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DDEFAULT_INTERP='"/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1"' -DDEFAULT_LIBC_LIB='"/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc /nix/store/bii425l899y52i6rv7zd1yq738rrha1m-binutils-2.46/bin/ld.bfd: warning: loader.elf has a LOAD segment with RWX permissions objcopy -O binary --only-section=.all loader.elf loader.bin Running phase: installPhase install flags: -j8 SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/bv4iz5h4bsy9ivn45c71j78m8rq233ss-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib install install -d /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/bin install -m 755 wrap-buddy /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/bin/ install -d /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/lib/wrap-buddy install -m 644 loader.bin stub.bin /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/lib/wrap-buddy/ Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0 shrinking /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/bin/wrap-buddy checking for references to /build/ in /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0... patching script interpreter paths in /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0 stripping (with command strip and flags -S -p) in /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/lib /nix/store/qdpc3n8sx2r84ic8333m8zrjgd7j83fp-wrap-buddy-1.0.0/bin Running phase: installCheckPhase installcheck flags: -j8 SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/bv4iz5h4bsy9ivn45c71j78m8rq233ss-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib check bash tests/test.sh --interp /nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 --libs /nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib === Test: basic patching === Using interpreter: /nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 64-bit stub: 422 bytes 32-bit stub: not available Patching: /build/tmp.jZW4zgLruT/basic ELF class: 64-bit Original entry: 0xa00 (file offset: 0xa00) Available space at entry: 4820 bytes Stub size: 422 bytes (padded to 432) Wrote config to /build/tmp.jZW4zgLruT/.basic.wrapbuddy Overwrote 432 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.jZW4zgLruT/basic PASS: basic patching === Test: --needed injection === Using interpreter: /nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 64-bit stub: 422 bytes 32-bit stub: not available Patching: /build/tmp.jZW4zgLruT/check ELF class: 64-bit Original entry: 0x840 (file offset: 0x840) Available space at entry: 4748 bytes Stub size: 422 bytes (padded to 432) Wrote config to /build/tmp.jZW4zgLruT/.check.wrapbuddy Overwrote 432 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.jZW4zgLruT/check PASS: --needed injection === All tests passed ===