Open
Description
Quoting the issue created in /qdldl repo - osqp/qdldl#61. My existing cmake & osqp versions are as mentioned below
bash-5.1# pip list installed | grep cmake
WARNING: The directory '/var/lib/mysql/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
cmake 3.31.6
bash-5.1# pip list installed | grep qdldl
WARNING: The directory '/var/lib/mysql/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
bash-5.1# pip list installed | grep osqp
WARNING: The directory '/var/lib/mysql/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
osqp 1.0.3
when trying to do pip install qdldl==0.1.7.post5
facing below errors
bash-5.1# pip install qdldl==0.1.7.post5
WARNING: The directory '/var/lib/mysql/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting qdldl==0.1.7.post5
Downloading qdldl-0.1.7.post5.tar.gz (73 kB)
|████████████████████████████████| 73 kB 3.1 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.7 in /usr/local/lib64/python3.9/site-packages (from qdldl==0.1.7.post5) (1.24.2)
Requirement already satisfied: scipy>=0.13.2 in /usr/local/lib64/python3.9/site-packages (from qdldl==0.1.7.post5) (1.13.1)
Building wheels for collected packages: qdldl
Building wheel for qdldl (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp_nc21c_o
cwd: /tmp/pip-install-nt8u5lfb/qdldl_fe462bacfd8c46fca9a3c380f2a32918
Complete output (47 lines):
running bdist_wheel
running build
running build_ext
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- The C compiler identification is GNU 11.5.0
-- The CXX compiler identification is GNU 11.5.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
CMake Error at qdldl/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.
building 'qdldl' extension
creating build/temp.linux-s390x-cpython-39/cpp
g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ic -Ic/qdldl/include -I/tmp/pip-build-env-fb4rpxno/overlay/lib/python3.9/site-packages/pybind11/include -I/tmp/pip-build-env-fb4rpxno/overlay/lib/python3.9/site-packages/pybind11/include -I/usr/include/python3.9 -c cpp/qdldl.cpp -o build/temp.linux-s390x-cpython-39/cpp/qdldl.o -O3 -std=c++11
In file included from cpp/qdldl.hpp:2,
from cpp/qdldl.cpp:1:
c/qdldl/include/qdldl.h:5:10: fatal error: qdldl_types.h: No such file or directory
5 | #include "qdldl_types.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/g++' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for qdldl
Failed to build qdldl
ERROR: Could not build wheels for qdldl, which is required to install pyproject.toml-based projects
but i checked the CMakelists.txt of the latest qdldl-python and it shows 3.5 version as cmake_minimum_required
Unsure of the problem here. Any suggestion?
Metadata
Metadata
Assignees
Labels
No labels