<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I'm involved with maintenance of Clang and related LLVM packages for MSYS2.<br></div><div>It was based on Martell's patches (with his permission for MSYS2) from his git repository and MSYS2 own fixes so number of patches might be overwhelming: <a href="https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-clang">https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-clang</a><br></div><div>Maybe some of these patches could make it's way to the upstream.<br><br></div><div>Tools state at version 3.9.1 :<br></div><div>Clang:        mostly works (there are issues found)<br></div><div>LLMV:        mostly works (not tested well enough)<br></div><div>LLD:           creates broken executable<br></div><div>LLDB:         runs but not further tested since lldb-server is not build-able for mingw-w64<br></div><div>libc++:        need further testing<br>libc++abi:    need further testing<br></div><div>compiler-rt:  need further testing<br><br></div><div>Open clang issues (at MSYS2):<br><a href="https://github.com/Alexpux/MINGW-packages/issues/1677">https://github.com/Alexpux/MINGW-packages/issues/1677</a><br><a href="https://github.com/Alexpux/MINGW-packages/issues/1678">https://github.com/Alexpux/MINGW-packages/issues/1678</a> (not that much Clang issue but rather mingw-64 with GCC)<br><a href="https://github.com/Alexpux/MINGW-packages/issues/1834">https://github.com/Alexpux/MINGW-packages/issues/1834</a><br></div><div><br></div><div>Any help will be welcome.<br></div><div><br><br></div><div>make check seems to hang during LLVM tests but here is make check-clang:<br>Failing Tests (18):<br>    Clang :: Driver/mingw.cpp<br>    Clang :: Modules/dependency-dump.m<br>    Clang :: Modules/dependency-gen.modulemap<br>    Clang :: PCH/chain-categories.m<br>    Clang :: PCH/chain-categories2.m<br>    Clang :: PCH/chain-class-extension.m<br>    Clang :: PCH/chain-conversion-lookup.cpp<br>    Clang :: PCH/chain-cxx.cpp<br>    Clang :: PCH/chain-default-argument-instantiation.cpp<br>    Clang :: PCH/chain-empty-initial-namespace.cpp<br>    Clang :: PCH/chain-friend-instantiation.cpp<br>    Clang :: PCH/chain-implicit-definition.cpp<br>    Clang :: PCH/chain-late-anonymous-namespace.cpp<br>    Clang :: PCH/chain-openmp-threadprivate.cpp<br>    Clang :: PCH/chain-pending-instantiations.cpp<br>    Clang :: PCH/chain-staticvar-instantiation.cpp<br>    Clang :: PCH/cxx-chain-function-template.cpp<br>    Clang :: PCH/replaced-decl.m<br><br>  Expected Passes    : 9349<br>  Expected Failures  : 16<br>  Unsupported Tests  : 227<br>  Unexpected Failures: 18<br><br></div>Full output is available here: <a href="https://gist.github.com/mati865/b4a2c96f82b22ac41eca32714092db1d">https://gist.github.com/mati865/b4a2c96f82b22ac41eca32714092db1d</a><br><br></div>Cheers,<br></div>Mateusz Mikuła<br></div>