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

build in gnu #13

Open
lz520520 opened this issue Nov 21, 2024 · 3 comments
Open

build in gnu #13

lz520520 opened this issue Nov 21, 2024 · 3 comments

Comments

@lz520520
Copy link

I would like to ask, how to compile the plugin for gnu, I test msvc is no problem, but gnu under the compilation prompts
x86_64-w64-mingw32/bin/ld.exe: cannot find -lLLVM-C
x86_64-w64-mingw32/bin/ld.exe: cannot find -lopt

@jamesmth
Copy link
Owner

jamesmth commented Dec 1, 2024

The mingw toolchain is not supported at this time.
I see that you are using mingw32 under-the-hood. Have you tested with mingw64 instead?

@lz520520
Copy link
Author

lz520520 commented Dec 2, 2024

This is mingw64, just the name of the folder is misunderstood, see the tips should be mingw lacks LLVM-C.a and opt.a, but the downloaded mingw do not have these two libraries

@jamesmth
Copy link
Owner

jamesmth commented Dec 4, 2024

When compiling with msvc, llvm-plugin links with both LLVM-C.lib and opt.lib. Since you told me that it works, it means your local LLVM toolchain includes these files (you probably recompiled LLVM yourself?).

However, for mingw, if it expects to find LLVM-C.a and opt.a like you are telling me (instead of the .lib ones), then maybe you should recompile your local LLVM toolchain with mingw as well (to produce .a files)?

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

No branches or pull requests

2 participants