==> Building on darmanitan ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/afl++ ./ .SRCINFO 942 100% 0.00kB/s 0:00:00 942 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=3/5) .nvchecker.toml 93 100% 90.82kB/s 0:00:00 93 100% 90.82kB/s 0:00:00 (xfr#2, to-chk=2/5) PKGBUILD 1,344 100% 1.28MB/s 0:00:00 1,344 100% 1.28MB/s 0:00:00 (xfr#3, to-chk=1/5) afl++-4.31c-1.log 242 100% 236.33kB/s 0:00:00 242 100% 236.33kB/s 0:00:00 (xfr#4, to-chk=0/5) sent 1,821 bytes received 132 bytes 3,906.00 bytes/sec total size is 2,576 speedup is 1.32 ==> Applying RISC-V patches... sending incremental file list ./ riscv64.patch 1,189 100% 0.00kB/s 0:00:00 1,189 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2) sent 713 bytes received 38 bytes 1,502.00 bytes/sec total size is 1,189 speedup is 1.58 patching file PKGBUILD ==> Patching arch to riscv64... ==> Running pkgctl build --arch riscv64 --repo extra on remote host... ==> WARNING: unsupported architecture: riscv64 ==> Building afl++  -> repo: extra  -> arch: riscv64  -> worker: felix-0 ==> Building afl++ for [extra] (riscv64) ]2;🔵 Container arch-nspawn-811336 on darmanitan.felixc.at\[?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (4) Old Version New Version Net Change Download Size core/ca-certificates-mozilla 3.109-1 3.110-1 0.00 MiB 0.38 MiB core/expat 2.7.0-1 2.7.1-1 0.00 MiB 0.12 MiB core/jansson 2.14-4 2.14.1-1 0.43 MiB 0.17 MiB core/libarchive 3.7.7-4 3.7.9-1 0.00 MiB 0.57 MiB Total Download Size: 1.24 MiB Total Installed Size: 3.65 MiB Net Upgrade Size: 0.43 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... libarchive-3.7.9-1-riscv64 downloading... ca-certificates-mozilla-3.110-1-riscv64 downloading... jansson-2.14.1-1-riscv64 downloading... expat-2.7.1-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading ca-certificates-mozilla... upgrading expat... upgrading jansson... upgrading libarchive... :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Rebuilding certificate stores... [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix-0]...done ==> Making package: afl++ 4.31c-1 (Thu Apr 3 12:14:47 2025) ==> Retrieving sources...  -> Downloading afl++-4.31c.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 84102 0 84102 0 0 46656 0 --:--:-- 0:00:01 --:--:-- 46656 100 2968k 0 2968k 0 0 1206k 0 --:--:-- 0:00:02 --:--:-- 4392k  -> Downloading afl++-riscv64-WORD_SIZE_64.patch... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 436 100 436 0 0 357 0 0:00:01 0:00:01 --:--:-- 357 100 436 100 436 0 0 357 0 0:00:01 0:00:01 --:--:-- 0 ==> Validating source files with sha256sums... afl++-4.31c.tar.gz ... Passed afl++-riscv64-WORD_SIZE_64.patch ... Passed ==> Validating source files with b2sums... afl++-4.31c.tar.gz ... Passed afl++-riscv64-WORD_SIZE_64.patch ... Passed ]2;🔵 Container arch-nspawn-813105 on darmanitan.felixc.at\==> Making package: afl++ 4.31c-1 (Thu Apr 3 09:15:51 2025) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (8) New Version Net Change Download Size core/libedit 20250104_3.1-1 0.25 MiB extra/llvm-libs 19.1.7-1 126.10 MiB extra/mpdecimal 4.0.0-2 0.29 MiB extra/clang 19.1.7-1 203.37 MiB extra/compiler-rt 19.1.7-1 82.60 MiB extra/lld 19.1.7-1 5.69 MiB 2.04 MiB extra/llvm 19.1.7-1 144.15 MiB core/python 3.13.2-1 108.68 MiB Total Download Size: 2.04 MiB Total Installed Size: 671.13 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... lld-19.1.7-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libedit... installing llvm-libs... installing compiler-rt... installing clang... Optional dependencies for clang openmp: OpenMP support in clang with -fopenmp python: for scan-view and git-clang-format [pending] llvm: referenced by some clang headers [pending] installing lld... installing llvm... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (12) New Version Net Change Download Size extra/perl-error 0.17030-1 0.04 MiB extra/perl-mailtools 2.22-1 0.10 MiB extra/perl-timedate 2.33-7 0.08 MiB extra/python-markupsafe 2.1.5-3 0.07 MiB extra/python-pyelftools 0.31-3 2.04 MiB extra/cmocka 1.1.7-2 0.12 MiB 0.04 MiB extra/cpio 2.15-2 0.95 MiB 0.22 MiB extra/git 2.49.0-1 27.47 MiB extra/pax-utils 1.3.8-1 0.22 MiB 0.09 MiB extra/python-jinja 1:3.1.5-1.1 1.77 MiB extra/python-msgpack 1.0.5-3 0.31 MiB extra/rust 1:1.85.1-1 257.82 MiB Total Download Size: 0.35 MiB Total Installed Size: 291.01 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... cpio-2.15-2-riscv64 downloading... pax-utils-1.3.8-1-riscv64 downloading... cmocka-1.1.7-2-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing cpio... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git git-zsh-completion: upstream zsh completion tk: gitk and git gui openssh: ssh transport and crypto man: show help with `git command --help` perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-pyelftools... installing pax-utils... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-msgpack... installing rust... Optional dependencies for rust gdb: rust-gdb script lldb: rust-lldb script installing cmocka... :: Running post-transaction hooks... (1/5) Creating system user accounts... Creating group 'git' with GID 971. Creating user 'git' (git daemon user) with UID 971 and GID 971. (2/5) Reloading system manager configuration... Skipped: Current root is not booted. (3/5) Arming ConditionNeedsUpdate... (4/5) Checking for old perl modules... (5/5) Updating the info directory file... [?25h==> Retrieving sources...  -> Found afl++-4.31c.tar.gz  -> Found afl++-riscv64-WORD_SIZE_64.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting afl++-4.31c.tar.gz with bsdtar ==> Starting prepare()... patching file include/config.h ==> Starting build()... [*] Compiling AFL++ for OS Linux on ARCH riscv64 [+] ZLIB detected [!] Note: skipping x86 compilation checks (AFL_NO_X86 set). [+] shmat seems to be working. [+] Python 3.13.2 support seems to be working. [+] Everything seems to be working, ready to compile. (cc (GCC) 14.2.1 20250207) cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB -c src/afl-common.c -o src/afl-common.o cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB -c src/afl-sharedmem.c -o src/afl-sharedmem.o cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB -c src/afl-forkserver.c -o src/afl-forkserver.o cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wno-format-truncation -DHAVE_ZLIB -Iinclude -c src/afl-performance.c -o src/afl-performance.o cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB src/afl-fuzz-bitmap.c src/afl-fuzz-cmplog.c src/afl-fuzz-extras.c src/afl-fuzz-init.c src/afl-fuzz-mutators.c src/afl-fuzz-one.c src/afl-fuzz-python.c src/afl-fuzz-queue.c src/afl-fuzz-redqueen.c src/afl-fuzz-run.c src/afl-fuzz-sanfuzz.c src/afl-fuzz-skipdet.c src/afl-fuzz-state.c src/afl-fuzz-stats.c src/afl-fuzz-statsd.c src/afl-fuzz.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-fuzz -DUSE_PYTHON -I/usr/include/python3.13 -I/usr/include/python3.13 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -lpython3.13 -ldl -lm -L/usr/lib -lpython3.13 -ldl -lm -DPYTHON_VERSION="\"Python 3.13.2\"" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -lm cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB src/afl-showmap.c src/afl-fuzz-mutators.c src/afl-fuzz-python.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-showmap -DUSE_PYTHON -I/usr/include/python3.13 -I/usr/include/python3.13 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -lpython3.13 -ldl -lm -L/usr/lib -lpython3.13 -ldl -lm -DPYTHON_VERSION="\"Python 3.13.2\"" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB src/afl-tmin.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-tmin -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB src/afl-gotcpu.c src/afl-common.o -o afl-gotcpu -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -DHAVE_ZLIB src/afl-analyze.c src/afl-common.o src/afl-sharedmem.o src/afl-performance.o src/afl-forkserver.o -o afl-analyze -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz make -j -f GNUmakefile.llvm make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c' make[1]: warning: -j0 forced in submake: resetting jobserver mode. [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14 [+] llvm_mode detected llvm 16+, enabling c++17 [+] llvm_mode detected llvm 12+, enabling afl-lto LTO implementation GNUmakefile.llvm:244: ld.lld found in a weird location (/usr/bin/ld.lld), but its the same version as LLVM so we will allow it [+] shmat seems to be working. /usr/bin/clang -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated -c src/afl-common.c -o instrumentation/afl-common.o -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz [*] Checking for working 'llvm-config'... [*] Checking for working '/usr/bin/clang'... [*] Checking for matching versions of '/usr/bin/clang' and 'llvm-config' clang: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,--sort-common: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,-z,relro: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -lrt: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -lz: 'linker' input unused [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument] [*] We have llvm-config version 19.1.7 with a clang version 19.1.7, good. [*] Checking for './afl-showmap'... /usr/bin/clang -I/usr/include -I./../include -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated -O3 -Wno-unused-result -fPIC -c instrumentation/afl-compiler-rt.o.c -o afl-compiler-rt.o [+] All set and ready to build. [*] Building 32-bit variant of the runtime (-m32)... [*] Building 64-bit variant of the runtime (-m64)... /usr/bin/clang++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated $(llvm-config --cxxflags) -fno-rtti -fPIC -std=c++17 -c instrumentation/afl-llvm-common.cc -o instrumentation/afl-llvm-common.o /usr/bin/clang -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated src/afl-ld-lto.c -o afl-ld-lto clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument] failed (that's fine) /usr/bin/clang -I/usr/include -I./../include -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated src/afl-cc.c instrumentation/afl-common.o -o afl-cc -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -DCFLAGS_OPT=\"\" -lm src/afl-cc.c:1196:52: warning: unused parameter 'argc' [-Wunused-parameter] 1196 | void mode_final_checkout(aflcc_state_t *aflcc, int argc, char **argv) { | ^ src/afl-cc.c:1196:65: warning: unused parameter 'argv' [-Wunused-parameter] 1196 | void mode_final_checkout(aflcc_state_t *aflcc, int argc, char **argv) { | ^ success! 2 warnings generated. /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -Wdeprecated -fno-rtti -fPIC -std=c++17 -shared instrumentation/afl-llvm-pass.so.cc -o afl-llvm-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -fno-rtti -fPIC -std=c++17 -shared instrumentation/SanitizerCoveragePCGUARD.so.cc -o SanitizerCoveragePCGUARD.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -Wno-deprecated-copy-dtor -Wdeprecated instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-compares-pass.so.cc -o split-compares-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-switches-pass.so.cc -o split-switches-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-routines-pass.cc -o cmplog-routines-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-instructions-pass.cc -o cmplog-instructions-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-switches-pass.cc -o cmplog-switches-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/afl-llvm-dict2file.so.cc -o afl-llvm-dict2file.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/compare-transform-pass.so.cc -o compare-transform-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -fno-rtti -fPIC -std=c++17 -shared instrumentation/afl-llvm-lto-instrumentlist.so.cc -o afl-llvm-lto-instrumentlist.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -Wno-writable-strings -fno-rtti -fPIC -std=c++17 -shared instrumentation/SanitizerCoverageLTO.so.cc -o SanitizerCoverageLTO.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang++ $(llvm-config --cxxflags) -fno-rtti -fno-exceptions -fPIC -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -g -I ./include/ -DVERSION=\"++4.31c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=1 -DLLVM_MAJOR=19 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/injection-pass.cc -o injection-pass.so $(llvm-config --ldflags) -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz instrumentation/afl-llvm-common.o /usr/bin/clang -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated -Wno-unused-result -O0 -flto=full -fPIC -c instrumentation/afl-llvm-rt-lto.o.c -o ./afl-llvm-rt-lto.o [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr [+] All right, the instrumentation seems to be working! [+] All done! You can now use './afl-cc' to compile programs. make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c' make -f GNUmakefile.gcc_plugin make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c' [+] shmat seems to be working. [*] Checking for working 'cc'... [*] Building 32-bit variant of the runtime (-m32)... [*] Checking for gcc plugin development header files... failed (that's fine) [*] Checking for './afl-showmap'... [+] All set and ready to build. g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin"/include -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin" -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-pass.so g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin"/include -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin" -shared instrumentation/afl-gcc-cmplog-pass.so.cc -o afl-gcc-cmplog-pass.so g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin"/include -I"/usr/lib/gcc/riscv64-unknown-linux-gnu/14.2.1/plugin" -shared instrumentation/afl-gcc-cmptrs-pass.so.cc -o afl-gcc-cmptrs-pass.so ln -sf afl-cc afl-gcc-fast ln -sf afl-cc afl-g++-fast ln -sf afl-cc.8 afl-gcc-fast.8 ln -sf afl-cc.8 afl-g++-fast.8 [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=cc ./afl-gcc-fast -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/afl++/src=/usr/src/debug/afl++ -flto=auto -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -Iinclude -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DGCC_VERSION=\"\" -DGCC_BINDIR=\"\" -Wno-unused-function ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -lrt ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr '../../libAFLQemuDriver.a' Note: Optional aflpp_qemu_driver_hook.so not built. 'libAFLDriver.a' -> '../../libAFLDriver.a' make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c/utils/aflpp_driver' Build Summary: [+] afl-fuzz and supporting tools successfully built [+] LLVM basic mode successfully built [+] LLVM mode successfully built [+] LLVM LTO mode successfully built [+] gcc_mode successfully built ==> Starting check()... [*] Compiling AFL++ for OS Linux on ARCH riscv64 [+] ZLIB detected [!] Note: skipping x86 compilation checks (AFL_NO_X86 set). [+] shmat seems to be working. [+] Python 3.13.2 support seems to be working. [+] Everything seems to be working, ready to compile. (cc (GCC) 14.2.1 20250207) make -j -f GNUmakefile.llvm make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c' make[1]: warning: -j0 forced in submake: resetting jobserver mode. [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14 [+] llvm_mode detected llvm 16+, enabling c++17 [+] llvm_mode detected llvm 12+, enabling afl-lto LTO implementation GNUmakefile.llvm:244: ld.lld found in a weird location (/usr/bin/ld.lld), but its the same version as LLVM so we will allow it [+] shmat seems to be working. [*] Checking for working 'llvm-config'... [*] Checking for working '/usr/bin/clang'... [*] Checking for matching versions of '/usr/bin/clang' and 'llvm-config' [*] We have llvm-config version 19.1.7 with a clang version 19.1.7, good. [*] Checking for './afl-showmap'... [*] Building 32-bit variant of the runtime (-m32)... [+] All set and ready to build. failed (that's fine) [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.31c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"19.1.7\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/build/afl++/src/AFLplusplus-4.31c=llvm_mode" -Wno-deprecated ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr [+] All right, the instrumentation seems to be working! [+] All done! You can now use './afl-cc' to compile programs. make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c' make -f GNUmakefile.gcc_plugin make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c' [+] shmat seems to be working. [*] Checking for working 'cc'... [*] Building 32-bit variant of the runtime (-m32)... [*] Checking for gcc plugin development header files... failed (that's fine) [*] Checking for './afl-showmap'... [+] All set and ready to build. [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=cc ./afl-gcc-fast -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -Wall -Iinclude -Wno-pointer-sign -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DGCC_VERSION=\"\" -DGCC_BINDIR=\"\" -Wno-unused-function ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz -lrt ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr '../../libdislocator.so' make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c/utils/libdislocator' make -C utils/libtokencap make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c/utils/libtokencap' cc -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -I ../../include/ -Wall -g -Wno-pointer-sign -shared -fPIC libtokencap.so.c -o libtokencap.so -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -ldl -lrt -lm -lz "-ldl" cp -f libtokencap.so ../../ make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c/utils/libtokencap' # -make -C utils/plot_ui cd nyx_mode && ./build_nyx_support.sh ================================================= Nyx build script ================================================= [*] Performing basic sanity checks... [-] Error: Nyx mode is only available on x86_64 (yet). Build Summary: [+] afl-fuzz and supporting tools successfully built [+] LLVM basic mode successfully built [+] LLVM mode successfully built [+] LLVM LTO mode successfully built [+] gcc_mode successfully built [-] nyx_mode could not be built, it is optional, see nyx_mode/README.md for what is needed [*] starting AFL++ test framework ... [*] Testing: afl-clang-fast, afl-showmap, afl-fuzz, afl-cmin and afl-tmin [+] afl-clang-fast compilation succeeded [+] afl-clang-fast instrumentation present and working correctly [+] afl-clang-fast run reported 5 instrumented locations which is fine [+] afl-clang-fast hardened mode succeeded and is working [*] running afl-fuzz for afl-clang-fast, this will take approx 10 seconds [+] afl-fuzz is working correctly with afl-clang-fast [+] afl-cmin correctly minimized the number of testcases [+] afl-cmin.bash correctly minimized the number of testcases [+] afl-tmin correctly minimized the testcase [*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin [+] llvm_mode compilation succeeded [+] llvm_mode instrumentation present and working correctly [+] llvm_mode run reported 5 instrumented locations which is fine [+] llvm_mode threadsafe compilation succeeded [+] llvm_mode threadsafe instrumentation present and working correctly [+] llvm_mode run reported 5 threadsafe instrumented locations which is fine [+] llvm_mode shared object with -z defs compilation succeeded [+] llvm_mode test-dlopen compilation succeeded [+] llvm_mode test-dlopen instrumentation present and working correctly [+] llvm_mode test-dlopen run reported 7 instrumented locations which is fine [+] llvm_mode hardened mode succeeded and is working [*] running afl-fuzz for llvm_mode, this will take approx 10 seconds [+] afl-fuzz is working correctly with llvm_mode [+] afl-cmin correctly minimized the number of testcases [+] afl-cmin.bash correctly minimized the number of testcases [+] afl-tmin correctly minimized the testcase [*] llvm_mode laf-intel/compcov testing splitting integer types (this might take some time) [+] llvm_mode laf-intel/compcov feature works correctly [*] running afl-fuzz with floating point splitting, this will take max. 45 seconds [+] llvm_mode laf-intel floatingpoint splitting feature works correctly [+] llvm_mode instrumentlist feature works correctly [*] running afl-fuzz for llvm_mode cmplog, this will take approx 10 seconds [+] afl-fuzz is working correctly with llvm_mode cmplog [+] llvm_mode persistent mode feature works correctly [*] Testing: LTO llvm_mode [+] llvm_mode LTO compilation succeeded [+] llvm_mode LTO instrumentation present and working correctly [+] llvm_mode LTO run reported 4 instrumented locations which is fine [+] llvm_mode LTO instrumentlist feature works correctly [+] llvm_mode LTO persistent mode feature works correctly [*] Testing: gcc_plugin [+] gcc_plugin compilation succeeded [+] gcc_plugin instrumentation present and working correctly [+] gcc_plugin run reported 5 instrumented locations which is fine [+] gcc_plugin hardened mode succeeded and is working [*] running afl-fuzz for gcc_plugin, this will take approx 10 seconds [+] afl-fuzz is working correctly with gcc_plugin [+] gcc_plugin instrumentlist feature works correctly [+] gcc_plugin persistent mode feature works correctly [*] Testing: shared library extensions [+] libtokencap did successfully capture tokens [+] libdislocator did successfully detect the memory corruption [*] Testing: qemu_mode [-] qemu_mode is not compiled, cannot test [*] Testing: frida_mode [-] frida_mode is not compiled, cannot test [*] Testing: nyx_mode [-] nyx_mode is not compiled, cannot test [*] Testing: unicorn_mode [-] unicorn_mode is not compiled, cannot test [*] Testing: custom mutator [*] running afl-fuzz for the C mutator, this will take approx 10 seconds [+] afl-fuzz is working correctly with the C mutator [*] running afl-fuzz with multiple custom C mutators, this will take approx 10 seconds [+] afl-fuzz is working correctly with multiple C mutators [*] running afl-fuzz for the Python mutator, this will take approx 10 seconds [+] afl-fuzz is working correctly with the Python mutator [*] Execution cmocka Unit-Tests  make[1]: Entering directory '/build/afl++/src/AFLplusplus-4.31c' [*] Compiling AFL++ for OS Linux on ARCH riscv64 [+] ZLIB detected /usr/bin/ld: cannot find test/unittests/unit_maybe_alloc.o: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [GNUmakefile:506: unit_maybe_alloc] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/build/afl++/src/AFLplusplus-4.31c' [*] 12 test cases completed. [-] not all test cases were executed [!] failure in tests :-( make: *** [GNUmakefile:364: tests] Error 1 ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix-0/build [?25h[?25h[?25hreceiving incremental file list afl++-4.31c-1-riscv64-build.log afl++-4.31c-1-riscv64-check.log afl++-4.31c-1-riscv64-prepare.log sent 81 bytes received 6,356 bytes 12,874.00 bytes/sec total size is 46,395 speedup is 7.21