http://bugs.winehq.org/show_bug.cgi?id=28028
Summary: Build on OS X 10.7 requires CC=gcc-4.2 LDFLAGS='-Wl,-no_pie' Product: Wine Version: 1.3.22 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: per@morth.org
Apparently this is known at macports already, but couldn't find a bug here at winehq.org. When building on OS X 10.7 one have to pass CC=gcc-4.2 LDFLAGS='-Wl,-no_pie' to ./configure or wine will get a c0000005 exception during startup.
For the CC part, it's to prefer the full gcc over llvm-gcc which is now default. LDFLAGS='-Wl,-no_pie' is to turn off position independent code/address space randomization.
I guess both should be detected automatically.
http://bugs.winehq.org/show_bug.cgi?id=28028
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #1 from Austin English austinenglish@gmail.com 2011-08-08 17:19:45 CDT --- There was bug 27929, which was fixed by http://source.winehq.org/git/wine.git/commitdiff/0b5dcbafea44bf68ec72494cc9f.... Does LDFLAGS=macosx_version_min,10.6 enable -no_pie?
Wine works with clang, and should work with llvm-gcc.
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #2 from Per Johansson per@morth.org 2011-08-08 17:59:33 CDT --- I was testing with the current trunk (8c00ee0beff1a9a6be08f32d821186c798d15b9d), doing git clean -x etc. before thinking to check the macports Portfile.
Seems I was wrong about LDFLAGS. I was confused by a problem with my XQuartz server, and it works now that I've restarted it, sorry. But still have to set CC, or it's no go. For completeness, here's my gcc -v output (Xcode 4.1 which is the current version):
: [Falken ~/Unix/src/wine] 000; gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) : [Falken ~/Unix/src/wine] 000; clang -v Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.0.0 Thread model: posix : [Falken ~/Unix/src/wine] 000; gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #3 from Austin English austinenglish@gmail.com 2011-08-08 20:18:20 CDT --- Actually, llvm-gcc does fail, I filed bug 28030 for that (this was on linux).
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #4 from Per Johansson per@morth.org 2011-08-09 03:39:50 CDT --- Alright, I'd still like it to detect that it should not use the default compiler, though. Unless it's easy to fix at least. The macports Portfile has this comment: # llvm-gcc does not respect force_align_arg_pointer
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #5 from Austin English austinenglish@gmail.com 2011-08-09 14:19:02 CDT --- Created an attachment (id=35901) --> (http://bugs.winehq.org/attachment.cgi?id=35901) configure patch
Try this (run autoconf first).
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #6 from Per Johansson per@morth.org 2011-08-09 15:16:45 CDT --- (In reply to comment #5)
Created an attachment (id=35901)
--> (http://bugs.winehq.org/attachment.cgi?id=35901) [details]
configure patch
Try this (run autoconf first).
Thanks, but didn't work. It passes and ac_cv_have_force_align_arg_pointer=yes is in config.log Since llvm-gcc will be dropped in llvm 3.0 perhaps the easiest is just to ban it? Though perhaps without banning DragonEgg.
See http://lists.cs.uiuc.edu/pipermail/llvm-announce/2011-April/000037.html
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #7 from Austin English austinenglish@gmail.com 2011-08-09 15:24:01 CDT --- (In reply to comment #6)
(In reply to comment #5)
Created an attachment (id=35901)
--> (http://bugs.winehq.org/attachment.cgi?id=35901) [details] [details]
configure patch
Try this (run autoconf first).
Thanks, but didn't work. It passes and ac_cv_have_force_align_arg_pointer=yes is in config.log Since llvm-gcc will be dropped in llvm 3.0 perhaps the easiest is just to ban it? Though perhaps without banning DragonEgg.
See http://lists.cs.uiuc.edu/pipermail/llvm-announce/2011-April/000037.html
Then it's at least claiming support for that attribute. I don't think blindly disabling a compiler is going to fly, but if you can find a working configure test, that may work.
Dragonegg works, if you disable optimization, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637182.
http://bugs.winehq.org/show_bug.cgi?id=28028
Sorin Sbarnea sorin.sbarnea@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sorin.sbarnea@gmail.com
--- Comment #8 from Sorin Sbarnea sorin.sbarnea@gmail.com 2011-10-09 04:50:13 CDT --- Due to this bug it's currently impossible to install Wine with brew on OS X 10.7 with Xcode 4.2, both of them being GM.
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #9 from Per Johansson per@morth.org 2011-10-10 01:40:25 CDT --- (In reply to comment #8)
Due to this bug it's currently impossible to install Wine with brew on OS X 10.7 with Xcode 4.2, both of them being GM.
Surely brew has a way to override the compiler used? If not, that sounds like a bug in brew. This bug is now only about finding a way to automatically select another compiler, since the default one doesn't work.
http://bugs.winehq.org/show_bug.cgi?id=28028
damian.stewart@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damian.stewart@gmail.com
--- Comment #10 from damian.stewart@gmail.com 2011-11-26 09:14:26 CST --- (In reply to comment #9)
(In reply to comment #8)
Due to this bug it's currently impossible to install Wine with brew on OS X 10.7 with Xcode 4.2, both of them being GM.
Surely brew has a way to override the compiler used? If not, that sounds like a bug in brew. This bug is now only about finding a way to automatically select another compiler, since the default one doesn't work.
brew does indeed have an override. the issue is that OSX no longer ships Xcode with GCC-4.2, and it is a difficult and painful hack to install an earlier Xcode version. it's entirely Apple's fault, but it does make life somewhat difficult for OSX developers, as running multiple versions of Xcode side by side is not straightforward.
http://bugs.winehq.org/show_bug.cgi?id=28028
PommeGolden lapommegolden@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lapommegolden@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28028
Kirby Zhou kirbyzhou@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kirbyzhou@gmail.com
--- Comment #11 from Kirby Zhou kirbyzhou@gmail.com 2012-01-25 00:25:42 CST --- Yes, it is very very to install Xcode-4.1 right now, we can only get Xcode-4.2 without GCC-4.2 nowadays. It makes life hard to our OSX developers and users.
(In reply to comment #10)
(In reply to comment #9)
(In reply to comment #8)
Due to this bug it's currently impossible to install Wine with brew on OS X 10.7 with Xcode 4.2, both of them being GM.
Surely brew has a way to override the compiler used? If not, that sounds like a bug in brew. This bug is now only about finding a way to automatically select another compiler, since the default one doesn't work.
brew does indeed have an override. the issue is that OSX no longer ships Xcode with GCC-4.2, and it is a difficult and painful hack to install an earlier Xcode version. it's entirely Apple's fault, but it does make life somewhat difficult for OSX developers, as running multiple versions of Xcode side by side is not straightforward.
http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #12 from Per Johansson per@morth.org 2012-02-05 11:29:23 CST --- I don't believe you need Apple's gcc, the normal one should work just fine. You can probably build it with brew, just like macports builds a custom one (though it checks out Apple's source, I believe)
http://bugs.winehq.org/show_bug.cgi?id=28028
Christopher Harrington ironiridis@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ironiridis@gmail.com
--- Comment #13 from Christopher Harrington ironiridis@gmail.com 2012-02-16 18:53:22 CST --- Xcode 4.3 was released recently.
$ gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
(cross-posting to bug #28030)
http://bugs.winehq.org/show_bug.cgi?id=28028
Jeremiah Flerchinger flerchjj@ieee.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |flerchjj@ieee.org
http://bugs.winehq.org/show_bug.cgi?id=28028
Gilles Depeyrot gsd@dolphin.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gsd@dolphin.fr
https://bugs.winehq.org/show_bug.cgi?id=28028
roger@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roger@mailinator.com
--- Comment #14 from roger@mailinator.com --- Any update on this? in 2 years code changes rapidly.
https://bugs.winehq.org/show_bug.cgi?id=28028
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #15 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with vanilla wine-6.21?
https://bugs.winehq.org/show_bug.cgi?id=28028
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #16 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 9.8 or later?