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

Re: perl.gcov

Thread Previous | Thread Next
Jim Cromie
September 25, 2006 16:54
Re: perl.gcov
Message ID:
S├ębastien Aperghis-Tramoni wrote:
> Jim Cromie wrote:
>> 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"
> It seems that -Aldflags="-fprofile-arcs -ftest-coverage" is also
> needed to build a gcov perl. At least, that's what we (Paul Johnson,
> Abe Timmerman and myself) use for building the Perl coverage.
> --
> S├ębastien Aperghis-Tramoni
> Close the world, txEn eht nepO.

thanks, that gets me further, resulting build works a little:

$ perl.gcov -Ilib -e 'print 1..10'

$ perl.gcov -Ilib -V:ld.*
lddlflags='-shared -L/usr/local/lib';
ldflags=' -fprofile-arcs -ftest-coverage -L/usr/local/lib';
ldflags_nolargefiles=' -fprofile-arcs -ftest-coverage -L/usr/local/lib';
[jimc@harpo bleadperl]$

[jimc@harpo bleadperl]$ perl.gcov -Ilib -e 'print 1..10'
[jimc@harpo bleadperl]$ gcov pad.c
pad.gcno:cannot open graph file

Worse,  it dies trying to use

[jimc@harpo bleadperl]$ ./perl.gcov -Ilib -MO=Concise -e 'print 1..10,"\n"'
Can't load 'lib/auto/B/' for module B: lib/auto/B/ undefined 
symbol: __gcov_merge_add at lib/ line 70.
 at lib/ line 303
Compilation failed in require at lib/ line 5.
BEGIN failed--compilation aborted at lib/ line 5.
Compilation failed in require.
BEGIN failed--compilation aborted.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About