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

Add Additional LLVM install never returns #1330

Open
IrisPeter opened this issue Oct 30, 2023 · 6 comments
Open

Add Additional LLVM install never returns #1330

IrisPeter opened this issue Oct 30, 2023 · 6 comments
Assignees

Comments

@IrisPeter
Copy link

I'm finding that when I try and add a more up to date version of LLVM to Clang Powertools, that the LLVM settings page starts the install but never completes.

A Command Prompt box appears with The system was unable to find the specified registry key or value, then it goes away but then the red installing bar goes around and around, the black Download text has changed to Installing but it never completes.

@mariru27 mariru27 self-assigned this Oct 31, 2023
@mariru27
Copy link
Contributor

Hi @IrisPeter,

Thank you for reporting this issue
Have you consistently encountered this issue? Which LLVM version are you attempting to install?

Kind regards,
Marina

@IrisPeter
Copy link
Author

Hi @mariru27

I've run it three times, first in VS2022, then I tried running VS2022 under Admin - no difference, then I tried again in VS2019.

I've been trying to install LLVM 17.0.1. If you kill VS and go back in it says "Uninstall"

@mariru27
Copy link
Contributor

I cannot reproduce this issue, but I will continue investigate this problem

Right now you can use the last version of LLVM with no need to install it manually, because we already download it automatically for you.
To check if it works on your machine:

  • Build with Clang Power Tools (make sure to not have any LLVM versions set manually, Use LLVM need to be empty in LLVM tab from Settings)
  • Check in %appdata%\ClangPowerTools\LLVM_Lite\Bin. Is clang++.exe version 17.0.1? (If yes, it means that your build is made with last LLVM version)

Kind regards,
Marina

@IrisPeter
Copy link
Author

I'm not sure what you mean about step 1 - I assumed you just meant hit the Compile button on the Clang Power Tools toolbar, but I cannot have an empty "Use LLVM" box only the older 15.0.7 and the LLVM 17.0.1

I've checked %appdata%\ClangPowerTools\LLVM_Lite\Bin
result was:

clang version 15.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Users\someuser\AppData\Roaming\ClangPowerTools\LLVM_Lite\Bin

Changing power tools to Verbose shows my current path being extended with;C:\Users\someuser\AppData\Roaming\ClangPowerTools\LLVM\LLVM15.0.7\bin

@mariru27
Copy link
Contributor

Sorry @IrisPeter, I meant "compile"

I forget to tell you that on install after download, usually a User Account Control pops up. If you do not press "yes", the installing it never completes. Sometime it may not pop up, check in Taskbar after download

You need to uninstall LLVMs in order to be empty
image

@IrisPeter
Copy link
Author

Hi @mariru27

I've uninstalled all the two listed versions of LLVM 15.0.0, and 17.0.1, and now the %APPDATA%\ClangPowerTools\LLVM folder is empty, and the %APPDATA%\ClangPowerTools\LLVM_Lite folder contains one folder Bin, and that folder has a clang++.exe and a clang-tidy.exe, if I supply the --version switch to both I get, 15.0.0 and 14.0.3

However now if I hit Compile, the end of the lg from the Output window is:

�[33;1mDEBUG: Receiving results for clang job 1�[0m
'clang++.exe' is not recognized as an internal or external command,
operable program or batch file.

Got errors.

�[33;1mVERBOSE: Cleaning up PCH temporaries:�[0m
�[33;1mVERBOSE: �[0m

--- CLANG COMPILE FINISHED ---

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