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

Fails to build on Python 3.11 - longintrepr.h: No such file or directory #174

Closed
ogajduse opened this issue Jun 7, 2022 · 1 comment
Closed

Comments

@ogajduse
Copy link

ogajduse commented Jun 7, 2022

Bug report

Steps to reproduce:

1, dnf install python3.11-devel
2. mkvirtualenv ssh2-python-py311 --py 3.11 && workon ssh2-python-py311
3. pip install ssh2-python

Expected behaviour: ssh2-python should be installable on Python 3.11

Actual behaviour: Installation does not succeed, gcc throws an error.

Additional info:
ssh2-python-0.27.0
python3.11-devel-3.11.0~b3-1.fc35.x86_64
cmake-3.22.2-1.fc35.x86_64
gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)

Seems that not only this package is affected by this issue, see aio-libs/aiohttp#6600

Log snippet

gcc -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh2/include -I/home/ogajduse/.virtualenvs/ssh2-python-py311/include -I/usr/include/python3.11 -c ssh2/ext/find_eol.c -o build/temp.linux-x86_64-3.11/ssh2/ext/find_eol.o -O2
    gcc -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh2/include -I/home/ogajduse/.virtualenvs/ssh2-python-py311/include -I/usr/include/python3.11 -c ssh2/utils.c -o build/temp.linux-x86_64-3.11/ssh2/utils.o -O2
    ssh2/utils.c:198:12: fatal error: longintrepr.h: No such file or directory
      198 |   #include "longintrepr.h"
          |            ^~~~~~~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/gcc' failed with exit code 1
@pkittenis
Copy link
Member

Hi there,

Thanks for the interest and report.

Development versions of Python are not supported. Support will be offered once 3.11 is released.

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

No branches or pull requests

2 participants