http://bugs.winehq.org/show_bug.cgi?id=18550
Summary: Wine doesn't build with binutils-gold Product: Wine Version: 1.1.21 Platform: Other OS/Version: other Status: NEW Keywords: download Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
gold is a new replacement for ld which is much faster (doesn't matter too much for wine, but it helps some apps a lot).
Installing gold as the system linker, e.g. by installing binutils-gold in Ubuntu Koala, and then building wine, fails with
/usr/bin/ld: -init: unknown option
Presumably this is gold's fault, but it'd be nice to have confirmation.
http://bugs.winehq.org/show_bug.cgi?id=18550
--- Comment #1 from Alexandre Julliard julliard@winehq.org 2009-05-21 03:34:44 --- If the -init option is not supported we won't be able to handle constructors properly, but it should still build. Please investigate why configure didn't detect that it doesn't work.
http://bugs.winehq.org/show_bug.cgi?id=18550
Robert Förster Dessa@gmake.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Dessa@gmake.de
--- Comment #2 from Robert Förster Dessa@gmake.de 2009-06-29 06:04:21 --- GNU gold (Linux/GNU Binutils 2.19.51.0.11.20090627) 1.9 actually compiles fine, but crashes on me (clean .wine, of course):
Wine-dbg>cont fixme:advapi:SetSecurityInfo stub fixme:win:EnumDisplayDevicesW ((null),0,0x3aed90,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3aebb8,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af2c0,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af3d4,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af56c,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af568,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af4f4,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af4e4,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3aefec,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x3af124,0x00000000), stub! Thread ID=0024 renamed using MS VC6 extension (name=="") Thread ID=0025 renamed using MS VC6 extension (name=="") First chance exception: page fault on read access to 0x65cb27ae in 32-bit code (0xf7f400df). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:f7f400df ESP:003ae7cc EBP:003ae800 EFLAGS:00010216( R- -- I -A-P- ) EAX:65cb27a2 EBX:f7f53fc4 ECX:003ae84c EDX:00000000 ESI:65cb27a2 EDI:003ae84c Stack dump: 0x003ae7cc: 00000000 00000000 003ae9d7 f7f53fc4 0x003ae7dc: f7f44b00 f7cbce3e 003ae880 003ae7a8 0x003ae7ec: f7f45489 003ae9d7 f7f53fc4 7d376928 0x003ae7fc: 00000000 003ae880 f7f4050a f7f45489 0x003ae80c: 003ae9d7 f7f53fc4 f7f44b00 00000000 0x003ae81c: 7bdf6b28 f7d923b8 f7cbbaa9 00889d73 Backtrace: =>0 0xf7f400df (0x003ae800) 1 0xf7f4050a (0x003ae880) 2 0xf7f40741 (0x003ae938) 3 0xf7f41d26 (0x003ae9e4) 4 0xf7f49a16 (0x003aea54) 5 0xf7f454a6 (0x003aeb34) 6 0xf7f492b1 (0x003aeba4) 7 0xf7c49c1b GLIBC_2+0xc1b() in libdl.so.2 (0x003aec04) 8 0xf7f454a6 (0x003aece4) 9 0xf7c4a0ac in libdl.so.2 (+0x10ac) (0x003aed24) 10 0xf7c49b51 GLIBC_2+0xb51() in libdl.so.2 (0x003aed54) 11 0xf7dfeb63 wine_get_es+0xaaf() in libwine.so.1 (0x003aed94) 12 0xf7dff6a4 in libwine.so.1 (+0x36a4) (0x003aedf4) 13 0x7ef7de52 in ntdll<elf> (+0x27e52) (0x003af074) 14 0x7ef811c0 in ntdll<elf> (+0x2b1c0) (0x003af194) 15 0x7ef81963 LdrLoadDll+0x47() in ntdll<elf> (0x003af1d4) 16 0x7edf1fd3 in kernel32<elf> (+0x3dfd3) (0x003af224) 17 0x7edf2127 LoadLibraryExW+0x44() in kernel32<elf> (0x003af264) 18 0x7edf2236 LoadLibraryExA+0x40() in kernel32<elf> (0x003af284) 19 0x7edf226e LoadLibraryA+0x2e() in kernel32<elf> (0x003af2a4) 20 0x008ab7db in wow (+0x4ab7db) (0x003af85c) 21 0x008ace45 in wow (+0x4ace45) (0x003af918) 22 0x008ad822 in wow (+0x4ad822) (0x003af94c) 23 0x00849f4e in wow (+0x449f4e) (0x003afa94) 24 0x0084163b in wow (+0x44163b) (0x003afaa8) 25 0x00468f80 in wow (+0x68f80) (0x003afd10) 26 0x007c3cf4 in wow (+0x3c3cf4) (0x003afd70) 27 0x00403a33 in wow (+0x3a33) (0x003afdc0) 28 0x00833cce in wow (+0x433cce) (0x003afe44) 29 0x00833f11 in wow (+0x433f11) (0x003afe5c) 30 0x00406c7d in wow (+0x6c7d) (0x003afef8) 31 0x7ee00c11 in kernel32<elf> (+0x4cc11) (0x003affe8) 32 0xf7e00601 wine_call_on_stack+0x1d() in libwine.so.1 (0x00000000)
the binutils maintainer of my distro (gentoo) would probably say "its gold that need to change, not the application" so, it would be nice if someone who has more knowledge of that bug thats happening here could report it upstream, since i have no idea
http://bugs.winehq.org/show_bug.cgi?id=18550
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source CC| |austinenglish@gmail.com
--- Comment #3 from Austin English austinenglish@gmail.com 2010-04-06 04:01:56 --- Compiles fine in wine-1.1.42-30-ga7d000e / GNU gold (GNU Binutils for Ubuntu 2.20) 1.9, but launching some apps fails: austin@midna:~/wine-git$ rm -rf ~/.wine ./austin@midna:~/wine-git$ ./wine notepad wine: created the configuration directory '/home/austin/.wine' wine: Unhandled page fault on read access to 0x08049244 at address 0xf771fb8a (thread 0010), starting debugger... err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf77123c7 err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf771798f err:seh:start_debugger Couldn't start debugger ("winedbg --auto 15 132") (1359) Read the Wine Developers Guide on how to set up winedbg or another debugger err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf77123c7 err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf771798f wine: configuration in '/home/austin/.wine' has been updated.
notepad runs, but running winetest gives the error that mountmgr.sys isn't running.
http://bugs.winehq.org/show_bug.cgi?id=18550
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=18550
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #4 from Austin English austinenglish@gmail.com 2011-05-08 12:01:40 CDT --- With a recent binutils-gold on debian testing, wine compiles fine and winetest runs. I see the same test failures as with plain ld. There are some extra warnings from gold, I filed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626023 for that.
Out of curiosity, I installed karmic in qemu and installed gold. Building there fails with: gcc -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o sfnt2fnt sfnt2fnt.o -L../libs/wine -lwine ../libs/port/libwine_port.a -lfreetype -lz -Wl,--rpath,$ORIGIN/../libs/wine /usr/bin/ld: error: ../libs/wine/libwine.so:1:1: invalid character /usr/bin/ld: sfnt2fnt.o: in function main:sfnt2fnt.c:387: error: undefined reference to 'wine_cp_get_table' /usr/bin/ld: sfnt2fnt.o: in function main:sfnt2fnt.c:393: error: undefined reference to 'wine_cp_get_table' collect2: ld returned 1 exit status make[1]: *** [sfnt2fnt] Error 1
though configure did not complain. In any case, not a Wine bug (though potentially configure should've caught the above error).
http://bugs.winehq.org/show_bug.cgi?id=18550
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com 2011-05-16 04:34:23 CDT --- Closing.