Cytnx icon indicating copy to clipboard operation
Cytnx copied to clipboard

conda build question

Open pcchen opened this issue 3 months ago • 2 comments

When I try

conda build conda_build/

I got this error and fail.

  Running command Building wheel for cytnx (pyproject.toml)
  *** scikit-build-core 0.11.6 using CMake 4.1.1 (wheel)
  *** Configuring CMake...
  2025-09-14 10:42:20,302 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
  2025-09-14 10:42:20,302 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_INSTALL_PREFIX=/home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh
  2025-09-14 10:42:20,353 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
  2025-09-14 10:42:20,353 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_INSTALL_PREFIX=/home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh
  CMake Error: The current CMakeCache.txt directory /home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/work/build/CMakeCache.txt is different than the directory /home/pcchen/github/Cytnx-dev/Cytnx/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
  loading initial cache file build/CMakeInit.txt
  CMake Error: The source "/home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/work/CMakeLists.txt" does not match the source "/home/pcchen/github/Cytnx-dev/Cytnx/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

  *** CMake configuration failed
  error: subprocess-exited-with-error
  
  × Building wheel for cytnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/bin/python /home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmp6p1c0hap
  cwd: /home/pcchen/miniconda3/envs/cytnx39_cuda/conda-bld/cytnx_1757817576898/work
  Building wheel for cytnx (pyproject.toml): finished with status 'error'
  ERROR: Failed building wheel for cytnx
Failed to build cytnx
error: failed-wheel-build-for-install

pcchen avatar Sep 14 '25 02:09 pcchen

Are you building under the Cytnx source directory? If so, remove build under it.

yingjerkao avatar Sep 14 '25 03:09 yingjerkao

@yingjerkao OK. Let me try.

pcchen avatar Sep 14 '25 03:09 pcchen