this derivation will be built: /nix/store/971vqd44hyhz7iyj7yi16lqzdmijmrl4-wrap-buddy-1.0.1.drv these 6 paths will be fetched (3.0 MiB download, 19.4 MiB unpacked): /nix/store/qlzixv07dypixsjgn2dnc5p35sp3v00h-clang-wrapper-21.1.8 /nix/store/qd6ivkpnmnhsldn7zijlszwxmrv1rkfc-libcxx-21.1.8 /nix/store/dwwib2j88zblhlxmr86jcjmpm01j7ld7-libcxx-21.1.8-dev /nix/store/s3wrwa82bwxk4q5jmdwj4yh3q2dx1wi4-stdenv-linux /nix/store/bwiyas9wp89d1c89kcw2ks38nzb17zh7-tinyxxd-1.3.16 /nix/store/k7drnvbwv95cdlr02lmda0km175naxbf-xxd-tinyxxd-1.3.16 Failed to find a machine for remote build! derivation: 971vqd44hyhz7iyj7yi16lqzdmijmrl4-wrap-buddy-1.0.1.drv required (system, features): (aarch64-linux, []) 1 available machines: (systems, maxjobs, supportedFeatures, mandatoryFeatures) ([aarch64-darwin, x86_64-darwin], 8, [big-parallel, recursive-nix], []) building '/nix/store/971vqd44hyhz7iyj7yi16lqzdmijmrl4-wrap-buddy-1.0.1.drv' wrap-buddy-1.0.1> tribuchet: building on eliza wrap-buddy-1.0.1> Running phase: unpackPhase wrap-buddy-1.0.1> unpacking source archive /nix/store/4zznh878gcxdzzfan3cbl03ky2xz5y8a-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: SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/qlzixv07dypixsjgn2dnc5p35sp3v00h-clang-wrapper-21.1.8/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 wrap-buddy-1.0.1> 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 wrap-buddy-1.0.1> clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] wrap-buddy-1.0.1> /nix/store/bii425l899y52i6rv7zd1yq738rrha1m-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> 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/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c wrap-buddy-1.0.1> clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] wrap-buddy-1.0.1> /nix/store/bii425l899y52i6rv7zd1yq738rrha1m-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.1> objcopy -O binary --only-section=.all stub.elf stub.bin wrap-buddy-1.0.1> 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 wrap-buddy-1.0.1> clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] wrap-buddy-1.0.1> /nix/store/bii425l899y52i6rv7zd1yq738rrha1m-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions 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.bin > src/patcher/stub_64.h wrap-buddy-1.0.1> xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h wrap-buddy-1.0.1> /nix/store/qlzixv07dypixsjgn2dnc5p35sp3v00h-clang-wrapper-21.1.8/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/lib/wrap-buddy"' -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 wrap-buddy-1.0.1> Running phase: installPhase wrap-buddy-1.0.1> install flags: SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/qlzixv07dypixsjgn2dnc5p35sp3v00h-clang-wrapper-21.1.8/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 wrap-buddy-1.0.1> install -d /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/bin wrap-buddy-1.0.1> install -m 755 wrap-buddy /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/bin/ wrap-buddy-1.0.1> install -d /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-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/h6rbch4ning3cnlbq2c55qm6k95nxqvb-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/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1 wrap-buddy-1.0.1> shrinking /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/bin/wrap-buddy wrap-buddy-1.0.1> checking for references to /build/ in /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1... wrap-buddy-1.0.1> patching script interpreter paths in /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1 wrap-buddy-1.0.1> stripping (with command strip and flags -S -p) in /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/lib /nix/store/h6rbch4ning3cnlbq2c55qm6k95nxqvb-wrap-buddy-1.0.1/bin wrap-buddy-1.0.1> Running phase: installCheckPhase wrap-buddy-1.0.1> installcheck flags: SHELL=/nix/store/z3x2qxagi8wqfx9n59frhdyml7njr9z2-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/qlzixv07dypixsjgn2dnc5p35sp3v00h-clang-wrapper-21.1.8/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 wrap-buddy-1.0.1> 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 wrap-buddy-1.0.1> === Test: basic patching === wrap-buddy-1.0.1> Using interpreter: /nix/store/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 wrap-buddy-1.0.1> 64-bit stub: 430 bytes wrap-buddy-1.0.1> 32-bit stub: not available wrap-buddy-1.0.1> Patching: /build/tmp.iqJaRIhvZz/basic wrap-buddy-1.0.1> ELF class: 64-bit wrap-buddy-1.0.1> Original entry: 0x840 (file offset: 0x840) wrap-buddy-1.0.1> Available space at entry: 5288 bytes wrap-buddy-1.0.1> Stub size: 430 bytes (padded to 432) wrap-buddy-1.0.1> Wrote config to /build/tmp.iqJaRIhvZz/.basic.wrapbuddy wrap-buddy-1.0.1> Overwrote 432 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.iqJaRIhvZz/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/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 wrap-buddy-1.0.1> 64-bit stub: 430 bytes wrap-buddy-1.0.1> 32-bit stub: not available wrap-buddy-1.0.1> Patching: /build/tmp.iqJaRIhvZz/check wrap-buddy-1.0.1> ELF class: 64-bit wrap-buddy-1.0.1> Original entry: 0x800 (file offset: 0x800) wrap-buddy-1.0.1> Available space at entry: 5148 bytes wrap-buddy-1.0.1> Stub size: 430 bytes (padded to 432) wrap-buddy-1.0.1> Wrote config to /build/tmp.iqJaRIhvZz/.check.wrapbuddy wrap-buddy-1.0.1> Overwrote 432 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.iqJaRIhvZz/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/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 wrap-buddy-1.0.1> 64-bit stub: 632 bytes wrap-buddy-1.0.1> 32-bit stub: not available wrap-buddy-1.0.1> Patching: /build/tmp.iqJaRIhvZz/relocatable wrap-buddy-1.0.1> ELF class: 64-bit wrap-buddy-1.0.1> Original entry: 0x840 (file offset: 0x840) wrap-buddy-1.0.1> Available space at entry: 5288 bytes wrap-buddy-1.0.1> Stub size: 632 bytes (padded to 640) wrap-buddy-1.0.1> Wrote config to /build/tmp.iqJaRIhvZz/.relocatable.wrapbuddy wrap-buddy-1.0.1> Overwrote 640 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.iqJaRIhvZz/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/6wjykzqf6w3kzfhjc4z7dcd84j0dzsgm-glibc-2.42-84/lib/ld-linux-aarch64.so.1 wrap-buddy-1.0.1> 64-bit stub: 632 bytes wrap-buddy-1.0.1> 32-bit stub: not available wrap-buddy-1.0.1> Patching: /build/tmp.iqJaRIhvZz/staging/bin/movable wrap-buddy-1.0.1> ELF class: 64-bit wrap-buddy-1.0.1> Original entry: 0x840 (file offset: 0x840) wrap-buddy-1.0.1> Available space at entry: 5288 bytes wrap-buddy-1.0.1> Stub size: 632 bytes (padded to 640) wrap-buddy-1.0.1> Wrote config to /build/tmp.iqJaRIhvZz/staging/bin/.movable.wrapbuddy wrap-buddy-1.0.1> Overwrote 640 bytes at entry point wrap-buddy-1.0.1> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.1> Patched: /build/tmp.iqJaRIhvZz/staging/bin/movable wrap-buddy-1.0.1> PASS: --relocatable binary movement wrap-buddy-1.0.1> === All tests passed === post-build step Upload coverage to codecov: ok Skipping codecov: project=Mic92/wrap-buddy attr=checks.aarch64-linux.test-libcxx