[*] Compiling afl++ for OS Linux on ARCH x86_64 [*] Checking for the default compiler cc... [*] Testing the PATH environment variable... [*] Checking for the ability to compile x86 code... [+] shmat seems to be working. [+] Python 3.10.2 support seems to be working. [+] Everything seems to be working, ready to compile. make -j4 -f GNUmakefile.llvm make[1]: warning: -j4 forced in submake: resetting jobserver mode. make[1]: Entering directory '/build/aflplusplus/src/aflplusplus' [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14 [+] llvm_mode detected llvm 11+, enabling afl-lto LTO implementation [+] 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 13.0.1 with a clang version 13.0.1, good. [*] Checking for './afl-showmap'... [+] All set and ready to build. [*] Building 32-bit variant of the runtime (-m32)... failed (that's fine) [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wpointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -D_FORTIFY_SOURCE=2 -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.01a\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"13.0.1\" -Wno-deprecated -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/aflplusplus/src/aflplusplus=llvm_mode" -D_FORTIFY_SOURCE=2 ./test-instr.c -o test-instr -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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/aflplusplus/src/aflplusplus' make -f GNUmakefile.gcc_plugin make[1]: Entering directory '/build/aflplusplus/src/aflplusplus' [+] shmat seems to be working. [*] Checking for working 'cc'... [*] Checking for gcc plugin development header files... [*] Checking for './afl-showmap'... [+] All set and ready to build. [*] Building 32-bit variant of the runtime (-m32)... failed (that's fine) [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=cc ./afl-gcc-fast -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wpointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -D_FORTIFY_SOURCE=2 -Wall -Iinclude -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DGCC_VERSION=\"\" -DGCC_BINDIR=\"\" -Wno-unused-function -D_FORTIFY_SOURCE=2 ./test-instr.c -o test-instr -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm -lrt ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr