-
-
Save remram44/d5e443af0296c83522ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remirampin@randy:/tmp/testkcov$ vagrant init remram/debian-8-amd64 | |
remirampin@randy:/tmp/testkcov$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
remirampin@randy:/tmp/testkcov$ vagrant ssh | |
vagrant@debian-8rc2-amd64:~$ sudo aptitude update && sudo aptitude install git libdw-dev libelf-dev cmake pkg-config libcurl4-gnutls-dev zlib1g-dev binutils-dev | |
vagrant@debian-8rc2-amd64:~$ git clone https://github.com/SimonKagstrom/kcov.git | |
Cloning into 'kcov'... | |
vagrant@debian-8rc2-amd64:~$ cd kcov/ | |
vagrant@debian-8rc2-amd64:~/kcov$ cmake . | |
-- The C compiler identification is GNU 4.9.2 | |
-- The CXX compiler identification is GNU 4.9.2 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") | |
-- Found LibElf: /usr/lib/x86_64-linux-gnu/libelf.so | |
-- Found ElfUtils: /usr/lib/x86_64-linux-gnu/libdw.so | |
-- Could NOT find LIBBFD (missing: LIBBFD_IBERTY_LIBRARY) | |
-- Target architectures: x86_64 | |
-- checking for module 'zlib' | |
-- found zlib, version 1.2.8 | |
-- checking for module 'libcurl' | |
-- found libcurl, version 7.38.0 | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /home/vagrant/kcov | |
vagrant@debian-8rc2-amd64:~/kcov$ make | |
Scanning dependencies of target bash_execve_redirector | |
[ 2%] Building C object src/CMakeFiles/bash_execve_redirector.dir/engines/bash-execve-redirector.c.o | |
Linking C shared library libbash_execve_redirector.so | |
[ 2%] Built target bash_execve_redirector | |
Scanning dependencies of target kcov_sowrapper | |
[ 5%] Building C object src/CMakeFiles/kcov_sowrapper.dir/solib-parser/phdr_data.c.o | |
[ 7%] Building C object src/CMakeFiles/kcov_sowrapper.dir/solib-parser/lib.c.o | |
Linking C shared library libkcov_sowrapper.so | |
[ 7%] Built target kcov_sowrapper | |
[ 10%] Generating html-data-files.cc | |
[ 13%] Generating library.cc | |
[ 15%] Generating bash-redirector-library.cc | |
[ 18%] Generating python-helper.cc | |
[ 21%] Generating bash-helper.cc | |
Scanning dependencies of target kcov | |
[ 23%] Building CXX object src/CMakeFiles/kcov.dir/capabilities.cc.o | |
[ 26%] Building CXX object src/CMakeFiles/kcov.dir/collector.cc.o | |
[ 28%] Building CXX object src/CMakeFiles/kcov.dir/configuration.cc.o | |
[ 31%] Building CXX object src/CMakeFiles/kcov.dir/engine-factory.cc.o | |
[ 34%] Building CXX object src/CMakeFiles/kcov.dir/engines/bash-engine.cc.o | |
[ 36%] Building CXX object src/CMakeFiles/kcov.dir/engines/gcov-engine.cc.o | |
[ 39%] Building CXX object src/CMakeFiles/kcov.dir/engines/python-engine.cc.o | |
[ 42%] Building CXX object src/CMakeFiles/kcov.dir/filter.cc.o | |
[ 44%] Building CXX object src/CMakeFiles/kcov.dir/gcov.cc.o | |
[ 47%] Building CXX object src/CMakeFiles/kcov.dir/main.cc.o | |
[ 50%] Building CXX object src/CMakeFiles/kcov.dir/merge-file-parser.cc.o | |
[ 52%] Building CXX object src/CMakeFiles/kcov.dir/output-handler.cc.o | |
[ 55%] Building CXX object src/CMakeFiles/kcov.dir/parsers/dummy-address-verifier.cc.o | |
[ 57%] Building CXX object src/CMakeFiles/kcov.dir/parser-manager.cc.o | |
[ 60%] Building CXX object src/CMakeFiles/kcov.dir/reporter.cc.o | |
[ 63%] Building CXX object src/CMakeFiles/kcov.dir/utils.cc.o | |
[ 65%] Building CXX object src/CMakeFiles/kcov.dir/writers/cobertura-writer.cc.o | |
[ 68%] Building CXX object src/CMakeFiles/kcov.dir/writers/coveralls-writer.cc.o | |
[ 71%] Building CXX object src/CMakeFiles/kcov.dir/writers/html-writer.cc.o | |
[ 73%] Building CXX object src/CMakeFiles/kcov.dir/writers/writer-base.cc.o | |
[ 76%] Building CXX object src/CMakeFiles/kcov.dir/engines/ptrace.cc.o | |
[ 78%] Building CXX object src/CMakeFiles/kcov.dir/engines/kernel-engine.cc.o | |
[ 81%] Building CXX object src/CMakeFiles/kcov.dir/parsers/elf-parser.cc.o | |
[ 84%] Building CXX object src/CMakeFiles/kcov.dir/solib-handler.cc.o | |
[ 86%] Building C object src/CMakeFiles/kcov.dir/solib-parser/phdr_data.c.o | |
[ 89%] Building CXX object src/CMakeFiles/kcov.dir/library.cc.o | |
[ 92%] Building CXX object src/CMakeFiles/kcov.dir/bash-redirector-library.cc.o | |
[ 94%] Building CXX object src/CMakeFiles/kcov.dir/python-helper.cc.o | |
[ 97%] Building CXX object src/CMakeFiles/kcov.dir/bash-helper.cc.o | |
[100%] Building CXX object src/CMakeFiles/kcov.dir/html-data-files.cc.o | |
Linking CXX executable kcov | |
[100%] Built target kcov | |
vagrant@debian-8rc2-amd64:~/kcov$ sudo make install | |
[ 2%] Built target bash_execve_redirector | |
[ 7%] Built target kcov_sowrapper | |
[100%] Built target kcov | |
Install the project... | |
-- Install configuration: "Release" | |
-- Installing: /usr/local/bin/kcov | |
-- Removed runtime path from "/usr/local/bin/kcov" | |
-- Installing: /usr/local/share/man/man1/kcov.1 | |
vagrant@debian-8rc2-amd64:~/kcov$ cd | |
vagrant@debian-8rc2-amd64:~$ cat > test.c | |
int main(void) | |
{ | |
return 0; | |
} | |
vagrant@debian-8rc2-amd64:~$ gcc -g test.c -o test | |
vagrant@debian-8rc2-amd64:~$ kcov test_kcov ./test | |
kcov: error: Cannot open linux-vdso.so.1 | |
vagrant@debian-8rc2-amd64:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment