longintrepr.h missing (s3ql 4.0.0 with Python 3.11)

5,367 views
Skip to first unread message

Brian Hill

unread,
Dec 5, 2022, 2:50:58 PM12/5/22
to s3...@googlegroups.com
Hello,

Is there a simple fix to this problem when bulding s3ql 4.0.0 with Python 3.11?

$ python3 setup.py build_ext --inplace
running build_ext
building 's3ql.deltadump' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/include/openssl11 -fPIC -I/opt/python/3.11.0/include/python3.11 -c src/s3ql/deltadump.c -o build/temp.linux-x86_64-cpython-311/src/s3ql/deltadump.o -Wall -Wextra -Wconversion -Wsign-compare
src/s3ql/deltadump.c:196:27: fatal error: longintrepr.h: No such file or directory
   #include "longintrepr.h"
                           ^
compilation terminated.
error: command '/bin/gcc' failed with exit code 1

Brian

Daniel Jagszent

unread,
Dec 5, 2022, 4:19:53 PM12/5/22
to s3...@googlegroups.com
Hello Brian,

Is there a simple fix to this problem when bulding s3ql 4.0.0 with Python 3.11? [...]

looks like you need at least Cython Version 0.29.25 for Python 3.11.
https://github.com/cython/cython/commit/0f7bd0d1b159d085f321cc32a3f6ade24844e545

Brian Hill

unread,
Dec 6, 2022, 11:01:37 PM12/6/22
to s3ql
Cython is up to version 0.29.32 (at least for Python 3.11). That wasn't working. I just tried downgrading to 0.29.25, but that yielded the same error.

Nikolaus Rath

unread,
Dec 7, 2022, 4:13:07 AM12/7/22
to noreply-spamdigest via s3ql
Do you have Python development headers installed? That's where I get the file from:

nikratio@vostro ~> dpkg -S longintrepr.h
libpython3.9-dev:amd64: /usr/include/python3.9/longintrepr.h


Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


jos...@maher.org.uk

unread,
Jul 7, 2023, 12:06:42 PM7/7/23
to s3ql

On Wednesday, December 7, 2022 at 4:13:07 AM UTC-5 Nikolaus Rath wrote:
On Wed, 7 Dec 2022, at 04:01, Brian Hill wrote:
Cython is up to version 0.29.32 (at least for Python 3.11). That wasn't working. I just tried downgrading to 0.29.25, but that yielded the same error.

On Monday, December 5, 2022 at 1:19:53 PM UTC-8 dan...@jagszent.de wrote:
Hello Brian,


Is there a simple fix to this problem when bulding s3ql 4.0.0 with Python 3.11? [...]

looks like you need at least Cython Version 0.29.25 for Python 3.11.

Do you have Python development headers installed? That's where I get the file from:

nikratio@vostro ~> dpkg -S longintrepr.h
libpython3.9-dev:amd64: /usr/include/python3.9/longintrepr.h

Wonderful to have you back Nikolaus!

In python3.11 longintepr.h got moved, it's now in /usr/include/python3.11/cpython/longintrepr.h

Is there an easy fix for this?

Joseph

Nikolaus Rath

unread,
Jul 10, 2023, 10:59:42 AM7/10/23
to noreply-spamdigest via s3ql


On Fri, 7 Jul 2023, at 17:06, 'jos...@maher.org.uk' via s3ql wrote:


In python3.11 longintepr.h got moved, it's now in /usr/include/python3.11/cpython/longintrepr.h

Is there an easy fix for this?

Running `setup.py build_cython` (with a recent Cython installed) should fix this.

Best,
-Nikolaus

jos...@maher.org.uk

unread,
Jul 10, 2023, 4:14:33 PM7/10/23
to s3ql
Great - thanks ever so much!

Joseph
Reply all
Reply to author
Forward
0 new messages