Running phase: unpackPhase unpacking source archive /nix/store/4zznh878gcxdzzfan3cbl03ky2xz5y8a-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: -j24 SHELL=/nix/store/x2shnaq7z74z2x4b4ykpqny6fflvz4kn-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/b9qy8pdrbmsvcqygrf485nhbzp5ls9yc-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 LIBC_LIB=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c gcc -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"/nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c gcc -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c /nix/store/1dd1spd5albmm9sc597mi5fvry1s2djy-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/1dd1spd5albmm9sc597mi5fvry1s2djy-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h /nix/store/b9qy8pdrbmsvcqygrf485nhbzp5ls9yc-gcc-wrapper-15.2.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/lib/wrap-buddy"' -DDEFAULT_INTERP='"/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2"' -DDEFAULT_LIBC_LIB='"/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc /nix/store/1dd1spd5albmm9sc597mi5fvry1s2djy-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: -j24 SHELL=/nix/store/x2shnaq7z74z2x4b4ykpqny6fflvz4kn-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/b9qy8pdrbmsvcqygrf485nhbzp5ls9yc-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 LIBC_LIB=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib install install -d /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/bin install -m 755 wrap-buddy /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/bin/ install -d /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/lib/wrap-buddy install -m 644 loader.bin stub.bin stub_reloc.bin /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/lib/wrap-buddy/ Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1 shrinking /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/bin/wrap-buddy checking for references to /build/ in /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1... patching script interpreter paths in /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1 stripping (with command strip and flags -S -p) in /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/lib /nix/store/j0885vip1xcc2m63ipz72ciav2r5b98z-wrap-buddy-1.0.1/bin Running phase: installCheckPhase installcheck flags: -j24 SHELL=/nix/store/x2shnaq7z74z2x4b4ykpqny6fflvz4kn-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/b9qy8pdrbmsvcqygrf485nhbzp5ls9yc-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 LIBC_LIB=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib INTERP=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 LIBC_LIB=/nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib check bash tests/test.sh --interp /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 --libs /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib === Test: basic patching === Using interpreter: /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 64-bit stub: not available 32-bit stub: 439 bytes Patching: /build/tmp.zb52QFxcED/basic ELF class: 32-bit Original entry: 0x1170 (file offset: 0x1170) Available space at entry: 4440 bytes Stub size: 439 bytes (padded to 448) Wrote config to /build/tmp.zb52QFxcED/.basic.wrapbuddy Overwrote 448 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.zb52QFxcED/basic PASS: basic patching === Test: --needed injection === Using interpreter: /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 64-bit stub: not available 32-bit stub: 439 bytes Patching: /build/tmp.zb52QFxcED/check ELF class: 32-bit Original entry: 0x1100 (file offset: 0x1100) Available space at entry: 4416 bytes Stub size: 439 bytes (padded to 448) Wrote config to /build/tmp.zb52QFxcED/.check.wrapbuddy Overwrote 448 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.zb52QFxcED/check PASS: --needed injection === Test: --relocatable === Using interpreter: /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 64-bit stub: not available 32-bit stub: 609 bytes Patching: /build/tmp.zb52QFxcED/relocatable ELF class: 32-bit Original entry: 0x1170 (file offset: 0x1170) Available space at entry: 4440 bytes Stub size: 609 bytes (padded to 624) Wrote config to /build/tmp.zb52QFxcED/.relocatable.wrapbuddy Overwrote 624 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.zb52QFxcED/relocatable PASS: --relocatable patching === Test: --relocatable binary movement === Using interpreter: /nix/store/h4bsh2w2i31ji0yl6gw1cjmkvawqf35j-glibc-2.42-67/lib/ld-linux.so.2 64-bit stub: not available 32-bit stub: 609 bytes Patching: /build/tmp.zb52QFxcED/staging/bin/movable ELF class: 32-bit Original entry: 0x1170 (file offset: 0x1170) Available space at entry: 4440 bytes Stub size: 609 bytes (padded to 624) Wrote config to /build/tmp.zb52QFxcED/staging/bin/.movable.wrapbuddy Overwrote 624 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.zb52QFxcED/staging/bin/movable PASS: --relocatable binary movement === All tests passed ===