tribuchet: building on eliza 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: SHELL=/nix/store/3kaakrwd1jia637aa3cpj3lkgfxwg3k3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/pdiyvswjjyp1fw6xy6n8620lp1y2ffda-clang-wrapper-21.1.8/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib clang -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] /nix/store/mm80mz52armp3bqw4h16ic6y36dpyhqs-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 clang -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"/nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] /nix/store/mm80mz52armp3bqw4h16ic6y36dpyhqs-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 clang -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] /nix/store/mm80mz52armp3bqw4h16ic6y36dpyhqs-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.bin > src/patcher/stub_64.h xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h /nix/store/pdiyvswjjyp1fw6xy6n8620lp1y2ffda-clang-wrapper-21.1.8/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/lib/wrap-buddy"' -DDEFAULT_INTERP='"/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1"' -DDEFAULT_LIBC_LIB='"/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc Running phase: installPhase install flags: SHELL=/nix/store/3kaakrwd1jia637aa3cpj3lkgfxwg3k3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/pdiyvswjjyp1fw6xy6n8620lp1y2ffda-clang-wrapper-21.1.8/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib install install -d /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/bin install -m 755 wrap-buddy /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/bin/ install -d /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/lib/wrap-buddy install -m 644 loader.bin stub.bin stub_reloc.bin /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/lib/wrap-buddy/ Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1 shrinking /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/bin/wrap-buddy checking for references to /build/ in /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1... patching script interpreter paths in /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1 stripping (with command strip and flags -S -p) in /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/lib /nix/store/bn8120x29li0z8h77iq257fbi433piya-wrap-buddy-1.0.1/bin Running phase: installCheckPhase installcheck flags: SHELL=/nix/store/3kaakrwd1jia637aa3cpj3lkgfxwg3k3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/pdiyvswjjyp1fw6xy6n8620lp1y2ffda-clang-wrapper-21.1.8/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 LIBC_LIB=/nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib check bash tests/test.sh --interp /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 --libs /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib === Test: basic patching === Using interpreter: /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 64-bit stub: 430 bytes 32-bit stub: not available Patching: /build/tmp.ctqxaxmXVi/basic ELF class: 64-bit Original entry: 0x840 (file offset: 0x840) Available space at entry: 5288 bytes Stub size: 430 bytes (padded to 432) Wrote config to /build/tmp.ctqxaxmXVi/.basic.wrapbuddy Overwrote 432 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.ctqxaxmXVi/basic PASS: basic patching === Test: --needed injection === Using interpreter: /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 64-bit stub: 430 bytes 32-bit stub: not available Patching: /build/tmp.ctqxaxmXVi/check ELF class: 64-bit Original entry: 0x800 (file offset: 0x800) Available space at entry: 5148 bytes Stub size: 430 bytes (padded to 432) Wrote config to /build/tmp.ctqxaxmXVi/.check.wrapbuddy Overwrote 432 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.ctqxaxmXVi/check PASS: --needed injection === Test: --relocatable === Using interpreter: /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 64-bit stub: 632 bytes 32-bit stub: not available Patching: /build/tmp.ctqxaxmXVi/relocatable ELF class: 64-bit Original entry: 0x840 (file offset: 0x840) Available space at entry: 5288 bytes Stub size: 632 bytes (padded to 640) Wrote config to /build/tmp.ctqxaxmXVi/.relocatable.wrapbuddy Overwrote 640 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.ctqxaxmXVi/relocatable PASS: --relocatable patching === Test: --relocatable binary movement === Using interpreter: /nix/store/f8q4w2hbjvwy7qqwpnvbf5f4qwyww6cp-glibc-2.42-67/lib/ld-linux-aarch64.so.1 64-bit stub: 632 bytes 32-bit stub: not available Patching: /build/tmp.ctqxaxmXVi/staging/bin/movable ELF class: 64-bit Original entry: 0x840 (file offset: 0x840) Available space at entry: 5288 bytes Stub size: 632 bytes (padded to 640) Wrote config to /build/tmp.ctqxaxmXVi/staging/bin/.movable.wrapbuddy Overwrote 640 bytes at entry point Converted PT_INTERP to PT_NULL Patched: /build/tmp.ctqxaxmXVi/staging/bin/movable PASS: --relocatable binary movement === All tests passed ===