http://bugs.winehq.org/show_bug.cgi?id=30862
Bug #: 30862 Summary: New prelink is required for debug builds Product: Wine Version: 1.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: wrar@wrar.name Classification: Unclassified
At least on current Debian unstable with gcc 4.7.0 and at least with the Debian 1.4 package (which includes -g in CFLAGS) kernel32.dll.so cannot be relocated with prelink older than the latest release (20111012):
prelink: kernel32.dll.so: Unknown DWARF DW_AT_8465 with block DW_FORM
You can see this message in our build logs at e.g. https://buildd.debian.org/status/fetch.php?pkg=wine&arch=i386&ver=1....
It may be not clear from the message but prelink actually exits without changing the binary so kernel32.dll.so is not relocated which causes all bugs that was fixed by adding the relocation.
Support for "DW_AT_8465" which is DW_AT_GNU_call_site_value was added to prelink in r188 on 2011-04-01 so at least in some cases if you build wine with debug, you are required to use prelink >= 20111012, otherwise you deserve the same configure warning that is issued when prelink is not installed. Unfortunately I don'see an easy way to check the prelink binary version as they all report "prelink 1.0" in -V.
When wine is built with gcc 4.6.3 prelink fails on DW_OP_242 (DW_OP_GNU_implicit_pointer) instead which was added in the upstream r187 on 2010-11-23 (so 20111012 is still required). When wine is built with gcc 4.5.3 prelink 20090925 doesn't fail. This may be the real cause of "Steam overlay requires gcc 4.5" reports such as #22053.
http://bugs.winehq.org/show_bug.cgi?id=30862
--- Comment #1 from Andrey Rahmatullin wrar@wrar.name 2012-06-07 05:29:40 CDT --- For the reference: this is tracked in Debian at http://bugs.debian.org/676246 for wine and at http://bugs.debian.org/676390 for prelink.
http://bugs.winehq.org/show_bug.cgi?id=30862
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com See Also| |http://bugs.debian.org/6762 | |46
http://bugs.winehq.org/show_bug.cgi?id=30862
--- Comment #2 from Andrey Rahmatullin wrar@wrar.name 2012-06-07 10:25:56 CDT --- For the reference: backporting upstream revisions 187 to 190 onto 20090925 is enough to properly relocate kernel32.dll.so and ntdll.dll.so compiled with current Debian unstable gcc 4.6 and 4.7.
https://bugs.winehq.org/show_bug.cgi?id=30862
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tcg.thegamer@gmail.com
--- Comment #3 from Anastasius Focht focht@gmx.net --- *** Bug 31300 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=30862
roger@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roger@mailinator.com
--- Comment #4 from roger@mailinator.com --- This bug is now closed as upstream?
I didnt fully read the info, just the latest messages.
https://bugs.winehq.org/show_bug.cgi?id=30862
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |UPSTREAM
--- Comment #5 from Rosanne DiMesio dimesio@earthlink.net --- Marking upstream.
https://bugs.winehq.org/show_bug.cgi?id=30862
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Both upstream bugs fixed, closing.