develooper Front page | perl.perl5.porters | Postings from September 2006

perl.gcov

Thread Next
From:
Jim Cromie
Date:
September 25, 2006 14:10
Subject:
perl.gcov
Message ID:
451845DB.4080107@gmail.com

I just tried my 1st perl.gcov build, and am having problems
I tried both of these

 bleadperl]$ sh Configure -Dusethreads -Doptimize=-pg -Dusedevel 
-Accflags="-fprofile-arcs -ftest-coverage"
 bleadperl]$ sh Configure -Dusethreads -Dusedevel 
-Accflags="-fprofile-arcs -ftest-coverage"

and got this on 2nd (similar on 1st)

make perl.gcov
...
    `echo   gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o 
reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o 
pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o 
xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o 
pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
    miniperlmain.o opmini.o -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
gv.o(.text+0x8390): In function `global constructors keyed to 
0_Perl_gv_SVadd':
gv.c: undefined reference to `__gcov_init'
gv.o(.data+0x1c4): undefined reference to `__gcov_merge_add'
toke.o(.text+0x2a7a9): In function `Perl_yylex':
toke.c: undefined reference to `__gcov_execv'
toke.o(.text+0x2bee4): In function `global constructors keyed to 
0_Perl_deprecate':
toke.c: undefined reference to `__gcov_init'
toke.o(.data+0x264): undefined reference to `__gcov_merge_add'


is this a regression, or am I doing it wrong ?
I couldnt find any lib*gcov* ..

FWIW, make perl.gprof works.

tia
jimc

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About