http://bugs.winehq.org/show_bug.cgi?id=31790
Bug #: 31790 Summary: Compiling with -m32 fails in 64-bit ubuntu 12.04 Product: Wine Version: 1.5.13 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jesse.pepper@thinkbottomup.com.au Classification: Unclassified
Use a 64-bit Linux, and save following as main.c:
#include <windows.h> int main(int argc, char **argv) { MessageBoxA(0,"test","app",0); return 0; }
This problem occurs in wine1.4 and wine1.5.
$ winegcc main.c -m32 -o main.exe.so /usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (main.0Ipbo4.o) is not supported winebuild: /usr/bin/ld failed with status 1 winegcc: winebuild failed
Apparently due to distros placing 32-bit libs in /usr/lib/i386-linux-gnu/ instead of /usr/lib32/
See also http://bugs.winehq.org/show_bug.cgi?id=24470
http://bugs.winehq.org/show_bug.cgi?id=31790
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #1 from André H. nerv@dawncrow.de 2012-09-25 13:02:35 CDT --- confirming as i also read about that problem at lmms (Linux MultiMedia Studio)
http://bugs.winehq.org/show_bug.cgi?id=31790
--- Comment #2 from Cédric Schieli cschieli@gmail.com 2013-04-07 08:46:00 CDT --- Created attachment 44110 --> http://bugs.winehq.org/attachment.cgi?id=44110 Support new multilib naming scheme
This patch add support in winegcc for the new multilib naming scheme found in Ubuntu 12.04+ : /usr/lib/i386-linux-gnu and /usr/lib/x86_64-linux-gnu instead of /usr/lib32 and /usr/lib64 Support for the old naming scheme is not removed though.
With this patch applied on top of Wine 1.5.27 I'm able to build LMMS's VST plugin successfully.
http://bugs.winehq.org/show_bug.cgi?id=31790
--- Comment #3 from André H. nerv@dawncrow.de 2013-04-07 11:15:49 CDT --- I also wrote a patch which takes more things into account and just sent it: http://source.winehq.org/patches/data/95482
Could you please test if that patch works for you, too?
http://bugs.winehq.org/show_bug.cgi?id=31790
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31790
--- Comment #4 from André H. nerv@dawncrow.de 2013-04-13 12:35:43 CDT --- (In reply to comment #2)
Created attachment 44110 [details] Support new multilib naming scheme
This patch add support in winegcc for the new multilib naming scheme found in Ubuntu 12.04+ : /usr/lib/i386-linux-gnu and /usr/lib/x86_64-linux-gnu instead of /usr/lib32 and /usr/lib64 Support for the old naming scheme is not removed though.
With this patch applied on top of Wine 1.5.27 I'm able to build LMMS's VST plugin successfully.
I should mention that bugs are not picked up from bugzilla, only from wine-patches [1] mailing list. Also you should follow some guidelines (your patch isn't in git format) [2]. Further your patch only respects x86 and amd64.
[1] http://www.winehq.org/mailman/listinfo/wine-patches [2] http://wiki.winehq.org/SubmittingPatches
http://bugs.winehq.org/show_bug.cgi?id=31790
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2013-04-13 15:43:45 CDT --- (In reply to comment #4)
I should mention that bugs are not picked up from bugzilla, only from wine-patches [1] mailing list. Also you should follow some guidelines (your patch isn't in git format) [2]. Further your patch only respects x86 and amd64.
I guess you meant "I should mention that patches are not...".
http://bugs.winehq.org/show_bug.cgi?id=31790
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c11da76dc588cfdcb2328c92dce | |5188304935ae4 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from André H. nerv@dawncrow.de 2013-04-23 13:58:01 CDT --- should be fixed by http://source.winehq.org/git/wine.git/commitdiff/c11da76dc588cfdcb2328c92dce...
(In reply to comment #5)
I guess you meant "I should mention that patches are not...".
hey :) yes, thanks
http://bugs.winehq.org/show_bug.cgi?id=31790
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2013-04-26 13:14:49 CDT --- Closing bugs fixed in 1.5.29.
https://bugs.winehq.org/show_bug.cgi?id=31790
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |tools