mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] coverage info disappeared with new compiler


From: Nagaev Boris
Subject: Re: [Mingw-cross-env-list] coverage info disappeared with new compiler
Date: Mon, 6 Feb 2017 10:37:11 +0000

I created a bug to track progress:
https://github.com/mxe/mxe/issues/1665

On Mon, Feb 6, 2017 at 10:11 AM, Manner Róbert <address@hidden> wrote:
> Hi,
>
> thanks for the quick response! I will use that.
>
> Robert
>
>
> On Sun, Feb 5, 2017 at 6:42 PM, Nagaev Boris <address@hidden> wrote:
>>
>> On Sun, Feb 5, 2017 at 7:45 AM, Manner Róbert <address@hidden> wrote:
>> > Hi,
>> >
>> > after upgrading mxe, I noticed that my coverage information is missing
>> > for
>> > my test runs.
>> >
>> > I have even tried with a minimal app, I am running run
>> >
>> > x86_64-w64-mingw32.shared-g++ -o myprogram -coverage main.cpp
>> > or
>> > x86_64-w64-mingw32.shared-g++ -o myprogram -fprofile-arcs
>> > -ftest-coverage
>> > -lgcov main.cpp
>> >
>> > and run the program a .gcda file is supposed to appear which would
>> > contain
>> > the coverage about the execution. This is exactly what happens with
>> > 4.9.4,
>> > but with the new compiler, I have no gcda files.
>> >
>> > gcno files are correctly generated during the build, and I think lgcov
>> > is
>> > linked, because I am able to call
>> >
>> > __gcov_init()
>> > __gcov_flush()
>> > __gcov_dump()
>> >
>> > without linking issues, though, without any change.
>> >
>> > Do you have an idea what to check / or have you noticed some change in
>> > using
>> > gcov with this compiler?
>> >
>> > Thanks for any pointers in advance,
>> >
>> > Robert
>>
>> Hey,
>>
>> I can reproduce this issue on my machine.
>>
>> Until it is fixed for the new compiler, you can use gcc4 plugin to
>> switch back to gcc 4.9.4:
>>
>> echo 'override MXE_PLUGIN_DIRS += plugins/gcc4' >> settings.mk
>>
>> --
>> Best regards,
>> Boris Nagaev
>
>



-- 
Best regards,
Boris Nagaev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]