ChrisTimperley / cb-multios

DARPA Challenges Sets for Linux, Windows, and macOS
https://blog.trailofbits.com/2016/08/01/your-tool-works-better-than-mine-prove-it/
MIT License
0 stars 0 forks source link

Add support for coverage collection to BugZoo generator #2

Open ChrisTimperley opened 5 years ago

ChrisTimperley commented 5 years ago
cd /challenge/build
cmake \
  -DCMAKE_C_FLAGS=--coverage \
  -DCMAKE_EXE_LINKER_FLAGS=--coverage \
  -DCMAKE_SHARED_LINKER_FLAGS=--coverage \
  ..

Failure

root@8e65a4745622:/challenge/build# make -C challenges/Neural_House/
make: Entering directory `/challenge/build/challenges/Neural_House'
make[1]: Entering directory `/challenge/build'
make[2]: Entering directory `/challenge/build'
make[2]: Leaving directory `/challenge/build'
make[2]: Entering directory `/challenge/build'
Linking C shared library libtiny-AES128-C.so
/usr/bin/ld: cannot find /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/lib/linux/libclang_rt.profile-i386.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [include/tiny-AES128-C/libtiny-AES128-C.so] Error 1
make[2]: Leaving directory `/challenge/build'
make[1]: *** [include/tiny-AES128-C/CMakeFiles/tiny-AES128-C.dir/all] Error 2
make[1]: Leaving directory `/challenge/build'
make: *** [all] Error 2
make: Leaving directory `/challenge/build/challenges/Neural_House'

Related

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841923 https://askubuntu.com/questions/740289/which-package-do-i-need-to-use-clang-with-asan-for-32-bit