ibarrond / Pyfhel

PYthon For Homomorphic Encryption Libraries, perform encrypted computations such as sum, mult, scalar product or matrix multiplication in Python, with NumPy compatibility. Uses SEAL/PALISADE as backends, implemented using Cython.
https://pyfhel.readthedocs.io/
Apache License 2.0
475 stars 78 forks source link

An error install Pyfhel #238

Closed lilvmy closed 2 months ago

lilvmy commented 3 months ago

I have installed a new version Pyfhel, but when I want to install older version Pyfhel, there is a error message as follows. ERROR: Could not build wheels for Pyfhel, which is required to install pyproject.toml-based projects So how do I address this issue

ibarrond commented 3 months ago

Please fill the entire bug template.

On Fri, Jun 7, 2024, 12:03 lilvmy @.***> wrote:

I have installed a new version Pyfhel, but when I want to install older version Pyfhel, there is a error message as follows. ERROR: Could not build wheels for Pyfhel, which is required to install pyproject.toml-based projects So how do I address this issue

— Reply to this email directly, view it on GitHub https://github.com/ibarrond/Pyfhel/issues/238, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z57LNMSIT2BSPPTRRVLZGGAQJAVCNFSM6AAAAABI6LOW6KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DAMBWGY3DINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lilvmy commented 3 months ago

Collecting Pyfhel==2.3.1 Using cached Pyfhel-2.3.1.tar.gz (716 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting cython>=0.29.2 (from Pyfhel==2.3.1) Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB) Requirement already satisfied: numpy>=1.16.0 in ./anaconda3/envs/cryptdnn/lib/python3.8/site-packages (from Pyfhel==2.3.1) (1.24.4) Requirement already satisfied: setuptools>=45.0.0 in ./anaconda3/envs/cryptdnn/lib/python3.8/site-packages (from Pyfhel==2.3.1) (70.0.0) Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB) Building wheels for collected packages: Pyfhel Building wheel for Pyfhel (pyproject.toml) ... error error: subprocess-exited-with-error

脳 Building wheel for Pyfhel (pyproject.toml) did not run successfully. 鈹� exit code: 1 鈺扳攢> [46 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/Pyfhel copying Pyfhel/init.py -> build/lib.linux-x86_64-cpython-38/Pyfhel copying Pyfhel/test.py -> build/lib.linux-x86_64-cpython-38/Pyfhel creating build/lib.linux-x86_64-cpython-38/Pyfhel/util copying Pyfhel/util/init.py -> build/lib.linux-x86_64-cpython-38/Pyfhel/util copying Pyfhel/util/ENCODING_t.py -> build/lib.linux-x86_64-cpython-38/Pyfhel/util running build_clib building 'Afhel' library creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/Pyfhel creating build/temp.linux-x86_64-cpython-38/Pyfhel/Afhel creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL/SEAL creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL/SEAL/seal gcc -pthread -B /home/cysren/anaconda3/envs/cryptdnn/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/home/cysren/anaconda3/envs/cryptdnn/include/python3.8 -IPyfhel -IPyfhel/Afhel -IPyfhel/SEAL/SEAL/seal -c Pyfhel/Afhel/Afseal.cpp -o build/temp.linux-x86_64-cpython-38/Pyfhel/Afhel/Afseal.o -DHAVE_CONFIG_H -std=c++17 -O3 cc1plus: warning: command-line option 鈥�-Wstrict-prototypes鈥� is valid for C/ObjC but not for C++ In file included from Pyfhel/Afhel/../SEAL/SEAL/seal/mempool.h:12, from Pyfhel/Afhel/../SEAL/SEAL/seal/memorypoolhandle.h:6, from Pyfhel/Afhel/../SEAL/SEAL/seal/biguint.h:6, from Pyfhel/Afhel/../SEAL/SEAL/seal/bigpoly.h:9, from Pyfhel/Afhel/../SEAL/SEAL/seal/seal.h:3, from Pyfhel/Afhel/Afseal.h:41, from Pyfhel/Afhel/Afseal.cpp:37: Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:14:33: error: 鈥榰nique_lock鈥� in namespace 鈥榮td鈥� does not name a template type 14 | using WriterLock = std::unique_lock; | ^~~ Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:7:1: note: 鈥榮td::unique_lock鈥� is defined in header 鈥�鈥�; did you forget to 鈥�#include 鈥�? 6 | #include +++ |+#include 7 | Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:26:20: error: 鈥榃riterLock鈥� does not name a type 26 | inline WriterLock acquire_write() | ^~~~~~ Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:36:20: error: 鈥榃riterLock鈥� does not name a type 36 | inline WriterLock try_acquire_write() | ^~~~~~ Pyfhel/Afhel/Afseal.cpp: In member function 鈥榲oid Afseal::encode(std::vector&, seal::Plaintext&)鈥�: Pyfhel/Afhel/Afseal.cpp:269:21: warning: comparison of integer expressions of different signedness: 鈥榮td::vector::size_type鈥� {aka 鈥榣ong unsigned int鈥檥 and 鈥榠nt鈥� [-Wsign-compare] 269 | if(values.size()>this->crtBuilder->slot_count()){ | ~~~^~~~~~~~~ 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 Pyfhel Failed to build Pyfhel

(cryptdnn) cysren@cysren-Precision-3660:~$ ERROR: Could not build wheels for Pyfhel, which is required to install pyproject.toml-based projects

ibarrond commented 3 months ago

Oh, I'm afraid Pyfhel V2 is no longer supported. Nonetheless, I recommend installing it outside of anaconda using pip.

On Fri, Jun 7, 2024, 14:45 lilvmy @.***> wrote:

Collecting Pyfhel==2.3.1 Using cached Pyfhel-2.3.1.tar.gz (716 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting cython>=0.29.2 (from Pyfhel==2.3.1) Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB) Requirement already satisfied: numpy>=1.16.0 in ./anaconda3/envs/cryptdnn/lib/python3.8/site-packages (from Pyfhel==2.3.1) (1.24.4) Requirement already satisfied: setuptools>=45.0.0 in ./anaconda3/envs/cryptdnn/lib/python3.8/site-packages (from Pyfhel==2.3.1) (70.0.0) Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB) Building wheels for collected packages: Pyfhel Building wheel for Pyfhel (pyproject.toml) ... error error: subprocess-exited-with-error

脳 Building wheel for Pyfhel (pyproject.toml) did not run successfully. 鈹� exit code: 1 鈺扳攢> [46 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/Pyfhel copying Pyfhel/init.py -> build/lib.linux-x86_64-cpython-38/Pyfhel copying Pyfhel/test.py -> build/lib.linux-x86_64-cpython-38/Pyfhel creating build/lib.linux-x86_64-cpython-38/Pyfhel/util copying Pyfhel/util/init.py -> build/lib.linux-x86_64-cpython-38/Pyfhel/util copying Pyfhel/util/ENCODING_t.py -> build/lib.linux-x86_64-cpython-38/Pyfhel/util running build_clib building 'Afhel' library creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/Pyfhel creating build/temp.linux-x86_64-cpython-38/Pyfhel/Afhel creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL/SEAL creating build/temp.linux-x86_64-cpython-38/Pyfhel/SEAL/SEAL/seal gcc -pthread -B /home/cysren/anaconda3/envs/cryptdnn/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/home/cysren/anaconda3/envs/cryptdnn/include/python3.8 -IPyfhel -IPyfhel/Afhel -IPyfhel/SEAL/SEAL/seal -c Pyfhel/Afhel/Afseal.cpp -o build/temp.linux-x86_64-cpython-38/Pyfhel/Afhel/Afseal.o -DHAVE_CONFIG_H -std=c++17 -O3 cc1plus: warning: command-line option 鈥�-Wstrict-prototypes鈥� is valid for C/ObjC but not for C++ In file included from Pyfhel/Afhel/../SEAL/SEAL/seal/mempool.h:12, from Pyfhel/Afhel/../SEAL/SEAL/seal/memorypoolhandle.h:6, from Pyfhel/Afhel/../SEAL/SEAL/seal/biguint.h:6, from Pyfhel/Afhel/../SEAL/SEAL/seal/bigpoly.h:9, from Pyfhel/Afhel/../SEAL/SEAL/seal/seal.h:3, from Pyfhel/Afhel/Afseal.h:41, from Pyfhel/Afhel/Afseal.cpp:37: Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:14:33: error: 鈥榰nique_lock鈥� in namespace 鈥榮td鈥� does not name a template type 14 | using WriterLock = std::unique_lockstd::shared_mutex; | ^~~ Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:7:1: note: 鈥榮td::unique_lock鈥� is defined in header 鈥�鈥�; did you forget to 鈥�#include 鈥�? 6 | #include +++ |+#include 7 | Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:26:20: error: 鈥榃riterLock鈥� does not name a type 26 | inline WriterLock acquire_write() | ^~~~~~ Pyfhel/Afhel/../SEAL/SEAL/seal/locks.h:36:20: error: 鈥榃riterLock鈥� does not name a type 36 | inline WriterLock try_acquire_write() | ^~~~~~ Pyfhel/Afhel/Afseal.cpp: In member function 鈥榲oid Afseal::encode(std::vector&, seal::Plaintext&)鈥�: Pyfhel/Afhel/Afseal.cpp:269:21: warning: comparison of integer expressions of different signedness: 鈥榮td::vector::size_type鈥� {aka 鈥榣ong unsigned int鈥檥 and 鈥榠nt鈥� [-Wsign-compare] 269 | if(values.size()>this->crtBuilder->slot_count()){ | ~~~^~~~~~~~~ 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 Pyfhel Failed to build Pyfhel

(cryptdnn) @.***:~$ ERROR: Could not build wheels for Pyfhel, which is required to install pyproject.toml-based projects

— Reply to this email directly, view it on GitHub https://github.com/ibarrond/Pyfhel/issues/238#issuecomment-2154764003, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z522LSJM3J2V5JRGJN3ZGGTQJAVCNFSM6AAAAABI6LOW6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUG43DIMBQGM . You are receiving this because you commented.Message ID: @.***>

lilvmy commented 3 months ago

Ok, thank you very much

muhammadoginh commented 3 months ago

Hello, I found an error when trying to install, I follow this https://pyfhel.readthedocs.io/en/latest/source/getting_started/1_installation.html, I use Windows WSL

Here is the complete error information I get: Collecting Pyfhel Using cached Pyfhel-3.4.2.tar.gz (1.0 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy>=1.21 in /home/moginh/.local/lib/python3.10/site-packages (from Pyfhel) (1.25.2) Building wheels for collected packages: Pyfhel Building wheel for Pyfhel (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for Pyfhel (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [299 lines of output] running bdist_wheel running build running build_py running build_clib building 'SEAL' cmake-based library -- Build type (CMAKE_BUILD_TYPE): Release -- The CXX compiler identification is GNU 11.4.0 -- The C compiler identification is GNU 11.4.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Microsoft SEAL debug mode: OFF -- SEAL_USE_CXX17: ON -- SEAL_BUILD_DEPS: ON -- SEAL_USE_MSGSL: ON -- Microsoft GSL: download ... -- Found Git: /usr/bin/git (found version "2.34.1") -- SEAL_USE_ZLIB: ON -- ZLIB: download ... CMake Deprecation Warning at /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/thirdparty/zlib-src/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

  -- Looking for sys/types.h
  -- Looking for sys/types.h - found
  -- Looking for stdint.h
  -- Looking for stdint.h - found
  -- Looking for stddef.h
  -- Looking for stddef.h - found
  -- Check size of off64_t
  -- Check size of off64_t - done
  -- Looking for fseeko
  -- Looking for fseeko - found
  -- Looking for unistd.h
  -- Looking for unistd.h - found
  -- Renaming
  --     /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/thirdparty/zlib-src/zconf.h
  -- to 'zconf.h.included' because this file is included with zlib
  -- but CMake generates it automatically in the build directory.
  -- SEAL_USE_ZSTD: ON
  -- Zstandard: download ...
  CMake Deprecation Warning at /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/thirdparty/zstd-src/build/cmake/CMakeLists.txt:10 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

  -- ZSTD VERSION: 1.4.5
  -- Performing Test CXX_FLAG_STD_CPLUSPLUS11
  -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
  -- Performing Test C_FLAG_STD_C99
  -- Performing Test C_FLAG_STD_C99 - Success
  -- Performing Test C_FLAG_WALL
  -- Performing Test C_FLAG_WALL - Success
  -- Performing Test CXX_FLAG_WALL
  -- Performing Test CXX_FLAG_WALL - Success
  -- Performing Test C_FLAG_WEXTRA
  -- Performing Test C_FLAG_WEXTRA - Success
  -- Performing Test CXX_FLAG_WEXTRA
  -- Performing Test CXX_FLAG_WEXTRA - Success
  -- Performing Test C_FLAG_WUNDEF
  -- Performing Test C_FLAG_WUNDEF - Success
  -- Performing Test CXX_FLAG_WUNDEF
  -- Performing Test CXX_FLAG_WUNDEF - Success
  -- Performing Test C_FLAG_WSHADOW
  -- Performing Test C_FLAG_WSHADOW - Success
  -- Performing Test CXX_FLAG_WSHADOW
  -- Performing Test CXX_FLAG_WSHADOW - Success
  -- Performing Test C_FLAG_WCAST_ALIGN
  -- Performing Test C_FLAG_WCAST_ALIGN - Success
  -- Performing Test CXX_FLAG_WCAST_ALIGN
  -- Performing Test CXX_FLAG_WCAST_ALIGN - Success
  -- Performing Test C_FLAG_WCAST_QUAL
  -- Performing Test C_FLAG_WCAST_QUAL - Success
  -- Performing Test CXX_FLAG_WCAST_QUAL
  -- Performing Test CXX_FLAG_WCAST_QUAL - Success
  -- Performing Test C_FLAG_WSTRICT_PROTOTYPES
  -- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
  -- CMAKE_INSTALL_PREFIX: /usr/local
  -- CMAKE_INSTALL_LIBDIR: lib
  -- ZSTD_LEGACY_SUPPORT not defined!
  -- ZSTD_MULTITHREAD_SUPPORT is disabled
  -- SEAL_USE_INTEL_HEXL: OFF
  -- BUILD_SHARED_LIBS: OFF
  -- SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT: ON
  -- SEAL_USE_GAUSSIAN_NOISE: OFF
  -- SEAL_DEFAULT_PRNG: Blake2xb
  -- SEAL_AVOID_BRANCHING: OFF
  -- x86intrin.h - found
  -- SEAL_USE_INTRIN: ON
  -- Performing Test SEAL_MEMSET_S_FOUND
  -- Performing Test SEAL_MEMSET_S_FOUND - Failed
  -- Looking for explicit_bzero
  -- Looking for explicit_bzero - found
  -- Looking for explicit_memset
  -- Looking for explicit_memset - not found
  -- SEAL_USE_MEMSET_S: OFF
  -- SEAL_USE_EXPLICIT_BZERO: ON
  -- SEAL_USE_EXPLICIT_MEMSET: OFF
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  -- SEAL_BUILD_SEAL_C: OFF
  -- SEAL_BUILD_EXAMPLES: OFF
  -- SEAL_BUILD_TESTS: OFF
  -- SEAL_BUILD_BENCH: OFF
  -- Configuring done (11.9s)
  -- Generating done (0.0s)
  -- Build files have been written to: /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/build/temp.linux-x86_64-3.10/Pyfhel/SEAL
  [  1%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/adler32.o
  [  2%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/compress.o
  [  3%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/debug.c.o
  [  5%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/crc32.o
  [  6%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/entropy_common.c.o
  [  7%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/deflate.o
  [  8%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/gzclose.o
  [ 10%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/error_private.c.o
  [ 11%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/gzlib.o
  [ 11%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/fse_decompress.c.o
  [ 12%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/gzread.o
  [ 12%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/gzwrite.o
  [ 13%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/inflate.o
  [ 15%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/pool.c.o
  [ 16%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/threading.c.o
  [ 17%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/xxhash.c.o
  [ 18%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/infback.o
  [ 20%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/common/zstd_common.c.o
  [ 21%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/fse_compress.c.o
  [ 22%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/inftrees.o
  [ 24%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/inffast.o
  [ 25%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/trees.o
  [ 26%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/uncompr.o
  [ 27%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/hist.c.o
  [ 29%] Building C object thirdparty/zlib-build/CMakeFiles/zlibstatic.dir/zutil.o
  [ 30%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/huf_compress.c.o
  [ 30%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_compress.c.o
  [ 31%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_compress_literals.c.o
  [ 32%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_compress_sequences.c.o
  [ 34%] Linking C static library ../../lib/libz.a
  [ 34%] Built target zlibstatic
  [ 35%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_compress_superblock.c.o
  [ 36%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_double_fast.c.o
  [ 37%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_fast.c.o
  [ 39%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_lazy.c.o
  [ 40%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_ldm.c.o
  [ 40%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstd_opt.c.o
  [ 41%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/compress/zstdmt_compress.c.o
  [ 43%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/decompress/huf_decompress.c.o
  [ 44%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/decompress/zstd_ddict.c.o
  [ 45%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/decompress/zstd_decompress.c.o
  [ 46%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/decompress/zstd_decompress_block.c.o
  [ 48%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/dictBuilder/cover.c.o
  [ 49%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/dictBuilder/divsufsort.c.o
  [ 49%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/dictBuilder/fastcover.c.o
  [ 50%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/dictBuilder/zdict.c.o
  [ 51%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/deprecated/zbuff_common.c.o
  [ 53%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/deprecated/zbuff_compress.c.o
  [ 54%] Building C object thirdparty/zstd-build/lib/CMakeFiles/libzstd_static.dir/__/__/zstd-src/lib/deprecated/zbuff_decompress.c.o
  [ 55%] Linking C static library ../../../lib/libzstd.a
  [ 55%] Built target libzstd_static
  [ 56%] Building CXX object CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o
  [ 58%] Building CXX object CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o
  [ 59%] Building CXX object CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o
  [ 60%] Building CXX object CMakeFiles/seal.dir/native/src/seal/context.cpp.o
  [ 62%] Building CXX object CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o
  [ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o
  [ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o
  [ 64%] Building CXX object CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o
  [ 65%] Building CXX object CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o
  [ 67%] Building CXX object CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o
  [ 68%] Building CXX object CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o
  [ 69%] Building CXX object CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o
  [ 70%] Building CXX object CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o
  [ 72%] Building CXX object CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o
  [ 73%] Building CXX object CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o
  [ 73%] Building CXX object CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o
  [ 74%] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2b.c.o
  [ 75%] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2xb.c.o
  [ 77%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o
  [ 78%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o
  [ 79%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o
  [ 81%] Building C object CMakeFiles/seal.dir/native/src/seal/util/fips202.c.o
  [ 82%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o
  [ 82%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o
  [ 83%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o
  [ 84%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o
  [ 86%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o
  [ 87%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o
  [ 88%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o
  [ 89%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o
  [ 91%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
  [ 91%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o
  [ 92%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o
  [ 93%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o
  [ 94%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o
  [ 96%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o
  [ 97%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o
  [ 98%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o
  [100%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o
  [100%] Linking CXX static library lib/libseal-4.0.a
  [100%] Built target seal
  building 'Afhel' shared library
  /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/Pyfhel/Afhel/Afseal.cpp: In member function ‘void AfsealPoly::generate_coeff_repr(Afseal&)’:
  /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/Pyfhel/Afhel/Afseal.cpp:1067:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   1067 |     for (int j = 0; j < coeff_modulus_count; j++)
        |                     ~~^~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/Pyfhel/Afhel/Afseal.cpp: In member function ‘virtual bool AfsealPoly::invert_inplace()’:
  /tmp/pip-install-zezqaa2i/pyfhel_814b7c316d7a4bc1b4e79eac32240c24/Pyfhel/Afhel/Afseal.cpp:1159:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   1159 |   for (int j = 0; j < coeff_modulus_count; j++)
        |                   ~~^~~~~~~~~~~~~~~~~~~~~
  running build_ext
  cimporting numpy version '2.0.0'
  building 'Pyfhel.Pyfhel' extension
  Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24737:13: error: ‘PyDataType_ELSIZE’ was not declared in this scope; did you mean ‘PyDataType_ISUNSIZED’?
  24737 |   __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~
        |             PyDataType_ISUNSIZED
  Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24771:13: error: ‘PyDataType_ALIGNMENT’ was not declared in this scope; did you mean ‘PyDataType_ISSIGNED’?
  24771 |   __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~
        |             PyDataType_ISSIGNED
  Pyfhel/Pyfhel.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24809:15: error: ‘PyDataType_FIELDS’ was not declared in this scope; did you mean ‘PyDataType_HASFIELDS’?
  24809 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
        |               ^~~~~~~~~~~~~~~~~
        |               PyDataType_HASFIELDS
  Pyfhel/Pyfhel.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_5names_names(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24851:15: error: ‘PyDataType_NAMES’ was not declared in this scope; did you mean ‘PyDataType_ISNUMBER’?
  24851 |   __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
        |               ^~~~~~~~~~~~~~~~
        |               PyDataType_ISNUMBER
  Pyfhel/Pyfhel.cpp: In function ‘PyArray_ArrayDescr* __pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24889:13: error: ‘PyDataType_SUBARRAY’ was not declared in this scope; did you mean ‘PyDataType_HASSUBARRAY’?
  24889 |   __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~
        |             PyDataType_HASSUBARRAY
  Pyfhel/Pyfhel.cpp: In function ‘npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr*)’:
  Pyfhel/Pyfhel.cpp:24923:13: error: ‘PyDataType_FLAGS’ was not declared in this scope; did you mean ‘PyDataType_FLAGCHK’?
  24923 |   __pyx_r = PyDataType_FLAGS(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~
        |             PyDataType_FLAGCHK
  Pyfhel/Pyfhel.cpp: In function ‘int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:24957:13: error: ‘PyArray_MultiIter_NUMITER’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
  24957 |   __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_NEXT
  Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:24991:13: error: ‘PyArray_MultiIter_SIZE’ was not declared in this scope; did you mean ‘PyArray_MultiIter_RESET’?
  24991 |   __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_RESET
  Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:25025:13: error: ‘PyArray_MultiIter_INDEX’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
  25025 |   __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_NEXT
  Pyfhel/Pyfhel.cpp: In function ‘int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:25059:13: error: ‘PyArray_MultiIter_NDIM’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
  25059 |   __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_NEXT
  Pyfhel/Pyfhel.cpp: In function ‘npy_intp* __pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:25093:13: error: ‘PyArray_MultiIter_DIMS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_DATA’?
  25093 |   __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_DATA
  Pyfhel/Pyfhel.cpp: In function ‘void** __pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject*)’:
  Pyfhel/Pyfhel.cpp:25127:13: error: ‘PyArray_MultiIter_ITERS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
  25127 |   __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
        |             ^~~~~~~~~~~~~~~~~~~~~~~
        |             PyArray_MultiIter_NEXT
  Pyfhel/Pyfhel.cpp: In function ‘PyArrayObject* __pyx_f_6Pyfhel_6Pyfhel_vec_to_array_i(std::vector<long int>, int)’:
  Pyfhel/Pyfhel.cpp:26506:33: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  26506 |   for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
        |                       ~~~~~~~~~~^~~~~~~~~~~
  Pyfhel/Pyfhel.cpp: In function ‘PyArrayObject* __pyx_f_6Pyfhel_6Pyfhel_vec_to_array_u(std::vector<long unsigned int>, int)’:
  Pyfhel/Pyfhel.cpp:26785:33: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  26785 |   for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
        |                       ~~~~~~~~~~^~~~~~~~~~~
  Pyfhel/Pyfhel.cpp: In function ‘__pyx_obj_6Pyfhel_6PyCtxt_PyCtxt* __pyx_f_6Pyfhel_6Pyfhel_6Pyfhel_cumul_add(__pyx_obj_6Pyfhel_6Pyfhel_Pyfhel*, __pyx_obj_6Pyfhel_6PyCtxt_PyCtxt*, int, __pyx_opt_args_6Pyfhel_6Pyfhel_6Pyfhel_cumul_add*)’:
  Pyfhel/Pyfhel.cpp:48097:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  48097 |     __pyx_t_9 = (__pyx_v_k < __pyx_v_n_elements);
        |                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  error: command '/usr/bin/x86_64-linux-gnu-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 Pyfhel Failed to build Pyfhel ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pyfhel)

ibarrond commented 2 months ago

Installation issues should file a bug report