You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
I verified this on docker, but it also occurs in other environments.
docker run -it --rm python bash
apt update && apt install build-essential cmake
pip install openjij
output log
Building wheels for collected packages: openjij, jij-cimod
Building wheel for openjij (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [542 lines of output]
/usr/local/lib/python3.11/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
/tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/.eggs/setuptools_git_versioning-1.13.3-py3.11.egg/setuptools_git_versioning.py:258: UserWarning: Passing boolean value to 'version_config'/'setuptools_git_versioning' option is deprecated since setuptools-git-versioning 1.8.0 and will be dropped in v2.0.0
Please change value to '{'enabled': False/True}'
warnings.warn(
/tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/.eggs/setuptools_git_versioning-1.13.3-py3.11.egg/setuptools_git_versioning.py:235: UserWarning: 'version_config' option is deprecated since setuptools-git-versioning v1.8.0 and will be dropped in v2.0.0
Please rename it to 'setuptools_git_versioning'
warnings.warn(
-- Found unsuitable Qt version "" from NOTFOUND
-- A cache variable, namely BLAS_DIR, has been set to specify the install directory of BLAS
-- Looking for BLAS -- mkl.h not found
-- Looking for MKL BLAS: not found
-- Looking for Goto BLAS: not found
-- Looking for Open BLAS: not found
-- Looking for Eigen BLAS: not found
-- Looking for Eigen BLAS: not found
-- Looking for Atlas BLAS: not found
-- Looking for PhiPACK BLAS: not found
-- Looking for CXML BLAS: not found
-- Looking for DXML BLAS: not found
-- Looking for SunPerf BLAS: not found
-- Looking for SCSL BLAS: not found
-- Looking for SGIMATH BLAS: not found
-- Looking for IBM ESSL BLAS: not found
-- Looking for IBM ESSL MT BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for ACML BLAS: not found
-- Looking for Apple BLAS: not found
-- Looking for NAS BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
-- Looking for Generic BLAS: not found
CMake Warning at build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindBLAS.cmake:1371 (message):
BLA_VENDOR has been set to All but blas libraries could not be found or
check of symbols failed.
Please indicate where to find blas libraries. You have three options:
- Option 1: Provide the installation directory of BLAS library with cmake
option: -DBLAS_DIR=your/path/to/blas
- Option 2: Provide the directory where to find BLAS libraries with cmake
option: -DBLAS_LIBDIR=your/path/to/blas/libs
- Option 3: Update your environment variable (Linux: LD_LIBRARY_PATH,
Windows: LIB, Mac: DYLD_LIBRARY_PATH)
To follow libraries detection more precisely you can activate a verbose
mode with -DBLAS_VERBOSE=ON at cmake configure.
You could also specify a BLAS vendor to look for by setting
-DBLA_VENDOR=blas_vendor_name.
List of possible BLAS vendor: Goto, ATLAS PhiPACK, CXML, DXML, SunPerf,
SCSL, SGIMATH, IBMESSL, Intel10_32 (intel mkl v10 32 bit),Intel10_64lp
(intel mkl v10 64 bit, lp thread model, lp64 model), Intel10_64lp_seq
(intel mkl v10 64 bit, sequential code, lp64 model),Intel( older versions
of mkl 32 and 64 bit), ACML, ACML_MP, ACML_GPU, Apple, NAS, Generic
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindLAPACK.cmake:138 (find_package)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:30 (find_package)
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS.
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (CHOLMOD)
does not match the name of the calling package (Cholmod). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindCholmod.cmake:86 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:49 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (UMFPACK)
does not match the name of the calling package (Umfpack). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindUmfpack.cmake:50 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:60 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (SUPERLU)
does not match the name of the calling package (SuperLU). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindSuperLU.cmake:93 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:71 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK)
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- Could NOT find SPQR (missing: SPQR_INCLUDES SPQR_LIBRARIES)
-- Found unsuitable Qt version "" from NOTFOUND
-- Performing Test COMPILER_SUPPORT_FASTMATH
-- Performing Test COMPILER_SUPPORT_FASTMATH - Success
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (GOOGLEHASH)
does not match the name of the calling package (GoogleHash). This can lead
to problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindGoogleHash.cmake:21 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/unsupported/test/CMakeLists.txt:24 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find GOOGLEHASH (missing: GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (ADOLC) does
not match the name of the calling package (Adolc). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindAdolc.cmake:17 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/unsupported/test/CMakeLists.txt:34 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find ADOLC (missing: ADOLC_INCLUDES ADOLC_LIBRARIES)
-- Could NOT find MPFR (missing: MPFR_INCLUDES MPFR_LIBRARIES MPFR_VERSION_OK) (Required is at least version "2.3.0")
-- Found GMP: /usr/include/x86_64-linux-gnu
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES)
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.0")
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (CHOLMOD)
does not match the name of the calling package (Cholmod). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindCholmod.cmake:86 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (UMFPACK)
does not match the name of the calling package (Umfpack). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindUmfpack.cmake:50 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:24 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (SUPERLU)
does not match the name of the calling package (SuperLU). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindSuperLU.cmake:93 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:32 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK)
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- ************************************************************
-- *** Eigen's unit tests configuration summary *** -- ************************************************************ -- -- Build type: Release -- Build site: 33d877c86527 -- Build string: linux-5.15.90.1-microsoft-standard-wsl2-_-12.2.0-sse2-64bit -- Enabled backends: -- Disabled backends: Cholmod, UmfPack, SuperLU, PaStiX, METIS, SPQR, Qt4 support, Boost.Multiprecision, GoogleHash, Adolc, MPFR C++, fftw, OpenGL, -- Default order: Column-major -- Maximal matrix/vector size: 320 -- SSE2: Using architecture defaults -- SSE3: Using architecture defaults -- SSSE3: Using architecture defaults -- SSE4.1: Using architecture defaults -- SSE4.2: Using architecture defaults -- AVX: Using architecture defaults -- FMA: Using architecture defaults -- AVX512: Using architecture defaults -- Altivec: Using architecture defaults -- VSX: Using architecture defaults -- ARM NEON: Using architecture defaults -- ARMv8 NEON: Using architecture defaults -- S390X ZVECTOR: Using architecture defaults -- C++11: OFF -- SYCL: OFF -- CUDA: OFF -- CXX: /usr/bin/c++ CXX_VERSION: c++ (Debian 12.2.0-14) 12.2.0 CXX_FLAGS: -DVERSION_INFO="0.3.5" -Wall -Wextra -Wno-long-long -pedantic -fopenmp -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -Wc++11-extensions -Wdouble-promotion -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi Sparse lib flags: -- ************************************************************ -- -- Configured Eigen 3.3.7 -- -- Some things you can do now: -- --------------+-------------------------------------------------------------- -- Command | Description -- --------------+-------------------------------------------------------------- -- make install | Install Eigen. Headers will be installed to: -- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR> -- | Using the following values: -- | CMAKE_INSTALL_PREFIX: /usr/local -- | INCLUDE_INSTALL_DIR: include/eigen3 -- | Change the install location of Eigen headers using: -- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix -- | Or: -- | cmake . -DINCLUDE_INSTALL_DIR=yourdir -- make doc | Generate the API documentation, requires Doxygen & LaTeX -- make check | Build and run the unit-tests. Read this page: -- | http://eigen.tuxfamily.org/index.php?title=Tests -- make blas | Build BLAS library (not the same thing as Eigen) -- make uninstall| Removes files installed by make install -- --------------+-------------------------------------------------------------- -- -- Fetch pybind11_json for python-json-binding -- Configuring done -- Generating done -- Build files have been written to: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311 Building CXX object openjij/CMakeFiles/cxxjij.dir/main.cpp.o In file included from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:16, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/attr.h:13, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:44, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11_json-src/include/pybind11_json/pybind11_json.hpp:17, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/openjij/./declare.hpp:24, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/openjij/main.cpp:19: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/internals.h:276:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 276 | PyEval_InitThreads(); | ~~~~~~~~~~~~~~~~~~^~ In file included from /usr/local/include/python3.11/Python.h:95, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/common.h:112, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pytypes.h:12, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:13: /usr/local/include/python3.11/ceval.h:132:37: note: declared here 132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 446 | " " + handle(frame->f_code->co_filename).cast<std::string>() + | ^~ In file included from /usr/local/include/python3.11/Python.h:42: /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:75: error: expected primary-expression before ‘>’ token 446 | " " + handle(frame->f_code->co_filename).cast<std::string>() + | ^ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:77: error: expected primary-expression before ‘)’ token 446 | " " + handle(frame->f_code->co_filename).cast<std::string>() + | ^ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 448 | handle(frame->f_code->co_name).cast<std::string>() + "\n"; | ^~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:64: error: expected primary-expression before ‘>’ token 448 | handle(frame->f_code->co_name).cast<std::string>() + "\n"; | ^ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:66: error: expected primary-expression before ‘)’ token 448 | handle(frame->f_code->co_name).cast<std::string>() + "\n"; | ^ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:449:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 449 | frame = frame->f_back; | ^~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2053:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’? 2053 | PyFrameObject *frame = PyThreadState_Get()->frame; | ^~~~~ | cframe /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2054:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 2054 | if (frame && (std::string) str(frame->f_code->co_name) == name && | ^~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2055:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 2055 | frame->f_code->co_argcount > 0) { | ^~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0)); | ^~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /usr/local/include/python3.11/Python.h:38: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0)); | ^~ /usr/local/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’ 24 | #define _Py_CAST(type, expr) ((type)(expr)) | ^~~~ /usr/local/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’ 30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index]) | ^~~~~~~~~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:30: note: in expansion of macro ‘PyTuple_GET_ITEM’ 2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0)); | ^~~~~~~~~~~~~~~~ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/all.hpp:24, from /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/openjij/./declare.hpp:19: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/classical_ising_polynomial.hpp: In instantiation of ‘openjij::system::ClassicalIsingPolynomial<openjij::graph::Polynomial<FloatType> >::ClassicalIsingPolynomial(const openjij::graph::Spins&, const nlohmann::json&) [with FloatType = double; openjij::graph::Spins = std::vector<int>; nlohmann::json = nlohmann::basic_json<>]’: /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/classical_ising_polynomial.hpp:589:82: required from here /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/classical_ising_polynomial.hpp:311:17: warning: ‘openjij::system::ClassicalIsingPolynomial<openjij::graph::Polynomial<double> >::spin’ will be initialized after [-Wreorder] 311 | graph::Spins spin; | ^~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/classical_ising_polynomial.hpp:305:25: warning: ‘const cimod::Vartype openjij::system::ClassicalIsingPolynomial<openjij::graph::Polynomial<double> >::vartype_’ [-Wreorder] 305 | const cimod::Vartype vartype_; | ^~~~~~~~ /tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/src/system/classical_ising_polynomial.hpp:55:4: warning: when initialized here [-Wreorder] 55 | ClassicalIsingPolynomial(const graph::Spins &initial_spins, const nlohmann::json &j):num_spins(initial_spins.size()), spin(initial_spins), vartype_(j.at("vartype") == "SPIN" ? cimod::Vartype::SPIN : cimod::Vartype::BINARY) { | ^~~~~~~~~~~~~~~~~~~~~~~~ gmake[3]: *** [openjij/CMakeFiles/cxxjij.dir/build.make:76: openjij/CMakeFiles/cxxjij.dir/main.cpp.o] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:39241: openjij/CMakeFiles/cxxjij.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:39274: openjij/CMakeFiles/python.dir/rule] Error 2 gmake: *** [Makefile:17069: python] Error 2 Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/setup.py", line 115, in <module> setup( File "/usr/local/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands self.run_command(cmd) File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.run() File "/usr/local/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 343, in run self.run_command("build") File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.run() File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.run() File "/tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/setup.py", line 42, in run self.build_extension(ext) File "/tmp/pip-install-jsp1m516/openjij_eaa572f9b9f8441887a840efae7f5fa3/setup.py", line 78, in build_extension subprocess.check_call( File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'python', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for openjij Running setup.py clean for openjij Building wheel for jij-cimod (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [517 lines of output] /usr/local/lib/python3.11/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/.eggs/setuptools_git_versioning-1.13.3-py3.11.egg/setuptools_git_versioning.py:258: UserWarning: Passing boolean value to 'version_config'/'setuptools_git_versioning' option is deprecated since setuptools-git-versioning 1.8.0 and will be dropped in v2.0.0 Please change value to '{'enabled': False/True}' warnings.warn( /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/.eggs/setuptools_git_versioning-1.13.3-py3.11.egg/setuptools_git_versioning.py:235: UserWarning: 'version_config' option is deprecated since setuptools-git-versioning v1.8.0 and will be dropped in v2.0.0 Please rename it to 'setuptools_git_versioning' warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/cimod copying cimod/vartype.py -> build/lib.linux-x86_64-cpython-311/cimod copying cimod/__version.py -> build/lib.linux-x86_64-cpython-311/cimod copying cimod/__init__.py -> build/lib.linux-x86_64-cpython-311/cimod creating build/lib.linux-x86_64-cpython-311/cimod/utils copying cimod/utils/decolator.py -> build/lib.linux-x86_64-cpython-311/cimod/utils copying cimod/utils/response.py -> build/lib.linux-x86_64-cpython-311/cimod/utils copying cimod/utils/__init__.py -> build/lib.linux-x86_64-cpython-311/cimod/utils creating build/lib.linux-x86_64-cpython-311/cimod/model copying cimod/model/binary_quadratic_model.py -> build/lib.linux-x86_64-cpython-311/cimod/model copying cimod/model/binary_polynomial_model.py -> build/lib.linux-x86_64-cpython-311/cimod/model copying cimod/model/__init__.py -> build/lib.linux-x86_64-cpython-311/cimod/model creating build/lib.linux-x86_64-cpython-311/cimod/model/legacy copying cimod/model/legacy/binary_quadratic_model.py -> build/lib.linux-x86_64-cpython-311/cimod/model/legacy copying cimod/model/legacy/__init__.py -> build/lib.linux-x86_64-cpython-311/cimod/model/legacy running build_ext -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- 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 -- 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 -- GCC detected, adding compile flags -- USE_OMP = Yes -- USE_TEST = Yes -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Fetch googletest for C++ testing CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest-src/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 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. CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest-src/googlemock/CMakeLists.txt:42 (cmake_minimum_required): Compatibility with CMake < 2.8.12 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. CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest-src/googletest/CMakeLists.txt:49 (cmake_minimum_required): Compatibility with CMake < 2.8.12 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. -- Found PythonInterp: /usr/local/bin/python (found version "3.11.4") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Fetch pybind11 for python-binding -- Found PythonLibs: /usr/local/lib/libpython3.11.so -- pybind11 v2.5.0 -- Fetch eigen /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/eigen-src CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/eigen-src/CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 2.8.12 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. You could also specify a BLAS vendor to look for by setting -DBLA_VENDOR=blas_vendor_name. List of possible BLAS vendor: Goto, ATLAS PhiPACK, CXML, DXML, SunPerf, SCSL, SGIMATH, IBMESSL, Intel10_32 (intel mkl v10 32 bit),Intel10_64lp (intel mkl v10 64 bit, lp thread model, lp64 model), Intel10_64lp_seq (intel mkl v10 64 bit, sequential code, lp64 model),Intel( older versions of mkl 32 and 64 bit), ACML, ACML_MP, ACML_GPU, Apple, NAS, Generic Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindLAPACK.cmake:138 (find_package) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:30 (find_package) -- A library with BLAS API not found. Please specify library location. -- LAPACK requires BLAS. CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (CHOLMOD) does not match the name of the calling package (Cholmod). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindCholmod.cmake:86 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:49 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (UMFPACK) does not match the name of the calling package (Umfpack). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindUmfpack.cmake:50 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:60 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (SUPERLU) does not match the name of the calling package (SuperLU). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindSuperLU.cmake:93 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/test/CMakeLists.txt:71 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) -- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend. -- Could NOT find SPQR (missing: SPQR_INCLUDES SPQR_LIBRARIES) -- Found unsuitable Qt version "" from NOTFOUND -- Performing Test COMPILER_SUPPORT_FASTMATH -- Performing Test COMPILER_SUPPORT_FASTMATH - Success -- Could NOT find Boost (missing: Boost_INCLUDE_DIR) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (GOOGLEHASH) does not match the name of the calling package (GoogleHash). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindGoogleHash.cmake:21 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/unsupported/test/CMakeLists.txt:24 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find GOOGLEHASH (missing: GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (ADOLC) does not match the name of the calling package (Adolc). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindAdolc.cmake:17 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/unsupported/test/CMakeLists.txt:34 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find ADOLC (missing: ADOLC_INCLUDES ADOLC_LIBRARIES) -- Could NOT find MPFR (missing: MPFR_INCLUDES MPFR_LIBRARIES MPFR_VERSION_OK) (Required is at least version "2.3.0") -- Found GMP: /usr/include/x86_64-linux-gnu -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") -- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES) -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) -- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.0") -- Found unsuitable Qt version "" from NOTFOUND -- Qt4 not found, so disabling the mandelbrot and opengl demos CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (CHOLMOD) does not match the name of the calling package (Cholmod). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindCholmod.cmake:86 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:16 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (UMFPACK) does not match the name of the calling package (Umfpack). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindUmfpack.cmake:50 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:24 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (SUPERLU) does not match the name of the calling package (SuperLU). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): build/temp.linux-x86_64-cpython-311/_deps/eigen-src/cmake/FindSuperLU.cmake:93 (find_package_handle_standard_args) build/temp.linux-x86_64-cpython-311/_deps/eigen-src/bench/spbench/CMakeLists.txt:32 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) -- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend. -- ************************************************************ -- *** Eigen's unit tests configuration summary ***
-- ************************************************************
--
-- Build type: Release
-- Build site: 33d877c86527
-- Build string: linux-5.15.90.1-microsoft-standard-wsl2-_-12.2.0-sse2-64bit
-- Enabled backends:
-- Disabled backends: Cholmod, UmfPack, SuperLU, PaStiX, METIS, SPQR, Qt4 support, Boost.Multiprecision, GoogleHash, Adolc, MPFR C++, fftw, OpenGL,
-- Default order: Column-major
-- Maximal matrix/vector size: 320
-- SSE2: Using architecture defaults
-- SSE3: Using architecture defaults
-- SSSE3: Using architecture defaults
-- SSE4.1: Using architecture defaults
-- SSE4.2: Using architecture defaults
-- AVX: Using architecture defaults
-- FMA: Using architecture defaults
-- AVX512: Using architecture defaults
-- Altivec: Using architecture defaults
-- VSX: Using architecture defaults
-- ARM NEON: Using architecture defaults
-- ARMv8 NEON: Using architecture defaults
-- S390X ZVECTOR: Using architecture defaults
-- C++11: OFF
-- SYCL: OFF
-- CUDA: OFF
--
CXX: /usr/bin/c++
CXX_VERSION: c++ (Debian 12.2.0-14) 12.2.0
CXX_FLAGS: -DVERSION_INFO="1.2.3" -Wall -Wextra -Wno-long-long -pedantic -fopenmp -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -Wc++11-extensions -Wdouble-promotion -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi
Sparse lib flags:
-- ************************************************************
--
-- Configured Eigen 3.3.7
--
-- Some things you can do now:
-- --------------+--------------------------------------------------------------
-- Command | Description
-- --------------+--------------------------------------------------------------
-- make install | Install Eigen. Headers will be installed to:
-- |<CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /usr/local
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- make doc | Generate the API documentation, requires Doxygen & LaTeX
-- make check | Build and run the unit-tests. Read this page:
-- | http://eigen.tuxfamily.org/index.php?title=Tests
-- make blas | Build BLAS library (not the same thing as Eigen)
-- make uninstall| Removes files installed by make install
-- --------------+--------------------------------------------------------------
--
-- Fetch pybind11_json for python-json-binding
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311
Building CXX object cimod/CMakeFiles/cxxcimod.dir/main.cpp.o
In file included from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:16,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/attr.h:13,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:44,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11_json-src/include/pybind11_json/pybind11_json.hpp:17,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/cimod/impl.hpp:18,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/cimod/main.cpp:15:
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/internals.h: In function‘pybind11::detail::internals&pybind11::detail::get_internals()’:
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/internals.h:276:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
276 |PyEval_InitThreads();
|~~~~~~~~~~~~~~~~~~^~
In file included from /usr/local/include/python3.11/Python.h:95,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/detail/common.h:112,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pytypes.h:12,
from /tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:13:
/usr/local/include/python3.11/ceval.h:132:37: note: declared here
132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);| ^~~~~~~~~~~~~~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h: In function‘std::stringpybind11::detail::error_string()’:
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
446 |"" + handle(frame->f_code->co_filename).cast<std::string>() +
| ^~
In file included from /usr/local/include/python3.11/Python.h:42:
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:75: error: expected primary-expression before ‘>’ token
446 |"" + handle(frame->f_code->co_filename).cast<std::string>() +
| ^
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:446:77: error: expected primary-expression before ‘)’ token
446 |"" + handle(frame->f_code->co_filename).cast<std::string>() +
| ^
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
448 |handle(frame->f_code->co_name).cast<std::string>() + "\n";
| ^~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:64: error: expected primary-expression before ‘>’ token
448 |handle(frame->f_code->co_name).cast<std::string>() + "\n";
| ^
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:448:66: error: expected primary-expression before ‘)’ token
448 |handle(frame->f_code->co_name).cast<std::string>() + "\n";
| ^
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/cast.h:449:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
449 | frame = frame->f_back;| ^~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h: In function‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2053:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
2053 | PyFrameObject *frame = PyThreadState_Get()->frame;
| ^~~~~
| cframe
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2054:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
2054 |if (frame && (std::string) str(frame->f_code->co_name) == name &&| ^~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2055:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
2055 | frame->f_code->co_argcount > 0) {
| ^~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));| ^~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
In file included from /usr/local/include/python3.11/Python.h:38:
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));| ^~
/usr/local/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
24 |#define _Py_CAST(type, expr) ((type)(expr))| ^~~~
/usr/local/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
30 |#define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])| ^~~~~~~~~~~~~
/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/include/pybind11/pybind11.h:2058:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
2058 | frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));| ^~~~~~~~~~~~~~~~
/usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;| ^~~~~~
gmake[3]: *** [cimod/CMakeFiles/cxxcimod.dir/build.make:76: cimod/CMakeFiles/cxxcimod.dir/main.cpp.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:39241: cimod/CMakeFiles/cxxcimod.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:39274: cimod/CMakeFiles/python.dir/rule] Error 2
gmake: *** [Makefile:17069: python] Error 2
Traceback (most recent call last):
File "<string>", line 2, in<module>
File "<pip-setuptools-caller>", line 34, in<module>
File "/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/setup.py", line 115, in<module>
setup(
File "/usr/local/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 343, in run
self.run_command("build")
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/setup.py", line 42, in run
self.build_extension(ext)
File "/tmp/pip-install-jsp1m516/jij-cimod_378fe24577a045ce814edce69d50c13f/setup.py", line 78, in build_extension
subprocess.check_call(
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'python', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jij-cimod
Running setup.py clean for jij-cimod
Failed to build openjij jij-cimod
ERROR: Could not build wheels for openjij, jij-cimod, which is required to install pyproject.toml-based projects
[notice] A new release of pip is available: 23.1.2 -> 23.2
[notice] To update, run: pip install --upgrade pip
It is expected to install successfully, but this is not the case.
Environment (please complete the following information):
Confirmed on the following operating systems
This may be due to Python 3.11.
This library is not yet compatible with Python 3.11.
If possible, would it be possible for you to try it with Python 3.10?
We will try to get OpenJij and Cimod Python 3.11 support as soon as possible.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
I verified this on docker, but it also occurs in other environments.
docker run -it --rm python bash
apt update && apt install build-essential cmake
pip install openjij
output log
It is expected to install successfully, but this is not the case.
Environment (please complete the following information):
Confirmed on the following operating systems
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: