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

Issues with VS 16.10 #4

Open
Neumann-A opened this issue Jun 4, 2021 · 4 comments
Open

Issues with VS 16.10 #4

Neumann-A opened this issue Jun 4, 2021 · 4 comments

Comments

@Neumann-A
Copy link

First:

"E:\Repos\AllProjects\build\LLVM_VS2019_x64_VSPROJ\Release\CMakeFiles\3.20.3\CompilerIdC\CompilerIdC.vcxproj" (Standardziel) (1) ->
(ClCompile Ziel) -> 
  clang-cl : error : no such file or directory: '/external:env:EXTERNAL_INCLUDE' [E:\Repos\AllProjects\build\LLVM_VS2019_x64_VSPROJ\Release\CMakeFiles\3.20.3\CompilerIdC\CompilerIdC.vcxproj]
  clang-cl : error : no such file or directory: '/external:W0' [E:\Repos\AllProjects\build\LLVM_VS2019_x64_VSPROJ\Release\CMakeFiles\3.20.3\CompilerIdC\CompilerIdC.vcxproj]

Second:
lld-link : error : could not open '/ILK:cmTC_099c7.dir\Debug\cmTC_099c7.ilk': invalid argument [E:\Repos\AllProjects\build\LLVM_VS2019_x64_VSPROJ\Debug\CMakeFiles\CMakeTmp\cmTC_099c7.vcxproj]

Third:
1>lld-link : error : could not open '/LTCGOUT:Release\Project6.iobj': invalid argument

Fix set:

    <_ClExternalIncludesSupported>false</_ClExternalIncludesSupported>
    <_LinkILKSupported>false</_LinkILKSupported>
    <_LinkLTCGOUTSupported>false</_LinkLTCGOUTSupported>

in LLVM.Cpp.Common.targets

@KomiMoe
Copy link

KomiMoe commented Jun 17, 2021

thanks for your help.

KomiMoe added a commit to KomiMoe/llvm2019 that referenced this issue Jun 17, 2021
KomiMoe added a commit to KomiMoe/llvm2019 that referenced this issue Jun 17, 2021
@mangh
Copy link
Owner

mangh commented Jul 4, 2021

  • Sorry to be answering so late and thank you very much for finding the solution! However I have decided to discontinue maintaining the extension in favour of Microsoft "C++ Clang tools for Windows" that can be installed with Visual Studio Installer and provides - more or less - the same functionality (which makes further development of the LLVM2019 extension rather pointless).
  • If you would like to use the Microsoft tool with an external Clang/LLVM release (other than the one installed with the tool) you have to point out that release by setting LLVMInstallDir and LLVMToolsVersion environment variables e.g.:
set LLVMInstallDir=C:\Program Files\LLVM
set LLVMToolsVersion=12.0.0
rem LLVMToolsVersion = name of last subfolder in the path C:\Program Files\LLVM\lib\clang\12.0.0
  • The last change that I published (yesterday) DISABLE installing LLVM2019.vsix on releases 16.10 and higher of VS2019 - these releases will refuse to install the extension.

@send010
Copy link

send010 commented Oct 9, 2021

I want to compile the project with Microsoft "C++ Clang tools for Windows". but I don't know what to do.

@mangh
Copy link
Owner

mangh commented Oct 9, 2021

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

4 participants