Skip to content

[Build] cannot create ALIAS target "nsync::nsync_cpp"  #22092

@zwillikon

Description

@zwillikon

Describe the issue

ONNXRuntime's CMake can't configure nsync_cpp, despite it exists at my system at /usr/lib/cmake/nsync_cpp/nsync_cppConfig.cmake

The ArchLinux package has this patch and git master too meant to fix exactly my issue.

Urgency

stalling me from working with ONNX

Target platform

Linux

Build script

  cmake -S cmake \
    -B build \
    -Wno-dev \
    -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -Donnxruntime_ENABLE_PYTHON=ON \
    -Donnxruntime_BUILD_SHARED_LIB=ON \
    -Donnxruntime_BUILD_UNIT_TESTS=OFF \
    -DBUILD_TESTING=OFF
  cmake --build build

Error / output

CMake Error at external/onnxruntime_external_deps.cmake:352 (add_library):
  add_library cannot create ALIAS target "nsync::nsync_cpp" because target
  "nsync_cpp" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:598 (include)

Visual Studio Version

No response

GCC / Compiler Version

14.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templatestaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions