Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22048

How to compile libav for AFLGo

$
0
0

I need to compile libav library with AFLGO.

cd ~export AFLGO=$PWD/aflgocd path/to/libav/folderexport SUBJECT=$PWD; export TMP_DIR=$PWD/obj-aflgo/tempexport CC=$AFLGO/afl-clang-fastexport CXX=$AFLGO/afl-clang-fast++export COPY_CFLAGS=$CFLAGSexport COPY_CXXFLAGS=$CXXFLAGSexport ADDITIONAL="-targets=$TMP_DIR/BBtargets.txt -outdir=$TMP_DIR -flto -fuse-ld=gold -Wl,-plugin-opt=save-temps"export CFLAGS="$CFLAGS $ADDITIONAL"export CXXFLAGS="$CXXFLAGS $ADDITIONAL"export LDFLAGS=-lpthread./configure

it returns:

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 latestversion from Git.  If the latest version fails, report the problem to thelibav-tools@libav.org mailing list or IRC #libav on irc.freenode.net.Include the log file "avbuild/config.log" produced by configure as this will helpsolving the problem.

I have checked config.log but it doesn't seem useful, these are the last lines:

....gcc -targets=/home/ubuntu16/Documents/github-repos/libav/obj-aflgo/temp/BBtargets.txt -outdir=/home/ubuntu16/Documents/$gcc: error: unrecognized command line option '-targets=/home/ubuntu16/Documents/github-repos/libav/obj-aflgo/temp/BBtar$C compiler test failed.

why does this try compile it with gcc again? I want to instrument it with AFLGo fuzzer.


Viewing all articles
Browse latest Browse all 22048

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>