[issue2551337] xapian doesn't build in CI for 3.13 python

John Rouillard <[email protected]> Sat, 20 Apr 2024 18:41:08 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

Xapain builds under 3.13 are broken. The version of the xapian lib is 1.4.18,
so I am pulling the same version of the source code so it's compatible.
I can't use apt to install the python xapian extension because it puts it
in the OS's python, not in the python I am using to test.

The error is:

...
make  all-am
make[3]: Entering directory '/tmp/xapian-bindings-1.4.18/python3'
depbase=`echo xapian_wrap.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -
I/opt/hostedtoolcache/Python/3.13.0-alpha.6/x64/include/python3.13  -fno-strict-aliasing -Wall 
-Wno-unused -Wno-uninitialized -fvisibility=hidden  -g -O2 -MT xapian_wrap.lo -MD -MP -MF 
$depbase.Tpo -c -o xapian_wrap.lo xapian_wrap.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/hostedtoolcache/Python/3.13.0-
alpha.6/x64/include/python3.13 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -
fvisibility=hidden -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c 
xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
xapian_wrap.cc: In constructor 
‘XapianSWIG_Python_Thread_Block::XapianSWIG_Python_Thread_Block()’:
xapian_wrap.cc:87:13: error: ‘PyEval_ThreadsInitialized’ was not declared in this scope
   87 |         if (PyEval_ThreadsInitialized()) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
xapian_wrap.cc: In constructor 
‘XapianSWIG_Python_Thread_Allow::XapianSWIG_Python_Thread_Allow()’:
xapian_wrap.cc:109:47: error: ‘PyEval_ThreadsInitialized’ was not declared in this scope
  109 |     XapianSWIG_Python_Thread_Allow() : status(PyEval_ThreadsInitialized()) {
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:782: xapian_wrap.lo] Error 1
make[3]: Leaving directory '/tmp/xapian-bindings-1.4.18/python3'
make[2]: *** [Makefile:682: all] Error 2
make[2]: Leaving directory '/tmp/xapian-bindings-1.4.18/python3'
make[1]: *** [Makefile:521: all-recursive] Error 1
make[1]: Leaving directory '/tmp/xapian-bindings-1.4.18'
make: *** [Makefile:443: all] Error 2

xapian is disabled for now on GitHub 3.13 CI testing.

Consider forcing use of 1.4.25 (released 2024-03-07)
https://oligarchy.co.uk/xapian/1.4.25/xapian-bindings-1.4.25.tar.xz
rather than same version of installed library. IIUC all 1.4 should be compatible:
  https://trac.xapian.org/ticket/818 comment 3.

----------
components: Test
messages: 7997
nosy: rouilj
severity: major
status: new
title: xapian doesn't build in CI for 3.13 python
type: behavior

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551337>
_________________________________________________


_______________________________________________
Roundup-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-devel