Hello, when I tried to run K-Scheduler-based AFL on FFmpeg and Exiv2, I encountered some compilation problems:
- Exiv2 compiled successfully with the following command:
export LLVM_COMPILER=clang
export CC=wllvm
export CXX=wllvm++
CC=wllvm CXX=wllvm++ CFLAGS="-fsanitize-coverage=trace-pc-guard,no-prune -O2 " CXXFLAGS="-fsanitize-coverage=trace-pc-guard,no-prune -O2 " LDFLAGS=/afl_integration/build_example/afl-llvm-rt.o cmake -DEXIV2_ENABLE_SHARED=OFF .
make -j
- FFmpeg failed to compile with the following command:
export LLVM_COMPILER=clang
export CC=wllvm
export CXX=wllvm++
export AR=llvm-ar
export RANLIB=llvm-ranlib
export CFLAGS="-fsanitize-coverage=trace-pc-guard,no-prune -O2"
export CXXFLAGS="-fsanitize-coverage=trace-pc-guard,no-prune -O2"
export LDFLAGS=/afl_integration/build_example/afl-llvm-rt.o
CC=wllvm CXX=wllvm++ ./configure --disable-shared --disable-inline-asm
make -j
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
gcc -fsanitize-coverage=trace-pc-guard,no-prune -O2 -c -o /tmp/ffconf.piSQB0BN/test.o /tmp/ffconf.piSQB0BN/test.c
cc1: error: unrecognized argument to '-fsanitize-coverage=' option: 'trace-pc-guard'
cc1: error: unrecognized argument to '-fsanitize-coverage=' option: 'no-prune'
C compiler test failed.
Hello, when I tried to run K-Scheduler-based AFL on FFmpeg and Exiv2, I encountered some compilation problems: