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

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

Open
zwillikon opened this issue Sep 13, 2024 · 0 comments
Open

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

zwillikon opened this issue Sep 13, 2024 · 0 comments
Labels
build build issues; typically submitted using template

Comments

@zwillikon
Copy link

zwillikon commented Sep 13, 2024

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

@zwillikon zwillikon added the build build issues; typically submitted using template label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

1 participant