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

[BUG] longintrepr.h not found #4461

Closed
ericsnowcurrently opened this issue Nov 9, 2021 · 1 comment
Closed

[BUG] longintrepr.h not found #4461

ericsnowcurrently opened this issue Nov 9, 2021 · 1 comment

Comments

@ericsnowcurrently
Copy link

Describe the bug

An extension using Cython with CPython main won't build:

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O0 -fPIC -I/home/esnow/projects/work/cpython-perf/uvloop/uvloop-dev-3.11/include -I/home/esnow/projects/work/cpython-perf/cpython/Include -I/home/esnow/projects/work/cpython-perf/cpython -c aiohttp/_websocket.c -o build/temp.linux-x86_64-3.11/aiohttp/_websocket.o
  aiohttp/_websocket.c:198:12: fatal error: longintrepr.h: No such file or directory
     #include "longintrepr.h"
              ^~~~~~~~~~~~~~~

To Reproduce

Try to build https://github.com/MagicStack/uvloop.

Environment (please complete the following information):

  • OS: Linux
  • Python version 3.11.0 (pre-alpha)
  • Cython version 0.29.24

Additional context

About a month ago, Include/longintrepr.h was moved to Include/cpython/longintrepr.h. See python/cpython#28968 (https://bugs.python.org/issue35134).

@ericsnowcurrently
Copy link
Author

Looks like this was already fixed in #4428.

etal added a commit to etal/cnvkit that referenced this issue Feb 22, 2023
Configure a CI workflow based on tox.

Install the R package DNAcopy differently on Linux and Mac OS:
- Linux: apt for compiled dependencies and DNAcopy
- macOS: brew for dependencies, then callR.org for DNAcopy

Some matrix options are left commented out:
- Python 3.11: upstream issue cython/cython#4461 prevents pysam and pomegranate from compiling
- Latest Python `-min`: known runtime failure due to numpy compiled-for-xyz binary incompatility
- Typing: mypy runs successfully and reports known errors; CNVkit codebase needs an overhaul

Python 3.11 and Typing configs are still available in tox.ini for local testing.
nedko added a commit to LADI/os-gentoo-overlay that referenced this issue May 2, 2023
../jack_mixer-17/src/_jack_mixer.c:198:12: fatal error: longintrepr.h: No such file or directory
  198 |   #include longintrepr.h
      |            ^~~~~~~~~~~~~~~
compilation terminated.

See also: cython/cython#4461

By not using tarball, src/_jack_mixer.c is always generated with proper version of cython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants