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

lld-link does not work with VS integration if vcpkg is installed. #38333

Open
llvmbot opened this issue Sep 18, 2018 · 4 comments
Open

lld-link does not work with VS integration if vcpkg is installed. #38333

llvmbot opened this issue Sep 18, 2018 · 4 comments
Labels
bugzilla Issues migrated from bugzilla lld:COFF

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 18, 2018

Bugzilla Link 38985
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @XVilka,@reupen,@merlynomsft,@Neumann-A,@RIscRIpt

Extended Description

If you install vcpkg from here: https://github.com/Microsoft/vcpkg

And run vcpkg integrate install from a command prompt, then the LLVM VS integration stops working with this error message:

C:\src\vcpkg\installed\x64...\lib*.lib: invalid argument error.

The error seems to be coming from this file:

c:\src\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets

%(AdditionalDependencies);$(VcpkgRoot)debug\lib*.lib

If you set the MSBuild project output verbosity to diagnostic level and get the lld-link.exe command line it's running and then paste that into a command prompt, it appears to work, so this appears to be an MSBuild issue. But perhaps there's a workaround we can submit in lld, or alternatively maybe we can fix MSBuild and/or vcpkg.

This was reported by user henrik@ on IRC.

@Neumann-A
Copy link

vcpkg closed issue:
microsoft/vcpkg#4359 (comment)

currently solved by disabling vcpkg autolinking
see
microsoft/vcpkg#4573

@XVilka
Copy link

XVilka commented Sep 13, 2019

Are there any updates on this issue?

@RIscRIpt
Copy link
Member

*** Bug llvm/llvm-bugzilla-archive#46930 has been marked as a duplicate of this bug. ***

@RIscRIpt
Copy link
Member

mentioned in issue llvm/llvm-bugzilla-archive#46930

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lld:COFF
Projects
None yet
Development

No branches or pull requests

4 participants