-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang's LLD hangs most of the time #5231
Comments
Would you like to try using this patch mstorsjo/llvm@winpthreads-workaround on top of MSYS2 mingw-w64-clang package? |
@mati865 I tried it today, but I'm on a relatively old PC, so building clang takes around 5 hours. (And the build just got interrupted at 80% accidentally, and I'm yet to figure out how to gracefully continue it without resetting progress.) |
Makepkg has argument |
LLD (the clang's new linker) from package
mingw-w64-x86_64-lld
is pretty much unusable because it hangs on almost every run.Official LLD binary from http://releases.llvm.org/download.html works correctly.
The hang can be reproduced with following commands:
After this,
ld.lld.exe
(called byclang++
) hangs indefinitely.According to android/ndk#855 (also https://sourceforge.net/p/mingw-w64/bugs/774/) this seems to be caused by a bug in winpthreads that causes a deadlock...?
The text was updated successfully, but these errors were encountered: