Support GCOV for Wine 1.0?
Detlef Riekenberg
wine.dev at web.de
Sat Oct 13 17:52:26 CDT 2007
On Fr, 2007-10-12 at 09:47 -0700, Dan Kegel wrote:
> > It would be nice, when we can support gcov in current Wine
> > "out of the box".
> > That would help us a lot, when we write more tests for the
> > suggested Wine 1.0 Applications.
>
> That project had a doc patch accepted:
> http://www.winehq.org/pipermail/wine-patches/2005-April/017067.html
> This created
> http://www.winehq.org/site/docs/winedev-guide/x1374
> Does that suffice?
I was thinking about:
"./configure --enable-gcov" or "./configure --with-gcov"
With the suggested flags, wine does not compile:
gcc -c -I../../../src/dlls/activeds -I. -I../../../src/include
-I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe
-fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings
-Wpointer-arith -fprofile-arcs -ftest-coverage -o
activeds_main.o ../../../src/dlls/activeds/activeds_main.c
../../tools/winegcc/winegcc -B../../tools/winebuild
-shared ../../../src/dlls/activeds/activeds.spec activeds_main.o
-o activeds.dll.so -lkernel32 ../../libs/port/libwine_port.a
activeds_main.o: In function `global constructors keyed to
0_DllMain':activeds_main.c:(.text+0x6da): undefined reference to
`__gcov_init'
activeds_main.o:(.data.rel+0x24): undefined reference to
`__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(stub.o): In function `global
constructors keyed to 0___wine_spec_unimplemented_stub':stub.c:(.text
+0x81): undefined reference to `__gcov_init'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x24): undefined
reference to `__gcov_merge_add'
collect2: ld gab 1 als Ende-Status zurück
winegcc: gcc failed.
make[2]: *** [activeds.dll.so] Fehler 2
make[1]: *** [activeds] Fehler 2
make: *** [dlls] Fehler 2
--------
I tried also:
export CFLAGS="-fprofile-arcs -ftest-coverage"
./configure
that breaks wine already in tools/*
--
By by ... Detlef
More information about the wine-devel
mailing list