You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2006/06/03 11:02:18 UTC
test coverage error
Hi,
Googling seems to suggest a patch to GCC is needed. I'm hoping not.
I'm going to try other (newer) gcc versions as I happen to have them handy.
Any thoughts on the below ?
FreeBSD 6.1-PRERELEASE
gcc -v
gcc version 3.4.4 [FreeBSD] 20050518
apr svn trunk
./buildconf
CFLAGS="-fprofile-arcs -ftest-coverage"
./configure
--prefix=/usr/local/software/3.4.4/apr/r411403 \
--enable-debug
--enable-maintainer-mode
--enable-profile
--enable-pool-debug=all
--enable-nonportable-atomics
--enable-threads
make
cd test
make
/usr/local/bin/bash /home/pgollucci/dev/repos/asf/apr/apr/trunk/libtool
--silent --mode=compile gcc -Wall -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -pg -fprofile-arcs
-ftest-coverage -DHAVE_CONFIG_H -DAPR_POOL_DEBUG=31 -I../include
-I./../include -o testlockperf.lo -c testlockperf.c && touch
testlockperf.lo
/usr/local/bin/bash /home/pgollucci/dev/repos/asf/apr/apr/trunk/libtool
--silent --mode=link gcc -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pg -fprofile-arcs -ftest-coverage
-DHAVE_CONFIG_H -DAPR_POOL_DEBUG=31 -I../include -I./../include
-no-install -o testlockperf testlockperf.lo ../libapr-1.la -lcrypt
-lpthread
/usr/bin/ld: testlockperf: hidden symbol `__gcov_flush' in
/usr/lib/libgcov.a(_gcov.o) is referenced by DSO
*** Error code 1
Stop in /usr/home/pgollucci/dev/repos/asf/apr/apr/trunk/test.
*** Error code 1
Stop in /usr/home/pgollucci/dev/repos/asf/apr/apr/trunk/test.
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
Re: test coverage error
Posted by Joe Orton <jo...@redhat.com>.
On Wed, Jun 07, 2006 at 02:37:13AM -0700, Philip M. Gollucci wrote:
> Joe Orton wrote:
> >On Sat, Jun 03, 2006 at 02:02:18AM -0700, Philip M. Gollucci wrote:
> >>Hi,
> >>
> >>Googling seems to suggest a patch to GCC is needed. I'm hoping not.
> >>I'm going to try other (newer) gcc versions as I happen to have them
> >>handy.
> >>
> >>Any thoughts on the below ?
> >
> >Does it work if you explicitly link -lgcov by passing LIBS=-lgcov to
> >configure too?
> CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
> LIBS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
>
> Second works. (Thanks Joe)
>
> Without out it, _all_ versions of gcc compiled from source also break.
> Even the 3.4.x branch after the fix was supposedly committed.
OK. It could be there is a more subtle problem like libtool not passing
through the -f flags when linking the .so, depending on your version of
libtool (some not so ancient versions would not pass through unknown
flags on the link line, IIRC).
joe
>
> I tried these:
> gcc version 2.95.3 20010315 (release)
> gcc version 3.3.6
> gcc version 3.2.3
> gcc version 3.4.4 20050518
> gcc version 3.4.6 (should work here, but doesn't)
> gcc version 4.0.4 20060525 (prerelease)
> gcc version 4.1.2 20060526 (prerelease)
> gcc version 4.2.0 20060527 (experimental)
>
>
>
> --
> ------------------------------------------------------------------------
> Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
> Consultant / http://p6m7g8.net/Resume/resume.shtml
> Senior Software Engineer - TicketMaster - http://ticketmaster.com
> 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
>
> "It takes a minute to have a crush on someone, an hour to like someone,
> and a day to love someone, but it takes a lifetime to forget someone..."
Re: test coverage error
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Joe Orton wrote:
> On Sat, Jun 03, 2006 at 02:02:18AM -0700, Philip M. Gollucci wrote:
>> Hi,
>>
>> Googling seems to suggest a patch to GCC is needed. I'm hoping not.
>> I'm going to try other (newer) gcc versions as I happen to have them handy.
>>
>> Any thoughts on the below ?
>
> Does it work if you explicitly link -lgcov by passing LIBS=-lgcov to
> configure too?
CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
LIBS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
Second works. (Thanks Joe)
Without out it, _all_ versions of gcc compiled from source also break.
Even the 3.4.x branch after the fix was supposedly committed.
I tried these:
gcc version 2.95.3 20010315 (release)
gcc version 3.3.6
gcc version 3.2.3
gcc version 3.4.4 20050518
gcc version 3.4.6 (should work here, but doesn't)
gcc version 4.0.4 20060525 (prerelease)
gcc version 4.1.2 20060526 (prerelease)
gcc version 4.2.0 20060527 (experimental)
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
Re: test coverage error
Posted by Joe Orton <jo...@redhat.com>.
On Sat, Jun 03, 2006 at 02:02:18AM -0700, Philip M. Gollucci wrote:
> Hi,
>
> Googling seems to suggest a patch to GCC is needed. I'm hoping not.
> I'm going to try other (newer) gcc versions as I happen to have them handy.
>
> Any thoughts on the below ?
Does it work if you explicitly link -lgcov by passing LIBS=-lgcov to
configure too?
joe