>>> afl: Building community/afl 2.57b-r2 (using abuild 3.9.0-r0) started Mon, 18 Apr 2022 09:19:19 +0000 >>> afl: Checking sanity of /home/buildozer/aports/community/afl/APKBUILD... >>> afl: Analyzing dependencies... >>> afl: Installing for build: build-base clang llvm clang-dev llvm-dev (1/25) Installing libffi (3.4.2-r1) (2/25) Installing xz-libs (5.2.5-r1) (3/25) Installing libxml2 (2.9.13-r0) (4/25) Installing llvm13-libs (13.0.1-r2) (5/25) Installing clang-libs (13.0.1-r0) (6/25) Installing clang (13.0.1-r0) (7/25) Installing llvm13 (13.0.1-r2) (8/25) Installing clang-extra-tools (13.0.1-r0) (9/25) Installing clang-dev (13.0.1-r0) (10/25) Installing libbz2 (1.0.8-r1) (11/25) Installing gdbm (1.23-r0) (12/25) Installing mpdecimal (2.5.1-r1) (13/25) Installing readline (8.1.2-r0) (14/25) Installing sqlite-libs (3.38.2-r0) (15/25) Installing python3 (3.10.3-r1) (16/25) Installing py3-appdirs (1.4.4-r3) (17/25) Installing py3-more-itertools (8.12.0-r2) (18/25) Installing py3-ordered-set (4.0.2-r3) (19/25) Installing py3-parsing (2.4.7-r3) (20/25) Installing py3-six (1.16.0-r1) (21/25) Installing py3-packaging (21.3-r0) (22/25) Installing py3-setuptools (59.4.0-r0) (23/25) Installing llvm13-test-utils (13.0.1-r2) (24/25) Installing llvm13-dev (13.0.1-r2) (25/25) Installing .makedepends-afl (20220418.091921) Executing busybox-1.35.0-r8.trigger OK: 683 MiB in 113 packages >>> afl: Cleaning up srcdir >>> afl: Cleaning up pkgdir >>> afl: Fetching https://distfiles.alpinelinux.org/distfiles/v3.16/afl-2.57b.tar.gz >>> afl: Fetching https://distfiles.alpinelinux.org/distfiles/v3.16/afl-2.57b.tar.gz >>> afl: Checking sha512sums... afl-2.57b.tar.gz: OK >>> afl: Unpacking /var/cache/distfiles/v3.16/afl-2.57b.tar.gz... [!] Note: skipping x86 compilation checks (AFL_NO_X86 set). clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-gcc.c -o afl-gcc -ldl set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $i; done clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-fuzz.c -o afl-fuzz -ldl afl-fuzz.c:3492:45: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long' [-Wformat] fprintf(f, "peak_rss_mb : %zu\n", usage.ru_maxrss >> 10); ~~~ ^~~~~~~~~~~~~~~~~~~~~ %ld 1 warning generated. clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-showmap.c -o afl-showmap -ldl clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-tmin.c -o afl-tmin -ldl clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-gotcpu.c -o afl-gotcpu -ldl clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-analyze.c -o afl-analyze -ldl clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DDOC_PATH=\"/usr/share/doc/afl\" -DBIN_PATH=\"/usr/bin\" afl-as.c -o afl-as -ldl ln -sf afl-as as [!] Note: skipping build tests (you may need to use LLVM or QEMU mode). [+] LLVM users: see llvm_mode/README.llvm for a faster alternative to afl-gcc. [+] All done! Be sure to review README - it's pretty short and useful. make: Entering directory '/home/buildozer/aports/community/afl/src/AFL-2.57b/llvm_mode' [*] Checking for working 'llvm-config'... [*] Checking for working 'clang'... [*] Checking for '../afl-showmap'... [+] All set and ready to build. clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"2.57b\" afl-clang-fast.c -o ../afl-clang-fast ln -sf afl-clang-fast ../afl-clang-fast++ g++ `llvm-config --cxxflags` -Wl,-znodelete -fno-rtti -fpic -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DVERSION=\"2.57b\" -Wno-variadic-macros -shared afl-llvm-pass.so.cc -o ../afl-llvm-pass.so `llvm-config --ldflags` cc1plus: warning: command-line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ afl-llvm-pass.so.cc: In member function 'virtual bool {anonymous}::AFLCoverage::runOnModule(llvm::Module&)': afl-llvm-pass.so.cc:124:22: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 124 | if (AFL_R(100) >= inst_ratio) continue; afl-llvm-pass.so.cc:134:41: warning: 'llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Value*, const llvm::Twine&)' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] 134 | LoadInst *PrevLoc = IRB.CreateLoad(AFLPrevLoc); | ~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/lib/llvm13/include/llvm/ADT/Statistic.h:29, from afl-llvm-pass.so.cc:41: /usr/lib/llvm13/include/llvm/IR/IRBuilder.h:1678:39: note: declared here 1678 | LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, | ^~~~~~~~~~ /usr/lib/llvm13/include/llvm/Support/Compiler.h:320:74: note: in definition of macro 'LLVM_ATTRIBUTE_DEPRECATED' 320 | #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl | ^~~~ afl-llvm-pass.so.cc:140:40: warning: 'llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Value*, const llvm::Twine&)' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] 140 | LoadInst *MapPtr = IRB.CreateLoad(AFLMapPtr); | ~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/lib/llvm13/include/llvm/ADT/Statistic.h:29, from afl-llvm-pass.so.cc:41: /usr/lib/llvm13/include/llvm/IR/IRBuilder.h:1678:39: note: declared here 1678 | LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, | ^~~~~~~~~~ /usr/lib/llvm13/include/llvm/Support/Compiler.h:320:74: note: in definition of macro 'LLVM_ATTRIBUTE_DEPRECATED' 320 | #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl | ^~~~ afl-llvm-pass.so.cc:143:24: warning: 'llvm::Value* llvm::IRBuilderBase::CreateGEP(llvm::Value*, llvm::ArrayRef, const llvm::Twine&)' is deprecated: Use the version with explicit element type instead [-Wdeprecated-declarations] 143 | IRB.CreateGEP(MapPtr, IRB.CreateXor(PrevLocCasted, CurLoc)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/lib/llvm13/include/llvm/ADT/Statistic.h:29, from afl-llvm-pass.so.cc:41: /usr/lib/llvm13/include/llvm/IR/IRBuilder.h:1788:14: note: declared here 1788 | Value *CreateGEP(Value *Ptr, ArrayRef IdxList, | ^~~~~~~~~ /usr/lib/llvm13/include/llvm/Support/Compiler.h:320:74: note: in definition of macro 'LLVM_ATTRIBUTE_DEPRECATED' 320 | #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl | ^~~~ afl-llvm-pass.so.cc:147:41: warning: 'llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Value*, const llvm::Twine&)' is deprecated: Use the version that explicitly specifies the loaded type instead [-Wdeprecated-declarations] 147 | LoadInst *Counter = IRB.CreateLoad(MapPtrIdx); | ~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/lib/llvm13/include/llvm/ADT/Statistic.h:29, from afl-llvm-pass.so.cc:41: /usr/lib/llvm13/include/llvm/IR/IRBuilder.h:1678:39: note: declared here 1678 | LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr, | ^~~~~~~~~~ /usr/lib/llvm13/include/llvm/Support/Compiler.h:320:74: note: in definition of macro 'LLVM_ATTRIBUTE_DEPRECATED' 320 | #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl | ^~~~ clang -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"2.57b\" -fPIC -c afl-llvm-rt.o.c -o ../afl-llvm-rt.o [*] Building 32-bit variant of the runtime (-m32)... success! [*] Building 64-bit variant of the runtime (-m64)... success! [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. AFL_CC=clang ../afl-clang-fast -Os -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"2.57b\" ../test-instr.c -o test-instr ../afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null echo 1 | ../afl-showmap -m none -q -o .test-instr1 ./test-instr Oops, the instrumentation does not seem to be behaving correctly! Please ping to troubleshoot the issue. make: *** [Makefile:103: test_build] Error 1 make: Leaving directory '/home/buildozer/aports/community/afl/src/AFL-2.57b/llvm_mode' >>> ERROR: afl: build failed >>> afl: Uninstalling dependencies... (1/25) Purging .makedepends-afl (20220418.091921) (2/25) Purging clang-dev (13.0.1-r0) (3/25) Purging clang (13.0.1-r0) (4/25) Purging clang-extra-tools (13.0.1-r0) (5/25) Purging clang-libs (13.0.1-r0) (6/25) Purging llvm13-dev (13.0.1-r2) (7/25) Purging llvm13 (13.0.1-r2) (8/25) Purging llvm13-test-utils (13.0.1-r2) (9/25) Purging py3-setuptools (59.4.0-r0) (10/25) Purging py3-appdirs (1.4.4-r3) (11/25) Purging py3-more-itertools (8.12.0-r2) (12/25) Purging py3-ordered-set (4.0.2-r3) (13/25) Purging py3-packaging (21.3-r0) (14/25) Purging py3-six (1.16.0-r1) (15/25) Purging py3-parsing (2.4.7-r3) (16/25) Purging python3 (3.10.3-r1) (17/25) Purging llvm13-libs (13.0.1-r2) (18/25) Purging libffi (3.4.2-r1) (19/25) Purging libxml2 (2.9.13-r0) (20/25) Purging xz-libs (5.2.5-r1) (21/25) Purging libbz2 (1.0.8-r1) (22/25) Purging gdbm (1.23-r0) (23/25) Purging mpdecimal (2.5.1-r1) (24/25) Purging readline (8.1.2-r0) (25/25) Purging sqlite-libs (3.38.2-r0) Executing busybox-1.35.0-r8.trigger OK: 297 MiB in 88 packages