Git Product home page Git Product logo

Comments (14)

bjchan9an avatar bjchan9an commented on July 24, 2024 2
sudo sh ./autogen.sh

I tried this way and seems solve the problem.But I found if use "sudo", the default gcc will be applied instead of afl-clang-fast, and finally get an uninstrumented target.
I read the config.log, and found out the problem maybe an error in "afl-clang-fast --version". I tried this command outside and it causes an endless loop. I restart my terminal , set the environment variables , and execute the command again.It works, and the autogen.sh works as well.

from aflgo.

mboehme avatar mboehme commented on July 24, 2024

Can you successfully build libxml2 standalone?

from aflgo.

Jiadosi avatar Jiadosi commented on July 24, 2024

Hi, mboehme.
I skipped

export CC=$AFLGO/afl-clang-fast
export CXX=$AFLGO/afl-clang-fast++

and still failed with the same error.
But I found that skipping both
export CC=$AFLGO/afl-clang-fast export CXX=$AFLGO/afl-clang-fast++
and
export ADDITIONAL="-targets=$TMP_DIR/BBtargets.txt -outdir=$TMP_DIR -flto -fuse-ld=gold -Wl,-plugin-opt=save-temps"
will succeed building.

Is the problem lying in the parameter "-targets"?
Looking forward to your reply.

from aflgo.

mboehme avatar mboehme commented on July 24, 2024

What does config.log say (last few entries)?

from aflgo.

Jiadosi avatar Jiadosi commented on July 24, 2024

configure:3593: checking whether the C compiler works
configure:3615: gcc -targets=/BBtargets.txt -outdir= -flto -fuse-ld=gold -Wl,-plugin-opt=save-temps conftest.c >&5
gcc: error: unrecognized command line option '-targets=/BBtargets.txt'

from aflgo.

mboehme avatar mboehme commented on July 24, 2024

Firstly, it seems your TMP_DIR variable is not set (See step 5)

Secondly, it configures with GCC as compiler. Please run

export CC=$AFLGO/afl-clang-fast
export CXX=$AFLGO/afl-clang-fast++

and see what config.log says.

from aflgo.

Jiadosi avatar Jiadosi commented on July 24, 2024

Hi mboehme,
I solved the building problem by rebuilding the LLVM-gold plugin.
Now I passed building libxml2 but got stuck in generating distance, that is
$AFLGO/scripts/genDistance.sh $SUBJECT $TMP_DIR xmllint.
I got the following error:
Couldn't find any binaries in folder /home/chenyixiu/libxml2.
Thanks for your reply.

from aflgo.

mboehme avatar mboehme commented on July 24, 2024

Can you locate xmllint? Is it in /home/chenyixiu/libxml2?

from aflgo.

Jiadosi avatar Jiadosi commented on July 24, 2024

chenyixiu@chenyixiu-INVALID:~$ locate xmllint
/home/chenyixiu/libxml2/xmllint
/home/chenyixiu/libxml2/xmllint.bc
/home/chenyixiu/libxml2/xmllint.c
/home/chenyixiu/libxml2/xmllint.o
/home/chenyixiu/libxml2/xmllint.opt.bc
/home/chenyixiu/libxml2/.deps/xmllint.Po
/home/chenyixiu/libxml2/doc/xmllint.1
/home/chenyixiu/libxml2/doc/xmllint.html
/home/chenyixiu/libxml2/doc/xmllint.xml
/home/chenyixiu/temp/dot-files/cfg.xmllintExternalEntityLoader.dot
/usr/share/bash-completion/completions/xmllint
/usr/share/vim/vim74/compiler/xmllint.vim

from aflgo.

roachspray avatar roachspray commented on July 24, 2024

Another possible way to solve that issue is to ensure that you set AFL_CC and AFL_CXX and point them to the clang you want.

from aflgo.

hhicks13 avatar hhicks13 commented on July 24, 2024

try

 sudo sh ./autogen.sh

it worked for me

from aflgo.

youngjooGo avatar youngjooGo commented on July 24, 2024

Hello. I have a same problem "Couldn;t find any binaries in folder /home/yjgo/libxml2".
And I compiled the libxml2 with afl-clang-fast but I don't have any bc files.
Could you give me any suggestion?
It would be very helpful to me.
Thanks

from aflgo.

Hepburnsunsir avatar Hepburnsunsir commented on July 24, 2024

endless loop
could more clearly introduction how to success

from aflgo.

mboehme avatar mboehme commented on July 24, 2024

Did sudo sh ./autogen.sh resolve your problem? If so, we could add it to the tutorial.

from aflgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.