these 2 derivations will be built: /nix/store/2lm3msmcczas0sjjislmq37r8c9agi3b-wrap-buddy-1.0.1.drv /nix/store/n4rcbzlh802p1xmy4bzmiahhj4nhcc6j-wrap-buddy-hook.drv building '/nix/store/2lm3msmcczas0sjjislmq37r8c9agi3b-wrap-buddy-1.0.1.drv' on 'ssh-ng://nix@jamie' building '/nix/store/2lm3msmcczas0sjjislmq37r8c9agi3b-wrap-buddy-1.0.1.drv' wrap-buddy-1.0.1> Running phase: unpackPhase wrap-buddy-1.0.1> unpacking source archive /nix/store/s18x2kl9v46z8d0l48z95hz8j4c61rfj-source wrap-buddy-1.0.1> source root is source wrap-buddy-1.0.1> Running phase: patchPhase wrap-buddy-1.0.1> Running phase: updateAutotoolsGnuConfigScriptsPhase wrap-buddy-1.0.1> Running phase: configurePhase wrap-buddy-1.0.1> no configure script, doing nothing wrap-buddy-1.0.1> Running phase: buildPhase wrap-buddy-1.0.1> build flags: -j384 SHELL=/nix/store/ksdxvc92sa7h6yppixfl4xyj6632vf0x-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/dx6cb2nbh1kh0d6f1mv27l7q4lk1jgbd-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 LIBC_LIB=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib wrap-buddy-1.0.1> gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c wrap-buddy-1.0.1> gcc -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"/nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c wrap-buddy-1.0.1> gcc -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c wrap-buddy-1.0.1> /nix/store/kyan9443h0f7l22zmdk3gj2lm4pwyr5a-binutils-2.46/bin/ld.bfd: /nix/store/kyan9443h0f7l22zmdk3gj2lm4pwyr5a-binutils-2.46/bin/ld.bfd: warning: warning: stub.elfstub_reloc.elf has a LOAD segment with RWX permissions has a LOAD segment with RWX permissions wrap-buddy-1.0.1> wrap-buddy-1.0.1> objcopy -O binary --only-section=.all stub.elf stub.bin wrap-buddy-1.0.1> objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin wrap-buddy-1.0.1> xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h wrap-buddy-1.0.1> xxd -i stub.bin > src/patcher/stub_64.h wrap-buddy-1.0.1> /nix/store/dx6cb2nbh1kh0d6f1mv27l7q4lk1jgbd-gcc-wrapper-15.2.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/lib/wrap-buddy"' -DDEFAULT_INTERP='"/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2"' -DDEFAULT_LIBC_LIB='"/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc wrap-buddy-1.0.1> /nix/store/kyan9443h0f7l22zmdk3gj2lm4pwyr5a-binutils-2.46/bin/ld.bfd: warning: loader.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.1> objcopy -O binary --only-section=.all loader.elf loader.bin wrap-buddy-1.0.1> Running phase: installPhase wrap-buddy-1.0.1> install flags: -j384 SHELL=/nix/store/ksdxvc92sa7h6yppixfl4xyj6632vf0x-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/dx6cb2nbh1kh0d6f1mv27l7q4lk1jgbd-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 LIBC_LIB=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib install wrap-buddy-1.0.1> install -d /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/bin wrap-buddy-1.0.1> install -m 755 wrap-buddy /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/bin/ wrap-buddy-1.0.1> install -d /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/lib/wrap-buddy wrap-buddy-1.0.1> install -m 644 loader.bin stub.bin stub_reloc.bin /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/lib/wrap-buddy/ wrap-buddy-1.0.1> Running phase: fixupPhase wrap-buddy-1.0.1> shrinking RPATHs of ELF executables and libraries in /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1 wrap-buddy-1.0.1> shrinking /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/bin/wrap-buddy wrap-buddy-1.0.1> checking for references to /build/ in /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1... wrap-buddy-1.0.1> patching script interpreter paths in /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1 wrap-buddy-1.0.1> stripping (with command strip and flags -S -p) in /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/lib /nix/store/62vdqgk3ymzip854d6wr3319iy1ps14z-wrap-buddy-1.0.1/bin wrap-buddy-1.0.1> Running phase: installCheckPhase wrap-buddy-1.0.1> installcheck flags: -j384 SHELL=/nix/store/ksdxvc92sa7h6yppixfl4xyj6632vf0x-bash-5.3p9/bin/bash CXX_FOR_BUILD=/nix/store/dx6cb2nbh1kh0d6f1mv27l7q4lk1jgbd-gcc-wrapper-15.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 LIBC_LIB=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib INTERP=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 LIBC_LIB=/nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib check wrap-buddy-1.0.1> bash tests/test.sh --interp /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 --libs /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib wrap-buddy-1.0.1> === Test: basic patching === wrap-buddy-1.0.1> Using interpreter: /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 wrap-buddy-1.0.1> 64-bit stub: not available wrap-buddy-1.0.1> 32-bit stub: 439 bytes wrap-buddy-1.0.1> Patching: /build/tmp.agKSOJZbYm/basic wrap-buddy-1.0.1> ELF class: 32-bit wrap-buddy-1.0.1> Original entry: 0x1170 (file offset: 0x1170) wrap-buddy-1.0.1> Available space at entry: 4440 bytes wrap-buddy-1.0.1> Stub size: 439 bytes (padded to 448) wrap-buddy-1.0.1> Wrote config to /build/tmp.agKSOJZbYm/.basic.wrapbuddy wrap-buddy-1.0.1> Overwrote 448 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.agKSOJZbYm/basic wrap-buddy-1.0.1> PASS: basic patching wrap-buddy-1.0.1> === Test: --needed injection === wrap-buddy-1.0.1> Using interpreter: /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 wrap-buddy-1.0.1> 64-bit stub: not available wrap-buddy-1.0.1> 32-bit stub: 439 bytes wrap-buddy-1.0.1> Patching: /build/tmp.agKSOJZbYm/check wrap-buddy-1.0.1> ELF class: 32-bit wrap-buddy-1.0.1> Original entry: 0x1100 (file offset: 0x1100) wrap-buddy-1.0.1> Available space at entry: 4416 bytes wrap-buddy-1.0.1> Stub size: 439 bytes (padded to 448) wrap-buddy-1.0.1> Wrote config to /build/tmp.agKSOJZbYm/.check.wrapbuddy wrap-buddy-1.0.1> Overwrote 448 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.agKSOJZbYm/check wrap-buddy-1.0.1> PASS: --needed injection wrap-buddy-1.0.1> === Test: --relocatable === wrap-buddy-1.0.1> Using interpreter: /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 wrap-buddy-1.0.1> 64-bit stub: not available wrap-buddy-1.0.1> 32-bit stub: 641 bytes wrap-buddy-1.0.1> Patching: /build/tmp.agKSOJZbYm/relocatable wrap-buddy-1.0.1> ELF class: 32-bit wrap-buddy-1.0.1> Original entry: 0x1170 (file offset: 0x1170) wrap-buddy-1.0.1> Available space at entry: 4440 bytes wrap-buddy-1.0.1> Stub size: 641 bytes (padded to 656) wrap-buddy-1.0.1> Wrote config to /build/tmp.agKSOJZbYm/.relocatable.wrapbuddy wrap-buddy-1.0.1> Overwrote 656 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.agKSOJZbYm/relocatable wrap-buddy-1.0.1> PASS: --relocatable patching wrap-buddy-1.0.1> === Test: --relocatable binary movement === wrap-buddy-1.0.1> Using interpreter: /nix/store/p1f881g5hgakqag26rlbzbxhzw9gmjnx-glibc-2.42-61/lib/ld-linux.so.2 wrap-buddy-1.0.1> 64-bit stub: not available wrap-buddy-1.0.1> 32-bit stub: 641 bytes wrap-buddy-1.0.1> Patching: /build/tmp.agKSOJZbYm/staging/bin/movable wrap-buddy-1.0.1> ELF class: 32-bit wrap-buddy-1.0.1> Original entry: 0x1170 (file offset: 0x1170) wrap-buddy-1.0.1> Available space at entry: 4440 bytes wrap-buddy-1.0.1> Stub size: 641 bytes (padded to 656) wrap-buddy-1.0.1> Wrote config to /build/tmp.agKSOJZbYm/staging/bin/.movable.wrapbuddy wrap-buddy-1.0.1> Overwrote 656 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.agKSOJZbYm/staging/bin/movable wrap-buddy-1.0.1> PASS: --relocatable binary movement wrap-buddy-1.0.1> === Test: --relocatable with target interpreter === wrap-buddy-1.0.1> PASS: --relocatable with target interpreter wrap-buddy-1.0.1> === All tests passed === building '/nix/store/n4rcbzlh802p1xmy4bzmiahhj4nhcc6j-wrap-buddy-hook.drv' on 'ssh-ng://nix@jamie' building '/nix/store/n4rcbzlh802p1xmy4bzmiahhj4nhcc6j-wrap-buddy-hook.drv' post-build step Upload coverage to codecov: ok Skipping codecov: project=Mic92/wrap-buddy attr=x86_64-linux.test-32bit