Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

CMake Build Native, NativeSparseSimulator, QIR failed #1068

Open
LAJIidea opened this issue Aug 2, 2022 · 3 comments
Open

CMake Build Native, NativeSparseSimulator, QIR failed #1068

LAJIidea opened this issue Aug 2, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@LAJIidea
Copy link

LAJIidea commented Aug 2, 2022

Describe the bug

When I run bootstrap.ps1 in Powershell to build the emulator, I get an error like this:
image-20220802093405246
Here are the errors in Build NativeSparseSimulator:
image-nativeerror
Finally, the QIR error:
image-err

To Reproduce

I installed vs2022 and checked the latest version of "MSVC v143-vs 2022 C++ x64/x86 spectre-mitigated libs".The Powershell I used was PowShell7-Preview downloaded from Github. But when I run bootstrap.ps1 in Powershell to build the emulator, I get errors.

System information

  • OS: [Windows]

  • .NET Core Version: [6.0]

  • Python Version (if applicable) [3.9]

  • Powshell [PowShell7-Preview]

  • VisulStudio [2022]

@LAJIidea LAJIidea added bug Something isn't working needs triage An initial review by a maintainer is needed labels Aug 2, 2022
@bettinaheim bettinaheim removed the needs triage An initial review by a maintainer is needed label Aug 12, 2022
@kuzminrobin
Copy link
Contributor

@LAJIidea, can you please double-check that you have the Spectre-mitigated libraries installed? (for more info, in this readme search for "spectre")

Compare mine output below against your pictures and see the fragment "spectre" in the paths below (make sure that on your machine you really have paths containing "lib/spectre/x64", see this line).

INFO*** install loc: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/atlmfc/lib/spectre/x64
INFO*** using spectre lib: debug;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libcmtd.lib;optimized;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libcmt.lib
INFO*** using spectre lib: debug;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libcpmtd.lib;optimized;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libcpmt.lib
INFO*** using spectre lib: debug;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libvcruntimed.lib;optimized;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/lib/spectre/x64/libvcruntime.lib

Otherwise you can do some more investigation/experiments in this fragment.
From your pictures I see that in this line the environment variable SPECTRE_LIB_PATH is empty (in your pictures see the fragment *** install loc:).
And later in this fragment the libraries (in your picture) are found in the paths not containing "spectre" (i.e. the non-spectre-mitigated libs are found).
In your experiments you can use the message command to see the values of different variables at different stages of the fragment(s) of interest.

@kuzminrobin
Copy link
Contributor

kuzminrobin commented Aug 22, 2022

Oh, @LAJIidea, the problem might already been fixed by this PR 6 days ago (in which case it means that locally you have newer spectre-mitigated libs than the scripts were expecting before the PR, see in the PR the change in line 44)

@kuzminrobin
Copy link
Contributor

If the problem is already fixed then feel free to close this GitHub issue and/or let us know in this discussion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants