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
I have a fresh Ubuntu 22.04 install and am trying to install pysap using a conda environment. During the build process I get this error:
In file included from /usr/include/signal.h:328,
from /tmp/pip-install-wveslvrw/python-pysap_13921de5483849278a21db4da4612bd5/build/temp.linux-x86_64-cpython-39/sparse2d/src/sparse2d/tests/catch.hpp:6467,
from /tmp/pip-install-wveslvrw/python-pysap_13921de5483849278a21db4da4612bd5/build/temp.linux-x86_64-cpython-39/sparse2d/src/sparse2d/tests/mr_transform_test.cpp:3:
/tmp/pip-install-wveslvrw/python-pysap_13921de5483849278a21db4da4612bd5/build/temp.linux-x86_64-cpython-39/sparse2d/src/sparse2d/tests/catch.hpp:6490:33: error: size of array ‘altStackMem’ is not
an integral constant-expression
6490 | static char altStackMem[SIGSTKSZ];
| ^~~~~~~~
/tmp/pip-install-wveslvrw/python-pysap_13921de5483849278a21db4da4612bd5/build/temp.linux-x86_64-cpython-39/sparse2d/src/sparse2d/tests/catch.hpp:6541:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6541 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
Hi @ycp21 this should be resolved in the current develop branch as Catch is now an optional dependency for Sparse2D. Please let me know if you still have any problems. We will be releasing a new version of PySAP soon with these changes.
System setup
OS: Ubuntu 22.04
Python version: v3.9.13
Python environment (if any): [e.g.] conda v22.9.0
Describe the bug
I have a fresh Ubuntu 22.04 install and am trying to install pysap using a conda environment. During the build process I get this error:
also reported, eg here: https://stackoverflow.com/questions/71454588/minsigstksz-error-after-update-in-my-manjaro-linux. It seems to be a general problem with glibc v2.34 or higher (I have 2.35). I managed to get it to compile by editing catch.hpp with the horrible hack suggested in the stack overflow link:
But this is clearly not a good long term solution...
To Reproduce
git clone https://github.com/CEA-COSMIC/pysap.git
conda env create -f environment.yml
conda activate pysap
python setup.py install
Are you planning to submit a Pull Request?
The text was updated successfully, but these errors were encountered: