Skip to content
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

Closed
2 of 7 tasks
enetheru opened this issue Sep 7, 2024 · 8 comments
Closed
2 of 7 tasks

[llvm] missing lib/LLVMgold.dll #21869

enetheru opened this issue Sep 7, 2024 · 8 comments
Labels

Comments

@enetheru
Copy link

enetheru commented Sep 7, 2024

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

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

microsoft/azurelinux#8582

@enetheru enetheru added the bug label Sep 7, 2024
@Andarwinux
Copy link
Contributor

-fuse-ld=lld

@enetheru
Copy link
Author

enetheru commented Sep 8, 2024

-fuse-ld=lld

"Enable link time optimisation(-lto)"

@Andarwinux
Copy link
Contributor

lld doesn't need LLVMgold at all, if this problem occurs it means that bfd is actually used.

@enetheru
Copy link
Author

enetheru commented Sep 8, 2024

Thanks, I had a problem in the build system that went unnoticed. I appreciate your time.

@enetheru enetheru closed this as completed Sep 8, 2024
@CycloneRing
Copy link

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.

@enetheru
Copy link
Author

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.

@hwalinga
Copy link

@CycloneRing I have the same issuee. How did you manage to fix it?

@enetheru
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants