FoRTE-Research/UnTracer-AFL

No instrumentation targets found during make:

genewitch opened this issue · 4 comments

$ CFLAGS="-Wa,-F" CC=/home/genewitch/UnTracer-AFL/untracer-clang CXX=/home/genewitch/UnTracer-AFL/untracer-clang++ ./configure --disable-shared

$ make

make[1]: Entering directory '/home/genewitch/libarchive-libarchive-b52dd6c'
  CC       libarchive/archive_entry_link_resolver.lo
afl-cc 2.52b by <lcamtuf@google.com>
afl-as 2.52b by <lcamtuf@google.com>
Instrumenting in forkserver-only mode...
Instrumenting in forkserver-only mode...
[!] WARNING: No instrumentation targets found.
  CC       libarchive/archive_entry_sparse.lo
afl-cc 2.52b by <lcamtuf@google.com>
afl-as 2.52b by <lcamtuf@google.com>
Instrumenting in forkserver-only mode...
Instrumenting in forkserver-only mode...
[!] WARNING: No instrumentation targets found.
  CC       libarchive/archive_entry_stat.lo
afl-cc 2.52b by <lcamtuf@google.com>
afl-as 2.52b by <lcamtuf@google.com>
Instrumenting in forkserver-only mode...
Instrumenting in forkserver-only mode...
[!] WARNING: No instrumentation targets found.
  CC       libarchive/archive_entry_strmode.lo
afl-cc 2.52b by <lcamtuf@google.com>
afl-as 2.52b by <lcamtuf@google.com>
Instrumenting in forkserver-only mode...
Instrumenting in forkserver-only mode...
[!] WARNING: No instrumentation targets found.
  CC       libarchive/archive_entry_xattr.lo
afl-cc 2.52b by <lcamtuf@google.com>
afl-as 2.52b by <lcamtuf@google.com>
Instrumenting in forkserver-only mode...
Instrumenting in forkserver-only mode...
[!] WARNING: No instrumentation targets found.
  CC       libarchive/archive_getdate.lo
afl-cc 2.52b by <lcamtuf@google.com>

this continues on until the binary is built, with some afl-as with the same warnings. Am i just too tired to do this tonight?

i should add that even with CC=/home/genewitch/UnTracer-AFL/untracer-gcc CXX=/home/genewitch/UnTracer-AFL/untracer-g++ ./configure --disable-shared CFLAGS="-g -O2 -Wall -Wformat -Wformat-security -no-pie" it still says "No instrumentation targets found"

That message is normal (I didn't really "clean up" all the infrastructure of afl-as/afl-cc). I'm a little surprised you aren't seeing instrumented 1 locations though. Have you tried running UnTracer-AFL with the resulting binary?

This was my fault :-) you can close it. I've been using AFL for so long (and i got the command switches wrong on the binary!) that i assumed it was broken. Thanks!

No worries! Glad you got it working. :)