Getting ggcov working under OpenSUSE 10.3

Help
2008-03-10
2013-05-08
  • Mark MacVicar

    Mark MacVicar - 2008-03-10

    Hi,

    I've been trying to get ggcov 0.8 or tggcov to work under OpenSUSE 10.3 using gcc 4.2.1 with little success.

    test/test001 fails with the error "./runtest: FATAL: tggcov failed"

    I tried applying the patch, but that didn't help. I can't seem to determine the source of the problem since tggcov doesn't report any error messages. Does anyone have any advice?

    Thanks,

    Mark MacVicar

    entire output from test/test001/runtest:
    ----------------------------------------------------
    ==init
    /bin/rm -fr o.i386-unknown-linux-unknown
    mkdir o.i386-unknown-linux-unknown
    cd o.i386-unknown-linux-unknown
    ==compile_c foo.c
    gcc -Wall -g -fprofile-arcs -ftest-coverage -c /home/mark.macvicar/ggcov-0.8/test/test001/foo.c
    ==link foo foo.o
    gcc -g -fprofile-arcs -ftest-coverage -o foo foo.o
    ./foo 1
    1 -> 1
    ./foo 2
    2 -> 3
    ./foo 23 423
    23 -> 42
    423 -> 817
    ==run_gcov foo.c
    cd /home/mark.macvicar/ggcov-0.8/test/test001
    gcov -b -f -o o.i386-unknown-linux-unknown foo.c
    Function 'gnu_dev_major'
    Lines executed:0.00% of 2
    No branches
    No calls

    Function 'gnu_dev_minor'
    Lines executed:0.00% of 2
    No branches
    No calls

    Function 'gnu_dev_makedev'
    Lines executed:0.00% of 2
    No branches
    No calls

    Function 'function_two'
    Lines executed:100.00% of 2
    No branches
    Calls executed:100.00% of 1

    Function 'function_three'
    Lines executed:100.00% of 5
    No branches
    No calls

    Function 'function_one'
    Lines executed:100.00% of 5
    Branches executed:100.00% of 2
    Taken at least once:100.00% of 2
    Calls executed:100.00% of 2

    Function 'unused_function'
    Lines executed:0.00% of 4
    No branches
    No calls

    Function 'main'
    Lines executed:87.50% of 8
    Branches executed:100.00% of 4
    Taken at least once:75.00% of 4
    Calls executed:75.00% of 4

    File '/usr/include/sys/sysmacros.h'
    Lines executed:0.00% of 6
    No branches
    No calls
    /usr/include/sys/sysmacros.h:creating 'sysmacros.h.gcov'

    File '/home/mark.macvicar/ggcov-0.8/test/test001/foo.c'
    Lines executed:79.17% of 24
    Branches executed:100.00% of 6
    Taken at least once:83.33% of 6
    Calls executed:85.71% of 7
    /home/mark.macvicar/ggcov-0.8/test/test001/foo.c:creating 'foo.c.gcov'

    mv sysmacros.h.gcov o.i386-unknown-linux-unknown/sysmacros.h.gcov
    mv foo.c.gcov o.i386-unknown-linux-unknown/foo.c.gcov
    ==run_tggcov foo.c
    cd /home/mark.macvicar/ggcov-0.8/test/test001
    ../../src/tggcov -a -N -o o.i386-unknown-linux-unknown foo.c
    ./runtest: FATAL: tggcov failed

     
    • Mark MacVicar

      Mark MacVicar - 2008-03-10

      After checking out the latest repository from CVS, the problem appears to be the same.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks