[Bug 18832] compiling with -fprofile-generate fails on sfnt2fnt due to hidden symbol

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jun 8 20:46:17 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18832





--- Comment #5 from Scott Ritchie <scott at open-vote.org>  2009-06-08 20:46:16 ---
If I profile selectively, I can get subsets of the Wine source to build with
-fprofile-generate.

Here's an issue I found from googling for gcov symbol errors:

http://stackoverflow.com/questions/566472/where-is-the-gcov-symbols

---
I just spent an incredible amount of time debugging a very similar error.
Here's what I learned:

    * You have to pass -fprofile-arcs -ftest-coverage when compiling.
    * You have to pass -fprofile-arcs when linking.
    * You can still get weird linker errors when linking. They'll look like
this: libname.a(objfile.o):(.ctors+0x0): undefined reference to `global
constructors keyed to long_name_of_file_and_function'

This means that gconv's having problem with one of your compiler-generated
constructors (in my case, a copy-constructor). Check the function mentioned in
the error message, see what kinds of objects it copy-constructs, and see if any
of those classes doesn't have a copy constructor. Add one, and the error will
go away.

Edit: Whether or not you optimize can also affect this. Try turing on /
switching off optimizations if you're having problems with it.
---

These are the same kinds of errors I'm getting
(/home/scott/src/wine-1.1.23-profiled/dlls/winecrt0/dll_entry.c:30: undefined
reference to `__gcov_indirect_call_profiler')

So perhaps the suggestion is relevant to winecrt0.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list