microsoft / microsoft/SPTAG

could not find MPI_C MPI_CXX MPI ... during cmake -A x64 ..

Open
#320 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
5k
Forks
622
Avg merge
8h 37m
Merged PRs (30d)
5

Description

Describe the bug
followed the steps in here https://github.com/microsoft/SPTAG/blob/main/docs/WindowsInstallation.md but still got an error
cmake version 3.24.0-rc1
boost == 1.67.0
SWIG Version 4.0.2

To Reproduce
Steps to reproduce the behavior:
mkdir build
cd build
cmake -A x64 ..

Error log
D:\DevRepo\SPTAG\build>cmake -A x64 ..
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.32.31332.0
-- The CXX compiler identification is MSVC 19.32.31332.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /std:c++14
-- Build type: Release
-- Platform type: x64
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Found openmp.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Found Threads: TRUE
-- Found Boost: D:/software/Boost1_67/boost_1_67_0 (found suitable version "1.67.0", minimum required is "1.66") found components: system thread serialization wserialization regex filesystem chrono date_time atomic
-- Found Boost.
-- Include Path: D:/software/Boost1_67/boost_1_67_0
-- Library Path: D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1
-- Library: optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_system-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_system-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_thread-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_thread-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_serialization-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_serialization-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_wserialization-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_wserialization-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_regex-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_regex-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_filesystem-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_filesystem-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_chrono-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_chrono-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_date_time-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_date_time-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_atomic-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_atomic-vc141-mt-gd-x64-1_67.lib
CMake Error at CMakeLists.txt:96 (add_subdirectory):
add_subdirectory given source "ThirdParty/zstd/build/cmake" which is not an
existing directory.

-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Found Boost: D:/software/Boost1_67/boost_1_67_0 (found suitable version "1.67.0", minimum required is "1.66") found components: system thread serialization wserialization regex filesystem unit_test_framework chrono date_time atomic
-- Found Boost.
-- Include Path: D:/software/Boost1_67/boost_1_67_0
-- Library Path: D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1
-- Library: optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_system-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_system-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_thread-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_thread-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_serialization-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_serialization-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_wserialization-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_wserialization-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_regex-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_regex-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_filesystem-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_filesystem-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_unit_test_framework-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_unit_test_framework-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_chrono-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_chrono-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_date_time-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_date_time-vc141-mt-gd-x64-1_67.lib;optimized;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_atomic-vc141-mt-x64-1_67.lib;debug;D:/software/Boost1_67/boost_1_67_0/lib64-msvc-14.1/libboost_atomic-vc141-mt-gd-x64-1_67.lib
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Could not find cuda.
-- Could NOT find Python2 (missing: Python2_LIBRARIES Python2_INCLUDE_DIRS Development Development.Module Development.Embed)
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Could not find cuda.
-- Found Python3: C:/Users/jinweizhang/AppData/Local/Programs/Python/Python310/libs/python310.lib (found version "3.10.4") found components: Development Development.Module Development.Embed
-- Found Python.
-- Include Path: C:/Users/jinweizhang/AppData/Local/Programs/Python/Python310/include
-- Library Path: C:/Users/jinweizhang/AppData/Local/Programs/Python/Python310/libs/python310.lib
-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT JVM)
-- Could not find JNI.
-- Found dotnet.
-- DOTNET_EXECUTABLE: C:\windows\Microsoft.NET\Framework64/v4.0.30319/csc.exe
D:\DevRepo\SPTAG\Wrappers\inc....\AnnService\inc\Core\SearchResult.h(21) : Warning 503: Can't wrap 'operator <' unless renamed to a valid identifier.
D:\DevRepo\SPTAG\Wrappers\inc....\AnnService\inc\Core\SearchResult.h(26) : Warning 503: Can't wrap 'operator >' unless renamed to a valid identifier.
D:\DevRepo\SPTAG\Wrappers\inc....\AnnService\inc\Core\SearchResult.h(42) : Warning 503: Can't wrap 'operator ()' unless renamed to a valid identifier.
D:\DevRepo\SPTAG\Wrappers\inc....\AnnService\inc\Core\SearchResult.h(47) : Warning 503: Can't wrap 'operator ()' unless renamed to a valid identifier.
D:\DevRepo\SPTAG\Wrappers\inc....\AnnService\inc\Core\SearchResult.h(62) : Warning 503: Can't wrap 'operator ()' unless renamed to a valid identifier.
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/AnnClient.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/AnnIndex.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/BasicResult.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/CSHARPSPTAG.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/CSHARPSPTAGClient.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/CSHARPSPTAGClientPINVOKE.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/CSHARPSPTAGPINVOKE.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/Edge.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/EdgeCompare.cs
-- Add copy post-command for file D:/DevRepo/SPTAG/Wrappers/inc/NodeDistPair.cs
-- Configuring incomplete, errors occurred!
See also "D:/DevRepo/SPTAG/build/CMakeFiles/CMakeOutput.log".
See also "D:/DevRepo/SPTAG/build/CMakeFiles/CMakeError.log".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with WindowsInstallation.md and CMakeLists.txt around line 96, then reproduce with cmake -A x64 .. from a clean build directory. Inspect the missing ThirdParty/zstd/build/cmake path and the MPI detection output; done means the documented Windows configuration completes without the reported configuration errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.