[Wine] Building wine with profile generation

Austin English austinenglish at gmail.com
Sat Feb 14 17:51:38 CST 2009


On Sat, Feb 14, 2009 at 3:32 AM, Ema <wineforum-user at winehq.org> wrote:
> Hi all,
>
> I'm trying to build wine with the following command:
>
> Code:
>
> ./configure CFLAGS="-O2 -fprofile-generate" --prefix=/home/ema/winepf
>
>
>
> As I have a lot of these errors:
>
> Code:
>
> gcc -O2 -fprofile-generate -o sfnt2fnt sfnt2fnt.o -L../libs/wine -lwine ../libs/port/libwine_port.a  -lfreetype -lz -Wl,--rpath,\$ORIGIN/../libs/wine
> /usr/bin/ld: sfnt2fnt: hidden symbol `__gcov_merge_add' in /usr/lib/gcc/i486-linux-gnu/4.3.2/libgcov.a(_gcov_merge_add.o) is referenced by DSO
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make[1]: *** [sfnt2fnt] Error 1
>

Looking at http://www.gp32x.com/board/index.php?showtopic=28490&st=15,
says make distclean may be needed, as well as an LDFLAG...

make distclean ; CFLAGS="-fprofile-generate"
LDFLAGS="-fprofile-generate" ./configure && make depend && make

works for me, past that point, then fails:
gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__
-D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
-Wpointer-arith  -fprofile-generate  -o main.o main.c
../../tools/winegcc/winegcc  -B../../tools/winebuild -shared
./acledit.spec    main.o       -o acledit.dll.so  -lkernel32
../../libs/port/libwine_port.a  -fprofile-generate
main.o: In function `DllMain':
main.c:(.text+0x40): undefined reference to `__gcov_indirect_call_profiler'
main.o: In function `FMExtensionProcW':
main.c:(.text+0x232): undefined reference to `__gcov_indirect_call_profiler'
main.o: In function `global constructors keyed to 65535_0_main.c':
main.c:(.text+0x346): undefined reference to `__gcov_init'
main.o:(.data.rel+0x24): undefined reference to `__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(dll_entry.o): In function
`__wine_spec_dll_entry':
dll_entry.c:(.text+0x40): undefined reference to `__gcov_indirect_call_profiler'
../../dlls/winecrt0/libwinecrt0.a(dll_entry.o): In function `global
constructors keyed to 65535_0_dll_entry.c':
dll_entry.c:(.text+0x24d): undefined reference to `__gcov_init'
../../dlls/winecrt0/libwinecrt0.a(dll_entry.o):(.data.rel+0x24):
undefined reference to `__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(init.o): In function `__wine_spec_init':
init.c:(.text+0x40): undefined reference to `__gcov_indirect_call_profiler'
../../dlls/winecrt0/libwinecrt0.a(init.o): In function `__wine_spec_init_ctor':
init.c:(.text+0x104): undefined reference to `__gcov_indirect_call_profiler'
../../dlls/winecrt0/libwinecrt0.a(init.o): In function `global
constructors keyed to 65535_0_init.c':
init.c:(.text+0x1c7): undefined reference to `__gcov_init'
../../dlls/winecrt0/libwinecrt0.a(init.o):(.data.rel+0x24): undefined
reference to `__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(stub.o): In function
`__wine_spec_unimplemented_stub':
stub.c:(.text+0x40): undefined reference to `__gcov_indirect_call_profiler'
../../dlls/winecrt0/libwinecrt0.a(stub.o): In function `global
constructors keyed to 65535_0_stub.c':
stub.c:(.text+0xec): undefined reference to `__gcov_init'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x24): undefined
reference to `__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x30): undefined
reference to `__gcov_merge_single'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x3c): undefined
reference to `__gcov_merge_single'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x48): undefined
reference to `__gcov_merge_add'
../../dlls/winecrt0/libwinecrt0.a(stub.o):(.data.rel+0x54): undefined
reference to `__gcov_merge_ior'
collect2: ld returned 1 exit status
winegcc: gcc failed
make[2]: *** [acledit.dll.so] Error 2
make[2]: Leaving directory `/home/austin/wine-git/dlls/acledit'
make[1]: *** [acledit] Error 2
make[1]: Leaving directory `/home/austin/wine-git/dlls'
make: *** [dlls] Error 2


-- 
-Austin



More information about the wine-users mailing list