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

PyDataType_## errors on installation: PyDataType_## errors on installation #251

Open
arituerto opened this issue Oct 7, 2024 · 0 comments
Labels

Comments

@arituerto
Copy link

arituerto commented Oct 7, 2024

Description
When trying to install pyfhel on a virtual environment created with python 3.10.12, installation fails when compiling /Pyfhel/Pyfhel.cpp with errors about not declared PyDataTypes errors.

I'm reporting about version 3.1.4 but the same happened with the current last version and the same python version. This also happens when cloning and runing pip install ..

I was able to correctly install pyfhel 3.1.4 using python 3.7.17.

Code To Reproduce Error

$ python3.10 -m venv .venv
$ source .venv/bin/activate
$ python -m pip install --upgrade pip buildtools wheel setuptools
$ pip install pyfhel==3.1.4

Collecting pyfhel==3.1.4
  Using cached Pyfhel-3.1.4.tar.gz (42.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.20 (from pyfhel==3.1.4)
  Using cached numpy-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Using cached numpy-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.3 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
  ╰─> [327 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/Pyfhel
      copying Pyfhel/__init__.py -> build/lib.linux-x86_64-3.10/Pyfhel
      copying Pyfhel/test.py -> build/lib.linux-x86_64-3.10/Pyfhel
      creating build/lib.linux-x86_64-3.10/Pyfhel/utils
      copying Pyfhel/utils/__init__.py -> build/lib.linux-x86_64-3.10/Pyfhel/utils
      copying Pyfhel/utils/Backend_t.py -> build/lib.linux-x86_64-3.10/Pyfhel/utils
      copying Pyfhel/utils/Scheme_t.py -> build/lib.linux-x86_64-3.10/Pyfhel/utils
      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 ...
      CMake Warning (dev) at /tmp/pip-build-env-l6fh_0un/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
        Calling FetchContent_Populate(msgsl) is deprecated, call
        FetchContent_MakeAvailable(msgsl) instead.  Policy CMP0169 can be set to
        OLD to allow FetchContent_Populate(msgsl) to be called directly for now,
        but the ability to call it with declared details will be removed completely
        in a future version.
      Call Stack (most recent call first):
        cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
        cmake/SEALMacros.cmake:17 (include)
        CMakeLists.txt:150 (seal_fetch_thirdparty_content)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found Git: /usr/bin/git (found version "2.34.1")
      -- SEAL_USE_ZLIB: ON
      -- ZLIB: download ...
      CMake Warning (dev) at /tmp/pip-build-env-l6fh_0un/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
        Calling FetchContent_Populate(zlib) is deprecated, call
        FetchContent_MakeAvailable(zlib) instead.  Policy CMP0169 can be set to OLD
        to allow FetchContent_Populate(zlib) to be called directly for now, but the
        ability to call it with declared details will be removed completely in a
        future version.
      Call Stack (most recent call first):
        cmake/ExternalZLIB.cmake:10 (FetchContent_Populate)
        cmake/SEALMacros.cmake:17 (include)
        CMakeLists.txt:169 (seal_fetch_thirdparty_content)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      CMake Deprecation Warning at 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-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/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 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
      -- 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 (19.4s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/build/temp.linux-x86_64-3.10/Pyfhel/SEAL
      [  1%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/adler32.o
      [  2%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/compress.o
      [  3%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/crc32.o
      [  5%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/debug.c.o
      [  6%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/entropy_common.c.o
      [  7%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/deflate.o
      [  8%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/error_private.c.o
      [ 10%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/gzclose.o
      [ 10%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/fse_decompress.c.o
      [ 11%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/pool.c.o
      [ 12%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/gzlib.o
      [ 13%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/threading.c.o
      [ 15%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/gzread.o
      [ 15%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/gzwrite.o
      [ 16%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/xxhash.c.o
      [ 17%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/inflate.o
      [ 18%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/infback.o
      [ 20%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/zstd_common.c.o
      [ 21%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/fse_compress.c.o
      [ 22%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/inftrees.o
      [ 24%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/hist.c.o
      [ 25%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/inffast.o
      [ 26%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/trees.o
      [ 27%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/huf_compress.c.o
      [ 29%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/uncompr.o
      [ 29%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress.c.o
      [ 30%] Building C object thirdparty/zlib-src/CMakeFiles/zlibstatic.dir/zutil.o
      [ 31%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_literals.c.o
      [ 32%] Linking C static library ../../lib/libz.a
      [ 34%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_sequences.c.o
      [ 35%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_superblock.c.o
      [ 36%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_double_fast.c.o
      [ 36%] Built target zlibstatic
      [ 37%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_fast.c.o
      [ 39%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_lazy.c.o
      [ 40%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_ldm.c.o
      [ 40%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_opt.c.o
      [ 41%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstdmt_compress.c.o
      [ 43%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress.c.o
      [ 44%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_ddict.c.o
      [ 45%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress.c.o
      [ 46%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress_block.c.o
      [ 48%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/cover.c.o
      [ 49%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/divsufsort.c.o
      [ 49%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/fastcover.c.o
      [ 50%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/zdict.c.o
      [ 51%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_common.c.o
      [ 53%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_compress.c.o
      [ 54%] Building C object thirdparty/zstd-src/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/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-3.7.a
      [100%] Built target seal
      building 'Afhel' shared library
      creating build/temp.linux-x86_64-3.10/tmp
      creating build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b
      creating build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5
      creating build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel
      creating build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/thirdparty/msgsl-src/include -c /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel/Afseal.cpp -o build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel/Afseal.o -std=c++17 -O3 -fopenmp
      x86_64-linux-gnu-g++ -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel/Afseal.o -L/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/lib -lz -lseal-3.7 -lzstd -o build/temp.linux-x86_64-3.10/libAfhel.so -Wl,-rpath=$ORIGIN/. -fopenmp
      running build_ext
      cimporting numpy version '2.1.2'
      building 'Pyfhel.Pyfhel' extension
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__PYX_ENUM_CLASS_DECL=enum -IPyfhel/Afhel -I/home/VICOMTECH/arituerto/dev/facecog/.venv/include -I/usr/include/python3.10 -I/tmp/pip-build-env-l6fh_0un/overlay/lib/python3.10/site-packages/numpy/_core/include -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/thirdparty/msgsl-src/include -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Afhel -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/build/temp.linux-x86_64-3.10/Pyfhel/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/native/src -I/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/backend/SEAL/thirdparty/msgsl-src/include -c /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp -o build/temp.linux-x86_64-3.10/tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.o -std=c++17 -O3 -fopenmp
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24163:13: error: ‘PyDataType_ELSIZE’ was not declared in this scope; did you mean ‘PyDataType_ISUNSIZED’?
      24163 |   __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~
            |             PyDataType_ISUNSIZED
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24197:13: error: ‘PyDataType_ALIGNMENT’ was not declared in this scope; did you mean ‘PyDataType_ISSIGNED’?
      24197 |   __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~
            |             PyDataType_ISSIGNED
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24235:15: error: ‘PyDataType_FIELDS’ was not declared in this scope; did you mean ‘PyDataType_HASFIELDS’?
      24235 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
            |               ^~~~~~~~~~~~~~~~~
            |               PyDataType_HASFIELDS
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_5names_names(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24277:15: error: ‘PyDataType_NAMES’ was not declared in this scope; did you mean ‘PyDataType_ISNUMBER’?
      24277 |   __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
            |               ^~~~~~~~~~~~~~~~
            |               PyDataType_ISNUMBER
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘PyArray_ArrayDescr* __pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24315:13: error: ‘PyDataType_SUBARRAY’ was not declared in this scope; did you mean ‘PyDataType_HASSUBARRAY’?
      24315 |   __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~
            |             PyDataType_HASSUBARRAY
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24349:13: error: ‘PyDataType_FLAGS’ was not declared in this scope; did you mean ‘PyDataType_FLAGCHK’?
      24349 |   __pyx_r = PyDataType_FLAGS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~
            |             PyDataType_FLAGCHK
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24383:13: error: ‘PyArray_MultiIter_NUMITER’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
      24383 |   __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24417:13: error: ‘PyArray_MultiIter_SIZE’ was not declared in this scope; did you mean ‘PyArray_MultiIter_RESET’?
      24417 |   __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_RESET
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24451:13: error: ‘PyArray_MultiIter_INDEX’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
      24451 |   __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24485:13: error: ‘PyArray_MultiIter_NDIM’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
      24485 |   __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘npy_intp* __pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24519:13: error: ‘PyArray_MultiIter_DIMS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_DATA’?
      24519 |   __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_DATA
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘void** __pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject*)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:24553:13: error: ‘PyArray_MultiIter_ITERS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
      24553 |   __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘PyArrayObject* __pyx_f_6Pyfhel_6Pyfhel_vec_to_array_i(std::vector<long int>, int)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:25932:33: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int64_t’ {aka ‘long int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
      25932 |   for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
            |                       ~~~~~~~~~~^~~~~~~~~~~
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp: In function ‘PyArrayObject* __pyx_f_6Pyfhel_6Pyfhel_vec_to_array_f(std::vector<double>, int)’:
      /tmp/pip-install-us7ud9_b/pyfhel_aed332cda6ca435999f2ab10d53a51f5/Pyfhel/Pyfhel.cpp:26211:33: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int64_t’ {aka ‘long int’} and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
      26211 |   for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
            |                       ~~~~~~~~~~^~~~~~~~~~~
      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)

Expected behavior
I would expect to install with no issues.

Setup:

  • OS: Ubuntu 22.04
  • Python: 3.10.12
  • C compiler version: [GCC 11.4.0]
  • Pyfhel Version: 3.1.4
@arituerto arituerto added the bug label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant