[*] 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. 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 -flto -c src/afl-common.c -o src/afl-common.o 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 -flto -c src/afl-sharedmem.c -o src/afl-sharedmem.o 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 -flto -c src/afl-forkserver.c -o src/afl-forkserver.o 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 -Iinclude -fno-move-loop-invariants -fdisable-tree-cunrolli -O3 -fno-unroll-loops -c src/afl-performance.c -o src/afl-performance.o cc1: note: disable pass tree-cunrolli for functions in the range of [0, 4294967295] 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 -flto src/afl-fuzz-bitmap.c src/afl-fuzz.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-state.c src/afl-fuzz-stats.c src/afl-fuzz-statsd.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.10 -I/usr/include/python3.10 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm -lpython3.10 -lcrypt -lpthread -ldl -lutil -lm -lm -L/usr/lib -lpython3.10 -lcrypt -lpthread -ldl -lutil -lm -lm -DPYTHON_VERSION="\"Python 3.10.2\"" -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm -lm 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 -flto src/afl-showmap.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-showmap -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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 -flto 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,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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 -flto src/afl-gotcpu.c src/afl-common.o -o afl-gotcpu -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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 -flto 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,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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 src/afl-as.c -o afl-as -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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. /usr/bin/clang -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 -c src/afl-common.c -o instrumentation/afl-common.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm clang-13: warning: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-13: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument] clang-13: warning: -lrt: 'linker' input unused [-Wunused-command-line-argument] clang-13: warning: -lm: 'linker' input unused [-Wunused-command-line-argument] /usr/bin/clang -I/usr/include -I./../include -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 src/afl-cc.c instrumentation/afl-common.o -o afl-cc -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm -DCFLAGS_OPT=\"\" -lm /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.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 -O3 -Wno-unused-result -fPIC -c instrumentation/afl-compiler-rt.o.c -o afl-compiler-rt.o [*] Building 32-bit variant of the runtime (-m32)... failed (that's fine) [*] Building 64-bit variant of the runtime (-m64)... success! /usr/bin/clang++ -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 `llvm-config --cxxflags` -fno-rtti -fPIC -std=c++14 -c instrumentation/afl-llvm-common.cc -o instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -Wdeprecated -fno-rtti -fPIC -std=c++14 -shared instrumentation/afl-llvm-pass.so.cc -o afl-llvm-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o instrumentation/afl-llvm-pass.so.cc:457:28: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] PrevCaller = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:474:39: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] LoadInst *PrevCtxLoad = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:635:23: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] PrevLoc = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:643:23: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] PrevLoc = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:674:30: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] LoadInst *MapPtr = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:691:25: warning: 'CreateGEP' is deprecated: Use the version with explicit element type instead [-Wdeprecated-declarations] MapPtrIdx = IRB.CreateGEP( ^ /usr/include/llvm/IR/IRBuilder.h:1787:3: note: 'CreateGEP' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED( ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ instrumentation/afl-llvm-pass.so.cc:714:33: warning: 'CreateLoad' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] LoadInst *Counter = IRB.CreateLoad( ^ /usr/include/llvm/IR/IRBuilder.h:1678:3: note: 'CreateLoad' has been explicitly marked deprecated here LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, ^ /usr/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED' #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl ^ 7 warnings generated. /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -Wdeprecated -fno-rtti -fPIC -std=c++14 -shared instrumentation/SanitizerCoveragePCGUARD.so.cc -o SanitizerCoveragePCGUARD.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-compares-pass.so.cc -o split-compares-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-switches-pass.so.cc -o split-switches-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-routines-pass.cc -o cmplog-routines-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-instructions-pass.cc -o cmplog-instructions-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-switches-pass.cc -o cmplog-switches-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/afl-llvm-dict2file.so.cc -o afl-llvm-dict2file.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/compare-transform-pass.so.cc -o compare-transform-pass.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang -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 src/afl-ld-lto.c -o afl-ld-lto /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -fno-rtti -fPIC -std=c++14 -shared instrumentation/afl-llvm-lto-instrumentlist.so.cc -o afl-llvm-lto-instrumentlist.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -g -I ./include/ -DVERSION=\"++4.01a\" -Wno-variadic-macros -DLLVM_MINOR=1 -DLLVM_MAJOR=13 -Wno-deprecated-declarations -Wl,-znodelete -Wno-writable-strings -fno-rtti -fPIC -std=c++14 -shared instrumentation/SanitizerCoverageLTO.so.cc -o SanitizerCoverageLTO.so `llvm-config --ldflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -ldl -lrt -lm 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.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 -Wno-unused-result -O0 -flto=full -fPIC -c instrumentation/afl-llvm-rt-lto.o.c -o ./afl-llvm-rt-lto.o In file included from instrumentation/afl-llvm-rt-lto.o.c:13: In file included from /usr/include/stdio.h:27: In file included from /usr/include/bits/libc-header-start.h:33: /usr/include/features.h:412:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^ 1 warning generated. [*] 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. g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -std=c++11 -fPIC -fno-rtti -I"/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/plugin"/include -I"/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/plugin" -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-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 [*] 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 '../../libAFLQemuDriver.a' 'libAFLDriver.a' -> '../../libAFLDriver.a' make[1]: Leaving directory '/build/aflplusplus/src/aflplusplus/utils/aflpp_driver'