Summary: | app-emulation/wine-1.5.20 fails to compile with clang-3.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Julian Ospald <hasufell> |
Component: | New packages | Assignee: | Wine Maintainers <wine> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cmosqt, mgorny, ryao |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://wiki.winehq.org/Clang | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
wine-1.5.20:20121230-235127.log
Build log with clang-3.8 (compressed) |
Description
Julian Ospald
2012-12-30 23:55:06 UTC
(In reply to comment #0) so get it resolved upstream ? yeah, it's mostly for tracking open bugs in regards to systemwide-clang. Same problem here with latest wine version: 1.5.23 configure: error: You need gcc >= 4.4 to build Wine as 64-bit. Upstream's configure.ac says AC_MSG_ERROR([You need gcc >= 4.4 or clang >= 3.8 to build Wine as 64-bit.])]) Is someone able to test with supported clang, both 32 bit and 64 bit? I tested with ABI_X86="32 64" CC=clang CXX=clang++ With clang-3.8 (in tree but still masked), I had to disable the gcc bug check: * Checking for gcc-5-3 stack realignment compiler bug ... /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' x86_64-pc-linux-gnu-clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) * ERROR: app-emulation/wine-1.9.5::gentoo failed (pretend phase): * (no error message) Wine compilation itself went fine, and some test programs worked fine (with both wine and wine32 Created attachment 428170 [details]
Build log with clang-3.8 (compressed)
(In reply to Bernard Cafarelli from comment #5) > I tested with ABI_X86="32 64" CC=clang CXX=clang++ > > With clang-3.8 (in tree but still masked), I had to disable the gcc bug > check: > * Checking for gcc-5-3 stack realignment compiler bug ... > /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/crt1.o: In function > `_start': > (.text+0x20): undefined reference to `main' > x86_64-pc-linux-gnu-clang-3.8: error: linker command failed with exit code 1 > (use -v to see invocation) > * ERROR: app-emulation/wine-1.9.5::gentoo failed (pretend phase): > * (no error message) > > > Wine compilation itself went fine, and some test programs worked fine (with > both wine and wine32 Thanks for the update and for testing. That's great to hear. If you are also able to, can you try compiling with ABI_X86="32 -64" with clang-3.5? I spoke to some wine developers who told me that they were compiling on OSX with a "heavily patched clang-3.5" for 32 bit wine. Would be nice to know if we supported that lower bound for 32 bit. Also, regarding the gcc bug check, that was a bug on my part :P Sorry about that. With 32bit ABI, wine-1.9.5 compiled fine indeed with clang-3.5.0 (our current stable version). And notepad still worked :) Wine should fully support clang now, and all of the compiler checks have been modified to handle gcc vs clang properly. Should be resolved in b64196973d3c0b1094647c7b331ddc12af364539. |