[Xapian-tickets] [Xapian] #832: Compiling xapian with meson. Strange error in tests.

Xapian nobody at xapian.org
Fri Jul 26 10:38:00 BST 2024


#832: Compiling xapian with meson. Strange error in tests.
--------------------------+-------------------------------
 Reporter:  mgautier      |             Owner:  Olly Betts
     Type:  task          |            Status:  new
 Priority:  normal        |         Milestone:
Component:  Build system  |           Version:
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  All
--------------------------+-------------------------------
Description changed by mgautier:

Old description:

> ass backend only so I concentrate on this only for now.
> - Works only creating static library. Got undefined reference else (both
> linux and windows)
> - Some changes are independents of meson and you probably want them
> anyway (you may find them on the github repository)
>
> But for my issue, even if it seems to work pretty nicely on Linux (static
> lib) but on Windows, tests are broken.
>
> Running test_api, I have some strange behavior. Some tests (qpmemoryleak1
> and newfreelistblock1) fails sometime (with ` FAIL: DatabaseError: Commit
> failed (Permission denied)`) and sometime not. (with multi_glass or glass
> backend).
>
> On top of that, the number of skip tests are not constant.
>
> On libzim side (https://github.com/openzim/libzim) (which use xapian
> build on windows). Our test (xapian creation) always crashes (segfault)
> when compacting the backend database with flag
> `Xapian::Compactor::FULLER`. It never fails without this flag, whatever
> xapian unittest are failing or not.
>
> I am a bit stuck here. I hope that some of you would be able to help me.
>
> ---
>
> For more context, we are already building xapian using autotools on
> windows on appveyor CI (https://github.com/kiwix/kiwix-
> build/blob/main/appveyor/build_xapian.sh). But we are in the process of
> homogenize our build system and I never succeed to build correctly again
> xapian using autotools locally. (spaces in path are a nightmare)
>
> Thanks

New description:

 Hi,

 I am currently trying to compile xapian with meson build system.
 Once done, I plan to either provide a patch here (if you are interested)
 or publish the build system on https://mesonbuild.com/Wrapdb-projects.html

 You can find the current status of xapian with meson here :
 https://github.com/openzim/xapian-meson

 Here few status information (for context):
 - We are interested on glass backend only so I concentrate on this only
 for now.
 - Works only creating static library. Got undefined reference else (both
 linux and windows)
 - Some changes are independents of meson and you probably want them anyway
 (you may find them on the github repository)

 But for my issue, even if it seems to work pretty nicely on Linux (static
 lib) but on Windows, tests are broken.

 Running test_api, I have some strange behavior. Some tests (qpmemoryleak1
 and newfreelistblock1) fails sometime (with ` FAIL: DatabaseError: Commit
 failed (Permission denied)`) and sometime not. (with multi_glass or glass
 backend).

 On top of that, the number of skip tests are not constant.

 On libzim side (https://github.com/openzim/libzim) (which use xapian build
 on windows). Our test (xapian creation) always crashes (segfault) when
 compacting the backend database with flag `Xapian::Compactor::FULLER`. It
 never fails without this flag, whatever xapian unittest are failing or
 not.

 I am a bit stuck here. I hope that some of you would be able to help me.

 ---

 For more context, we are already building xapian using autotools on
 windows on appveyor CI (https://github.com/kiwix/kiwix-
 build/blob/main/appveyor/build_xapian.sh). But we are in the process of
 homogenize our build system and I never succeed to build correctly again
 xapian using autotools locally. (spaces in path are a nightmare)

 Thanks

--
-- 
Ticket URL: <https://trac.xapian.org/ticket/832#comment:4>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list