You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@test -e afl-fuzz &&echo"[+] afl-fuzz and supporting tools successfully built"||echo"[-] afl-fuzz could not be built, please set CC to a working compiler"
336
336
@test -e afl-llvm-pass.so &&echo"[+] LLVM basic mode successfully built"||echo"[-] LLVM mode could not be built, please install at least llvm-11 and clang-11 or newer, see docs/INSTALL.md"
@test -e afl-gcc-pass.so && echo "[+] gcc_mode successfully built" || echo "[-] gcc_mode could not be built, it is optional, install gcc-VERSION-plugin-dev to enable this"
341
341
endif
342
+
@test -e afl-cc || echo "[-] AFL++ instrumentation compilers could not be built! Install llvm-VERSION-dev or gcc-VERSION-plugin-dev, see docs/INSTALL.md!"
342
343
@echo
343
344
344
345
.PHONY: llvm
@@ -465,10 +466,6 @@ endif
465
466
ready:
466
467
@echo "[+] Everything seems to be working, ready to compile. ($(shell $(CC) --version 2>&1|head -n 1))"
@cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1;if [ "$$DR"="0" ];thenecho;echo"Oops, the instrumentation of afl-cc does not seem to be behaving correctly!";echo;echo"Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue.";echo;exit 1;fi
586
583
@echo
587
584
@echo "[+] All right, the instrumentation of afl-cc seems to be working!"
588
-
# @echo "[*] Testing the CC wrapper afl-gcc and its instrumentation output..."
# @cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation of afl-gcc does not seem to be behaving correctly!"; \
590
+
# @cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation of afl-clang-fast does not seem to be behaving correctly!"; \
594
591
# gcc -v 2>&1 | grep -q -- --with-as= && ( echo; echo "Gcc is configured not to use an external assembler with the -B option." ) || \
595
592
# ( echo; echo "Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue." ); echo; exit 0; fi
596
593
# @echo
597
-
# @echo "[+] All right, the instrumentation of afl-gcc seems to be working!"
594
+
# @echo "[+] All right, the instrumentation of afl-clang-fast seems to be working!"
598
595
else
599
-
test_build: afl-cc afl-as afl-showmap
596
+
test_build: afl-cc afl-showmap
600
597
@echo "[!] Note: skipping build tests (you may need to use LLVM or QEMU mode)."
601
598
endif
602
599
@@ -606,15 +603,16 @@ all_done: test_build
606
603
@test -e cmplog-instructions-pass.so &&echo"[+] LLVM mode for 'afl-cc' successfully built!"||echo"[-] LLVM mode for 'afl-cc' failed to build, likely you either don't have llvm installed, or you need to set LLVM_CONFIG, to point to e.g. llvm-config-11. See instrumentation/README.llvm.md how to do this. Highly recommended!"
607
604
@test -e SanitizerCoverageLTO.so &&echo"[+] LLVM LTO mode for 'afl-cc' successfully built!"||echo"[-] LLVM LTO mode for 'afl-cc' failed to build, this would need LLVM 11+, see instrumentation/README.lto.md how to build it"
608
605
@test -e afl-gcc-pass.so &&echo"[+] gcc_plugin for 'afl-cc' successfully built!"||echo"[-] gcc_plugin for 'afl-cc' failed to build, unless you really need it that is fine - or read instrumentation/README.gcc_plugin.md how to build it"
609
-
@echo "[+] All done! Be sure to review the README.md - it's pretty short and useful."
606
+
@test -e afl-cc &&echo"[+] All done! Be sure to review the README.md - it's pretty short and useful."
607
+
@test -e afl-cc ||echo"[-] ERROR - neither afl-clang-fast or afl-gcc-fast could be compiled - YOU ARE MISSING PACKAGES! Read docs/INSTALL.md!"
610
608
@if [ "$(SYS)"="Darwin" ];thenprintf"\nWARNING: Fuzzing on MacOS X is slow because of the unusually high overhead of\nfork() on this OS. Consider using Linux or *BSD for fuzzing software not\nspecifically for MacOS.\n\n";fi
611
609
@! tty <&1 >/dev/null ||printf"\033[0;30mNOTE: If you can read this, your terminal probably uses white background.\nThis will make the UI hard to read. See docs/status_screen.md for advice.\033[0m\n"2>/dev/null
0 commit comments