-
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
[llvm] missing lib/LLVMgold.dll #21869
Comments
|
"Enable link time optimisation(-lto)" |
lld doesn't need LLVMgold at all, if this problem occurs it means that bfd is actually used. |
Thanks, I had a problem in the build system that went unnoticed. I appreciate your time. |
@enetheru Can you please share what was wrong, I have same issue. |
OK, so my memory is not great, last week was a year ago to me. But I remember vaguely that my toolchain was not setup properly, I was tracing commands from verbose output and found that it wasnt even doing what I told it to. I'm sorry I cant be more helpful. I've completely re-built my environments since then and dont remember the exact issue. |
@CycloneRing I have the same issuee. How did you manage to fix it? |
@CycloneRing @hwalinga In my case I didnt fix it. After reading a bunch more, and testing out other build chains, I just stopped trying to use llvm clang in msys2/ucrt64. I change to msys2/clang64 when I want to compile using the llvm tools. |
Description / Steps to reproduce the issue
Enable link time optimisation(-lto) when building programs with clang and lld in ucrt64 environment
compile
it appears other distributions have run into the same trouble in the past:
microsoft/azurelinux#6999
Expected behavior
program compiles successfully.
Actual behavior
... /lib/LLVMgold.dll : error loading plugin: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Verification
Windows Version
MSYS_NT-10.0-22631
MINGW environments affected
Are you willing to submit a PR?
microsoft/azurelinux#8582
The text was updated successfully, but these errors were encountered: