NVIDIA / NVIDIA/AMGX

CMAKE [Build] error

Open
#275 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build issues
Dominant language
Cuda
Stars
692
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Describe the issue

A clear and concise description of what the issue is.

cmake error

Environment information:

  • OS: [e.g. Windows 11 22h2]
  • Compiler version: [e.g. gcc 12.2.0]
  • CMake version: [e.g. 3.26]
  • CUDA used for AMGX compilation: [e.g. CUDA 12.3.0]
  • MPI version (if applicable): [e.g. MS-MPI v10.1.2]
  • AMGX version or commit hash [e.g. v2.4.0]
  • Any related environment variables information
    Visual Studio 2022
    Configuration information

Provide your cmake command line that was used for configuration and it's full output.


1> 工作目录: E:\code\project\AMGX\out\build\x64-Debug
1> [CMake] -- Could NOT find MPI_C (missing: MPI_C_WORKS)
1> [CMake] -- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
1> [CMake] -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
1> [CMake] -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
1> [CMake] -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
1> [CMake] -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
1> [CMake] This is a MPI build:FALSE
1> [CMake] -- Checking if arch 60 is supported...
1> [CMake] -- Checking if arch 70 is supported...
1> [CMake] -- Checking if arch 80 is supported...
1> [CMake] -- Checking if arch 90 is supported...
1> [CMake] -- Configuring done
1> [CMake] CMake Error at src/CMakeLists.txt:112 (target_link_libraries):
1> [CMake] Target "amgx_tests_launcher" links to:
1> [CMake]
1> [CMake] OpenMP::OpenMP_C
1> [CMake]
1> [CMake] but the target was not found. Possible reasons include:
1> [CMake]
1> [CMake] * There is a typo in the target name.
1> [CMake] * A find_package call is missing for an IMPORTED target.
1> [CMake] * An ALIAS target is missing.
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake] -- Generating done
1> [CMake] CMake Generate step failed. Build files cannot be regenerated correctly.

Compilation information

Provide your make command

Issue information

Provide any error messages from your CMake or compiler. It will also greatly help to attach output of make command rerun with VERBOSE=1 to see exact host compiler launch command that issues the error.

Additional context

Add any other context about the problem here.

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 src/CMakeLists.txt at line 112 and the reported Visual Studio 2022 CMake configuration output. Reproduce the configuration failure and inspect why OpenMP::OpenMP_C is unavailable after CMake reports that OpenMP_C was not found. Done means the project configures and generates build files successfully in the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.