trailofbits/deepstate

Issues building Angora

akhikolla opened this issue · 0 comments

Hello,

I am trying to build Angora and when I run cmake with cmake -DDEEPSTATE_ANGORA=ON ../ it gives the below error even when Angora/bin/angora-clang++ and Angora/bin/angora-clang exist.

akhila@akhila-VirtualBox:~/.RcppDeepState/deepstate-master/build_angora$ CXX="$ANGORA_HOME/bin/angora-clang++" CC="$ANGORA_HOME/bin/angora-clang" cmake -DDEEPSTATE_ANGORA=ON ../
-- The CXX compiler identification is Clang 6.0.0
-- Check for working CXX compiler: /home/akhila/.RcppDeepState/Angora/bin/angora-clang++
-- Check for working CXX compiler: /home/akhila/.RcppDeepState/Angora/bin/angora-clang++ -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
  The C++ compiler

    "/home/akhila/.RcppDeepState/Angora/bin/angora-clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_91caf/fast"
    /usr/bin/make -f CMakeFiles/cmTC_91caf.dir/build.make CMakeFiles/cmTC_91caf.dir/build
    make[1]: Entering directory '/home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeTmp'
    Building CXX object CMakeFiles/cmTC_91caf.dir/testCXXCompiler.cxx.o
    /home/akhila/.RcppDeepState/Angora/bin/angora-clang++     -o CMakeFiles/cmTC_91caf.dir/testCXXCompiler.cxx.o -c /home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    angora-llvm-pass
    [+] Fast Mode.
    ModName: /home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -- 2417750269
    inst_ratio: 100
    Linking CXX executable cmTC_91caf
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_91caf.dir/link.txt --verbose=1
    /home/akhila/.RcppDeepState/Angora/bin/angora-clang++       -rdynamic CMakeFiles/cmTC_91caf.dir/testCXXCompiler.cxx.o  -o cmTC_91caf 
    /usr/bin/ld: cannot find -lc++abi
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    CMakeFiles/cmTC_91caf.dir/build.make:97: recipe for target 'cmTC_91caf' failed
    make[1]: *** [cmTC_91caf] Error 1
    make[1]: Leaving directory '/home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_91caf/fast' failed
    make: *** [cmTC_91caf/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:15 (project)


-- Configuring incomplete, errors occurred!
See also "/home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeOutput.log".
See also "/home/akhila/.RcppDeepState/deepstate-master/build_angora/CMakeFiles/CMakeError.log".

I have build angora successfully without any issues. But when I build it with deepstate it gives the above issue. Can some one please help me with this issue?

Thanks