-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I am trying to build AFLplusplus from source following the instructions on here - https://github.com/AFLplusplus/AFLplusplus/blob/stable/docs/INSTALL.md
When I run make distrib it seems to error out during unicorn_mode build stage. Here is what I observed:
[ 94%] Built target sample_x86
make[3]: Leaving directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl/unicorn/build'
make[2]: *** [Makefile:146: all] Error 2
make[2]: Leaving directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl/unicorn/build'
make[1]: *** [Makefile:11: unicorn/build/libunicorn-common.a] Error 2
make[1]: Leaving directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl'
make: [GNUmakefile:651: distrib] Error 1 (ignored)
Any suggestions on how to resolve this? I am running Ubuntu 22.04.1 LTS on a x86_64 machine
Edit : Looking at the output logs better, I realize this is where the errors start
[ 93%] Building C object CMakeFiles/sample_x86.dir/samples/sample_x86.c.o
make[4]: Entering directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl/unicorn/build'
[ 93%] Building C object CMakeFiles/sample_x86_32_gdt_and_seg_regs.dir/samples/sample_x86_32_gdt_and_seg_regs.c.o
make[4]: Entering directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl/unicorn/build'
[ 93%] Building C object CMakeFiles/sample_batch_reg.dir/samples/sample_batch_reg.c.o
make[4]: Entering directory '/home/[email protected]/Tools/AFLplusplus/unicorn_mode/unicornafl/unicorn/build'
@syntax error in archive script, line 1
/usr/bin/ar: /home/nb-ap: No such file or directory
@make[4]: *** [CMakeFiles/bundling_target.dir/build.make:73: libunicorn.a] Error 9
I am guessing the arguments to the call to ar don't have quotes correctly, coz it seems to ignore my home directory name after the @ . Where should I edit to fix this?