Comments (14)
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.
Can you successfully build libxml2 standalone?
from aflgo.
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.
What does config.log say (last few entries)?
from aflgo.
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.
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.
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.
Can you locate xmllint? Is it in /home/chenyixiu/libxml2?
from aflgo.
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.
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.
try
sudo sh ./autogen.sh
it worked for me
from aflgo.
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.
endless loop
could more clearly introduction how to success
from aflgo.
Did sudo sh ./autogen.sh
resolve your problem? If so, we could add it to the tutorial.
from aflgo.
Related Issues (20)
- `cp $SUBJECT/test/dtd* in` happend the error HOT 1
- Building libav with aflgo HOT 3
- How do I debug AFLgo if I want to make improvements based on it? HOT 3
- Fail to build lua [lua.o: File format not recognized] HOT 1
- Can't test on aflgo on libxml2 HOT 4
- invalid syntax when execute gen_distance_fast.py HOT 1
- typo of AFLGO_PROFILER_FILE HOT 1
- Incorrect method of merge call graph HOT 2
- Some incorrect lines caused the script gen_distance_fast.py to abort.
- Can't build libxml2 HOT 1
- Function distance calculation differs from paper HOT 3
- Can afl-llvm-pass.so.cc:366 solve the same name issue of basic block? HOT 2
- Build sqlite by afl-clang-fast HOT 1
- Cannot observe the crash in simple C program HOT 1
- Build libxml2: C compiler cannot create executables
- cannot access 'TMP_DIR/dot-files': No such file or directory HOT 4
- How to direct to code in a shared library HOT 1
- Erros when generating distance file HOT 5
- Distance calculation optimization in distance.py
- Details about AFLGo for patch testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aflgo.