public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library
@ 2012-01-10  3:28 beanflowersh at gmail dot com
  2012-01-10  7:10 ` [Bug gcov-profile/51807] " beanflowersh at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: beanflowersh at gmail dot com @ 2012-01-10  3:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51807

             Bug #: 51807
           Summary: Fail to generate .gcno file when use libtool to
                    compile la library
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: beanflowersh@gmail.com


1.The project need to use libtool to compile la files.
2.Add LIBS+=" -lgcov" in configure
3.configure CFLAGS="-g -Wall -Werror -Wno-unknown-pragmas -fprofile-arcs
-ftest-coverage" \
             CXXFLAGS="-g -Wall -Werror -Wno-unknown-pragmas -fprofile-arcs
-ftest-coverage" \
             --enable-unit-tests \
             --enable-libcurl \
             --disable-shared \
             --enable-developer-mode \

4.make
5.Check the la related cpp files ant gcov didn't generate .gcno file.

Is there any work around to resolve this issue? or if it needs to add
additional parameter.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gcov-profile/51807] Fail to generate .gcno file when use libtool to compile la library
  2012-01-10  3:28 [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library beanflowersh at gmail dot com
@ 2012-01-10  7:10 ` beanflowersh at gmail dot com
  2012-01-10  9:45 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: beanflowersh at gmail dot com @ 2012-01-10  7:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51807

--- Comment #1 from lei <beanflowersh at gmail dot com> 2012-01-10 07:10:13 UTC ---
(In reply to comment #0)
> 1.The project need to use libtool to compile la files.
> 2.Add LIBS+=" -lgcov" in configure
> 3.configure CFLAGS="-g -Wall -Werror -Wno-unknown-pragmas -fprofile-arcs
> -ftest-coverage" \
>              CXXFLAGS="-g -Wall -Werror -Wno-unknown-pragmas -fprofile-arcs
> -ftest-coverage" \
>              --enable-unit-tests \
>              --enable-libcurl \
>              --disable-shared \
>              --enable-developer-mode \
> 
> 4.make
> 5.Check the la related cpp files ant gcov didn't generate .gcno file.
> 
> Is there any work around to resolve this issue? or if it needs to add
> additional parameter.

E.g.:
The frame of my project as below:
Dir1: 1.cpp 2.cpp 3.cpp
After compiled(add -fprofile-arcs -ftest-coverage), the files in the Dir1 as
below:
1.cpp 1.o 1.gcno
2.cpp 2.o 2.lo
3.cpp 3.o 3.lo
.libc/***.a ***.la

But there isn't the gcno files to be generated for 2.cpp and 3.cpp and I cannot
get the code coverage data for 2.cpp and 3.cpp.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gcov-profile/51807] Fail to generate .gcno file when use libtool to compile la library
  2012-01-10  3:28 [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library beanflowersh at gmail dot com
  2012-01-10  7:10 ` [Bug gcov-profile/51807] " beanflowersh at gmail dot com
@ 2012-01-10  9:45 ` rguenth at gcc dot gnu.org
  2012-01-11  1:46 ` beanflowersh at gmail dot com
  2012-01-17 15:39 ` ubizjak at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10  9:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51807

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 09:44:49 UTC ---
This is not a bug in GCC but a bug in either libtool/automake or your
makefiles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gcov-profile/51807] Fail to generate .gcno file when use libtool to compile la library
  2012-01-10  3:28 [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library beanflowersh at gmail dot com
  2012-01-10  7:10 ` [Bug gcov-profile/51807] " beanflowersh at gmail dot com
  2012-01-10  9:45 ` rguenth at gcc dot gnu.org
@ 2012-01-11  1:46 ` beanflowersh at gmail dot com
  2012-01-17 15:39 ` ubizjak at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: beanflowersh at gmail dot com @ 2012-01-11  1:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51807

lei <beanflowersh at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
         Resolution|INVALID                     |FIXED

--- Comment #3 from lei <beanflowersh at gmail dot com> 2012-01-11 01:45:34 UTC ---
Thanks your advice, will check libtool.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gcov-profile/51807] Fail to generate .gcno file when use libtool to compile la library
  2012-01-10  3:28 [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library beanflowersh at gmail dot com
                   ` (2 preceding siblings ...)
  2012-01-11  1:46 ` beanflowersh at gmail dot com
@ 2012-01-17 15:39 ` ubizjak at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2012-01-17 15:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51807

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |RESOLVED

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2012-01-17 15:26:07 UTC ---
.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-17 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-10  3:28 [Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library beanflowersh at gmail dot com
2012-01-10  7:10 ` [Bug gcov-profile/51807] " beanflowersh at gmail dot com
2012-01-10  9:45 ` rguenth at gcc dot gnu.org
2012-01-11  1:46 ` beanflowersh at gmail dot com
2012-01-17 15:39 ` ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).