https://bugs.winehq.org/show_bug.cgi?id=47792
Bug ID: 47792 Summary: master wine doenst detect my clang on configure Product: Wine Version: 4.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: salva.liebana@gmail.com Distribution: ---
[pi@pi wine]$ ./configure checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for cpp... cpp checking for ld... ld checking whether gcc supports __builtin_ms_va_list... no configure: error: You need clang >= 5.0 to build Wine for arm64. [pi@pi wine]$ clang --version clang version 8.0.1 (tags/RELEASE_801/final) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin
https://bugs.winehq.org/show_bug.cgi?id=47792
Salvador salva.liebana@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86 |aarch64
https://bugs.winehq.org/show_bug.cgi?id=47792
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- Please attach your config.log.
https://bugs.winehq.org/show_bug.cgi?id=47792
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=47792
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #2 from André H. nerv@dawncrow.de --- you need to set CC=clang
https://bugs.winehq.org/show_bug.cgi?id=47792
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to André H. from comment #2)
you need to set CC=clang
Maybe we should have configure assume CC=clang for arm64.
https://bugs.winehq.org/show_bug.cgi?id=47792
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |focht@gmx.net Summary|master wine doenst detect |configure doesn't detect |my clang on configure |clang which is required for | |aarch64 Wine build (CC | |defaults to gcc) Component|-unknown |build-env
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
adding some information here...
The clang requirement comes from bug 38886 ("AArch64 platforms: ABI Problems wrt varargs (needs arm64 specific __builtin_ms_va_list)").
https://source.winehq.org/git/wine.git/commitdiff/8fb8cc03c3edb599dd98f369e1... ("arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64.")
GCC project tracking bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87334
---
clang is a hard requirement for aarch64 target unless gcc implements '__builtin_ms_va_list' in about 10 years (given the interest so far).
Options:
(1) Assume people building Wine on/for aarch64 are knowledgeable enough to pass proper compiler environment to 'configure'. This obviously didn't work here otherwise there would be no bug report.
(2) Improve the error message by providing a hint how pass clang as compiler.
(3) Have 'configure' override CC with clang on aarch64 by default.
$ wine --version wine-6.0
Regards
https://bugs.winehq.org/show_bug.cgi?id=47792
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #5 from Jacek Caban jacek@codeweavers.com --- Once we move all code that needs __builtin_ms_va_list to PE files (where we can just use default va_list), we will not need ms_abi attribute. I think that's the long term solution.
https://bugs.winehq.org/show_bug.cgi?id=47792
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- What's the state on this? Seems to compile fine with gcc and llvm-mingw as soon as I had the latter installed. No change for CC needed.
https://bugs.winehq.org/show_bug.cgi?id=47792
--- Comment #7 from Austin English austinenglish@gmail.com --- (In reply to Fabian Maurer from comment #6)
What's the state on this? Seems to compile fine with gcc and llvm-mingw as soon as I had the latter installed. No change for CC needed.
That's because you have llvm-mingw in your path, retry with just gcc and no clang/mingw.
https://bugs.winehq.org/show_bug.cgi?id=47792
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch