-
Notifications
You must be signed in to change notification settings - Fork 6.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 toolchain - vcpkg integration - lld-linker error #4359
Comments
@Neumann-A lld-link has an option |
…oolset. (e.g. cmake -G "VS" -TLLVM fails to even find compiler due to linker issues) fixes microsoft#4359 but might have side effects for that toolset. (e.g. not automatically adding dependencies)
* make user wide integration not burn everything if LLVM is used as a toolset. (e.g. cmake -G "VS" -TLLVM fails to even find compiler due to linker issues) fixes #4359 but might have side effects for that toolset. (e.g. not automatically adding dependencies) * remove whitespaces * [vcpkg-integrate] Conform to MSBuild conventions for comparisons
* make user wide integration not burn everything if LLVM is used as a toolset. (e.g. cmake -G "VS" -TLLVM fails to even find compiler due to linker issues) fixes microsoft#4359 but might have side effects for that toolset. (e.g. not automatically adding dependencies) * remove whitespaces * [vcpkg-integrate] Conform to MSBuild conventions for comparisons
The LLVM Compiler Toolchain Plugin fixes the use of lld from the VS2017-IDE. |
@Neumann-A Sorry, I did not realize you were working on this. I guess that's not yet merged into master or what are the magic spells to end up with the vcpkg integration [as shown on your screenshot]? As to the wild-card issue, maybe it's an idea to report that on the clang dev list, as |
@Neumann-A I see. |
Why is this issue closed? It's mid 2021 and still I get the same message:
Environment: Even though this issue may have been solved already, it's not clear for me, what to do to resolve this error. |
old integration installed? Remove it and reinstall it. This issue was also mainly for the toolset called you may be able to adjust the check in
In the ClangCL toolset I have seen the boolean
|
Thank you for the quick response! It's a new integration because a recent upgrade of vcpkg deleted all my previously installed packages, so I've decided to make a clean start over. But just to be sure, now I've reinstalled the integration and the problem still remains. Indeed, I'm using the LLVM platform toolset installed by VS itself. Also thank you for the tip, I will look into if I could adjust that check! |
I'm getting this error on one of my AppVeyor builds too - google led me here. Unsure whether it is an issue with how I've set up the CI, or whether it's how they create the CI image. The project I'm building only contains a single .cpp file. Log here if its of any use: https://ci.appveyor.com/api/buildjobs/yh8sm1bnq63a8kcd/log Edit: Appears to be the same issue as #15623 |
How is this not solved yet? Having to disable auto link and manually link libs is not practical! |
I am also having this problem, identical to #4359 (comment) Is there a solution? |
@ras0219-msft Looks like the temporary fix done in #4573 is no longer working ?
VS 2019 (16.11.7) |
this still an issue until this day .. xD omg.. |
this error because you integrate vcpkg to Visual Studio , run command "vcpkg integrate remove" then everything is OK |
but thats a feature xD removing a feature its a not a fix. its a temp solution u have to import manually the include and libs if u dont integrate it.. |
So its a still an issue ... |
I too can't build my projects with Clang without disabling the autolink feature. Is supporting both at the same time planned? It would be great, because the autolink feature is really convenient on projects with many dependencies. I think this issue should be reopened. |
Just encountered it too. |
Issue is still present, this "fix" still works. |
Hi, I just as a note for others, I have using It's easily fixed though as specifying |
Using the lld-linker I get the following error:
1>lld-link.exe : error : could not open C:\Sources\Extern\vcpkg\installed\x64-windows-static\lib*.lib: invalid argument
apparently the lld-linker does not like to include libraries by wildcards.
The problem lies within:
\scripts\buildsystems\msbuild\vcpkg.targets
line 62 & 63
where
%(AdditionalDependencies);$(VcpkgRoot)debug\lib*.lib
%(AdditionalDependencies);$(VcpkgRoot)lib*.lib
is defined.
So it would be very nice if vcpkg would add and extra item for itself to the project configuration (like the llvm toolchain) so that I can easily change the values of$(VcpkgAutoLink), $ (VcpkgTriplet), $(VcpkgEnabled) and maybe even $ (VcpkgRoot).
The text was updated successfully, but these errors were encountered: