This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/51807] New: Fail to generate .gcno file when use libtool to compile la library


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]