Skip to content

Failed to build DDFacet sharedarray #56

@ifornax

Description

@ifornax

I am trying to install DDFacet in a conde environment Python 3.10 and I have the following errors:

Steps followed:

conda create -n ddfacet_310 python=3.10
conda activate ddfacet_310
pip install setuptools --upgrade
pip install DDFacet --force-reinstall -U

---errors follow:

Building wheels for collected packages: DDFacet, sharedarray
Building wheel for DDFacet (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for DDFacet (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
2025-04-11 17:33:17,449 - scikit_build_core - WARNING - cmake should not be in build-system.requires - scikit-build-core will inject it as needed
/tmp/pip-build-env-dyciw23e/overlay/lib/python3.10/site-packages/scikit_build_core/build/metadata.py:75: ConfigurationWarning: Extra keys present in "project": 'entrypoints'
metadata = StandardMetadata.from_pyproject(
*** scikit-build-core 0.11.1 using CMake 4.0.0 (wheel)
*** Configuring CMake...
loading initial cache file DDFacet/cbuild/CMakeInit.txt
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

      project(ProjectName)
  
    near the top of the file, but after cmake_minimum_required().
  
    CMake is pretending there is a "project(Project)" command on the first
    line.
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  CMake Warning (dev) in CMakeLists.txt:
    cmake_minimum_required() should be called prior to this top-level project()
    call.  Please see the cmake-commands(7) manual for usage documentation of
    both commands.
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  -- The C compiler identification is GNU 11.4.0
  -- The CXX compiler identification is GNU 11.4.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/gcc - 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: /usr/bin/g++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 has been removed from CMake.
  
    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.
  
    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
  
  
  -- Configuring incomplete, errors occurred!
  
  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for DDFacet
Building wheel for sharedarray (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for sharedarray (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:
  
          License :: OSI Approved :: GNU General Public License v2 (GPLv2)
  
          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************
  
  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  running build_ext
  building 'SharedArray' extension
  creating build/temp.linux-x86_64-cpython-310/src
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/map_owner.c -o build/temp.linux-x86_64-cpython-310/src/map_owner.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/map_owner_mlock.c -o build/temp.linux-x86_64-cpython-310/src/map_owner_mlock.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/map_owner_msync.c -o build/temp.linux-x86_64-cpython-310/src/map_owner_msync.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/map_owner_munlock.c -o build/temp.linux-x86_64-cpython-310/src/map_owner_munlock.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/shared_array.c -o build/temp.linux-x86_64-cpython-310/src/shared_array.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/shared_array_attach.c -o build/temp.linux-x86_64-cpython-310/src/shared_array_attach.o
  gcc -pthread -B /data3/nadeem/anaconda3/envs/ddfacet_310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -O2 -isystem /data3/nadeem/anaconda3/envs/ddfacet_310/include -fPIC -I/tmp/pip-build-env-5incon2j/overlay/lib/python3.10/site-packages/numpy/_core/include -I/data3/nadeem/anaconda3/envs/ddfacet_310/include/python3.10 -c ./src/shared_array_create.c -o build/temp.linux-x86_64-cpython-310/src/shared_array_create.o
  ./src/shared_array_create.c: In function ‘do_create’:
  ./src/shared_array_create.c:58:18: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
     58 |         if (dtype->elsize == 0) {
        |                  ^~
  ./src/shared_array_create.c:65:21: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
     65 |         size = dtype->elsize;
        |                     ^~
  ./src/shared_array_create.c:101:31: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
    101 |         meta->itemsize = dtype->elsize;
        |                               ^~
  ./src/shared_array_create.c:115:50: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
    115 |                             NULL, map_addr, dtype->elsize,
        |                                                  ^~
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for sharedarray
Failed to build DDFacet sharedarray
ERROR: Failed to build installable wheels for some pyproject.toml based projects (DDFacet, sharedarray)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions