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

[INSTALLATION ERROR] glibc version 2.34+ breaks sparse2d compile #182

Open
1 of 2 tasks
ycp21 opened this issue Nov 18, 2022 · 2 comments
Open
1 of 2 tasks

[INSTALLATION ERROR] glibc version 2.34+ breaks sparse2d compile #182

ycp21 opened this issue Nov 18, 2022 · 2 comments
Assignees
Labels
installation installation issues

Comments

@ycp21
Copy link

ycp21 commented Nov 18, 2022

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:

      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] = {};  
            |                                             ^~~~~~~~  

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:

#undef SIGSTKSZ  
#define SIGSTKSZ 16384

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?

  • Yes
  • No
@ycp21 ycp21 added the installation installation issues label Nov 18, 2022
@sfarrens sfarrens self-assigned this Nov 18, 2022
@sfarrens
Copy link
Contributor

Thanks @ycp21 for opening the issue. I am working on a new release for the end of the year, I will investigate and try to include a solution for this.

@sfarrens
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation installation issues
Projects
None yet
Development

No branches or pull requests

2 participants