http://bugs.winehq.org/show_bug.cgi?id=29822
Bug #: 29822 Summary: winebuild should use Clang to assemble if Clang is used to compile Product: Wine Version: 1.4-rc2 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: camillo.lugaresi+wine@gmail.com Classification: Unclassified
Trying to build Wine on Mac OS X 10.7 using Clang 3.0, winebuild generates several errors like "acledit.CPpFo1.s:83:Unknown pseudo-op: .cfi_startproc". The problem is that Clang supports CFI, but the version of GNU as shipped with OS X does not. When configure checks for CFI support, it uses Clang, and marks it as supported; this means that, later on, -fasynchronous-unwind-tables is passed to winegcc and then to winebuild, which generates the CFI lines and tries to assemble using /usr/bin/as, which rejects them.
The problem can be solved by using "clang -c" as an assembler instead of "as" when the C compiler in use is Clang and not GCC. I verified that this fix works using a quick and dirty patch to winebuild, but it needs to be properly conditionalized.
http://bugs.winehq.org/show_bug.cgi?id=29822
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=29822
--- Comment #1 from camillo.lugaresi+wine@gmail.com 2012-02-24 23:44:54 CST --- Though this bug and bug #26758 are different (that bug asks for allowing AS override, this bug asks for choosing the right assembler when Clang is used), that bug describes the same problem with winebuild mixing the Clang compiler with a different assembler on OS X. I think this means this can be moved from UNCONFIRMED to NEW.
http://bugs.winehq.org/show_bug.cgi?id=29822
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |adys.wh@gmail.com Ever Confirmed|0 |1
--- Comment #2 from Jerome Leclanche adys.wh@gmail.com 2012-02-26 13:27:41 CST --- Confirming
http://bugs.winehq.org/show_bug.cgi?id=29822
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=29822
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c14bdaf1ddb7d0e5587f63f1216 | |b61c9ecb7a8c3 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com 2013-01-30 15:45:40 CST --- http://source.winehq.org/git/wine.git/commitdiff/c14bdaf1ddb7d0e5587f63f1216...
http://bugs.winehq.org/show_bug.cgi?id=29822
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2013-02-01 04:54:54 CST --- Closing bugs fixed in 1.5.23.