http://bugs.winehq.org/show_bug.cgi?id=33905
Bug #: 33905 Summary: compile error with assembler support problem for ARM Product: Wine Version: 1.6-rc3 Platform: arm OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: peng.ni.2013@utt.fr Classification: Unclassified
Created attachment 45016 --> http://bugs.winehq.org/attachment.cgi?id=45016 All output of configure, make and as_version
Hello everyone,
The problem seens a little like the topic 21192. http://bugs.winehq.org/show_bug.cgi?id=21192 I get the error message when the make process begin to use gcc to compile the first dlls "acledit".
The error message is noted below: acledit.KnY9Og.s: Assembler messages: acledit.KnY9Og.s:75: Error: selected processor does not support ARM mode `blx __wine_spec_init_ctor' acledit.KnY9Og.s:274: Error: selected processor does not support ARM mode `blx r3' acledit.KnY9Og.s:292: Error: selected processor does not support ARM mode `blx r3' winebuild: gcc failed with status 1 winegcc: ../../tools/winebuild/winebuild failed make[1]: *** [acledit.dll.so] Error 2 make[1]: Leaving directory `/media/data/wine-1.6-rc3/dlls/acledit' make: *** [dlls/acledit] Error 2
The command to configure the makefile is: ./configure CFLAGS="-mcpu=arm926ej-s -g -O2"
The output of "as --version" is: GNU assembler (GNU Binutils for Debian) 2.22 Copyright 2011 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `arm-linux-gnueabi'.
All the output of configure and makefile are in the attachment. The problem is new for Wine 1.6 (I have only tried 1.6-rc3), i have compiled 1.4.x to 1.5.31 for this ARM card, and the ancient versions work well on the card. Another information: AcmeSystems FoxG20, Debian Wheezy, Kernel 2.6.38
Thank you for your attention and your advice or help in advance!
PS: Normally, the topic will be assigned to André, I think, so thanks for your great work for Wine on ARM, WineLib works well expect a little unstable. Bravo!
http://bugs.winehq.org/show_bug.cgi?id=33905
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #1 from André H. nerv@dawncrow.de 2013-06-29 09:35:41 CDT --- (In reply to comment #1)
Created attachment 45016 [details] All output of configure, make and as_version All the output of configure and makefile are in the attachment. The problem is new for Wine 1.6 (I have only tried 1.6-rc3), i have compiled 1.4.x to 1.5.31 for this ARM card, and the ancient versions work well on the card. Another information: AcmeSystems FoxG20, Debian Wheezy, Kernel 2.6.38
I had a quick look and there were no ARM related changes since 1.5.31 that could cause this. Did you update your toolchain? It also could be 98e6a0da73ef87dacdcf0bcf0ca58c0091799968 and winegcc not adding cflags... could you please run: make LDFLAGS="-v" in dlls/acledit and post the output?
PS: Normally, the topic will be assigned to André, I think, so thanks for your great work for Wine on ARM, WineLib works well expect a little unstable. Bravo!
Thx :)
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #2 from P. NI peng.ni.2013@utt.fr 2013-06-29 09:59:19 CDT --- Created attachment 45044 --> http://bugs.winehq.org/attachment.cgi?id=45044 Output LDFLAGS="-v" in ./dlls/acledit
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2013-06-29 10:00:53 CDT --- Created attachment 45045 --> http://bugs.winehq.org/attachment.cgi?id=45045 Add cpu option
It probably needs something like this.
http://bugs.winehq.org/show_bug.cgi?id=33905
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from André H. nerv@dawncrow.de 2013-06-29 10:50:45 CDT --- @P.NI: could you please test AJs patch? you would then need something like ./configure LDFLAGS="-mcpu=arm926ej-s" CFLAGS="-mcpu=arm926ej-s -g -O2" i guess
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #5 from P. NI peng.ni.2013@utt.fr 2013-06-30 07:40:07 CDT --- After cpu option patch and LDFLAGS+CFLAGS, I can pass the compilation of "./dlls/acledit". I am compiling the whole wine, it will take a lot of time, perhaps 1 day. I will repost a comment when I have finished to let us close this post. Thank you, André and Alexandre.
http://bugs.winehq.org/show_bug.cgi?id=33905
P. NI peng.ni.2013@utt.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from P. NI peng.ni.2013@utt.fr 2013-07-01 09:46:45 CDT --- Finished compilation and installed successfully. Thanks again for the help.
By the way, so it's better to custom the LDFLAGS with "-mcpu" when I compile wine in later versions, isn't it?
http://bugs.winehq.org/show_bug.cgi?id=33905
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED | Ever Confirmed|1 |0
--- Comment #7 from André H. nerv@dawncrow.de 2013-07-01 11:55:58 CDT --- (In reply to comment #6)
Finished compilation and installed successfully. Thanks again for the help.
thank you very much for testing, but not yet fixed, the patch needs to be in git first.
By the way, so it's better to custom the LDFLAGS with "-mcpu" when I compile wine in later versions, isn't it?
you can try without it and notice early :) I'd add it and would do a small test in e.g. acledit with make LDFLAGS="" to see if it's still needed. if you're extra nice you could send me the result of that check per e-mail or add it as comment here, still it can wait till rc5
http://bugs.winehq.org/show_bug.cgi?id=33905
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3dfe94cfbdcd4e8f6815d125d16 | |2bc008439ed3d Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2013-07-01 14:49:29 CDT --- Fixed by 3dfe94cfbdcd4e8f6815d125d162bc008439ed3d.
http://bugs.winehq.org/show_bug.cgi?id=33905
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |3987913453fc8c723068997f8af | |7c6a66f72f0c0
--- Comment #9 from André H. nerv@dawncrow.de 2013-07-01 15:01:11 CDT --- It also was a regression
http://bugs.winehq.org/show_bug.cgi?id=33905
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #10 from P. NI peng.ni.2013@utt.fr 2013-07-02 10:14:26 CDT --- Created attachment 45072 --> http://bugs.winehq.org/attachment.cgi?id=45072 Winemaker SceenLog and Makefile after custom LDFLAGS
Sorry, perhaps we must reopen this topic for a while, and not only for build-env.
Although we can pass the compilation and installation, winelib doesn't work as well as before. We lack of adding the "-mcpu" option when we auto-generate the Makefile by winemaker. I can pass the compilation(user-program which is compiled by winelib) by adding "-mcpu=armxxxx" in the varible "userprogram_name_exe_LDFLAGS". I think it's the same reason with the compilation of wine itself. The problem is only for wine 1.6.
http://bugs.winehq.org/show_bug.cgi?id=33905
--- Comment #11 from André H. nerv@dawncrow.de 2013-07-02 15:14:01 CDT --- (In reply to comment #10)
Created attachment 45072 [details] Winemaker SceenLog and Makefile after custom LDFLAGS
Sorry, perhaps we must reopen this topic for a while, and not only for build-env.
Although we can pass the compilation and installation, winelib doesn't work as well as before. We lack of adding the "-mcpu" option when we auto-generate the Makefile by winemaker. I can pass the compilation(user-program which is compiled by winelib) by adding "-mcpu=armxxxx" in the varible "userprogram_name_exe_LDFLAGS". I think it's the same reason with the compilation of wine itself. The problem is only for wine 1.6.
That falls into the category "custom changes" winemaker can't know which cpu to use it's the same as when adding LDFLAGS to configure
http://bugs.winehq.org/show_bug.cgi?id=33905
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2013-07-12 13:47:36 CDT --- Closing bugs fixed in 1.6-rc5.