Closed automactic closed 3 years ago
@mgautierfr Might that be linked to new libzim 7.0.0 release?
@automactic Do you still suffer of this bug?
Yes
Hi, I encountered a similar problem. I am running on MacOS. Wondering if anyone found a fix for this.
(kiwix) (base) chris@SMUs-MacBook-Pro-4 kiwix-build % kiwix-build kiwix-lib [INSTALL PACKAGES]
autoconf : NEEDED
- automake : NEEDED
- libtool : NEEDED
- cmake : NEEDED
- pkg-config : NEEDED brew install autoconf automake libtool cmake pkg-config Updating Homebrew... ==> Auto-updated Homebrew! Updated 5 taps (heroku/brew, homebrew/core, homebrew/cask, homebrew/services and mongodb/brew). ==> New Formulae brook go-boring kickstart multitime phpbrew smu enkits haruhi-dl mapcidr mx pure spaceship ==> Updated Formulae Updated 557 formulae. ==> Deleted Formulae atlassian-cli ==> New Casks audacity fabfilter-simplon audius fabfilter-timeless chatterino fabfilter-twin fabfilter-micro fabfilter-volcano fabfilter-one iconscout fabfilter-pro-c katrain fabfilter-pro-ds northernspysoftware-colorpicker fabfilter-pro-g offset-explorer fabfilter-pro-l old-school-runescape fabfilter-pro-mb runelite fabfilter-pro-q sonobus fabfilter-pro-r utterly fabfilter-saturn ==> Updated Casks Updated 465 casks. ==> Deleted Casks craft imazing-mini kafka-tool
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake ==> Downloading https://homebrew.bintray.com/bottles/m4-1.4.18.big_sur.bottle.1. ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0df9083b268f76a3cda0c ######################################################################## 100.0% ==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.71.big_sur.bottl ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0aa64f171bac19ce6ac0c ######################################################################## 100.0% ==> Installing dependencies for autoconf: m4 ==> Installing autoconf dependency: m4 ==> Pouring m4-1.4.18.big_sur.bottle.1.tar.gz ==> Caveats m4 is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble.
If you need to have m4 first in your PATH, run: echo 'export PATH="/usr/local/opt/m4/bin:$PATH"' >> ~/.zshrc
==> Summary 🍺 /usr/local/Cellar/m4/1.4.18: 13 files, 672.3KB ==> Installing autoconf ==> Pouring autoconf-2.71.big_sur.bottle.tar.gz 🍺 /usr/local/Cellar/autoconf/2.71: 71 files, 3.2MB ==> Downloading https://homebrew.bintray.com/bottles/automake-1.16.3_1.big_sur.b ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/11f09c63a49b30078f91b ######################################################################## 100.0% ==> Pouring automake-1.16.3_1.big_sur.bottle.tar.gz 🍺 /usr/local/Cellar/automake/1.16.3_1: 131 files, 3.4MB ==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_3.big_sur.bot ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a70ed5b9d74ec3b06bfc2 ######################################################################## 100.0% ==> Pouring libtool-2.4.6_3.big_sur.bottle.tar.gz ==> Caveats In order to prevent conflicts with Apple's own libtool we have prepended a "g" so, you have instead: glibtool and glibtoolize. ==> Summary 🍺 /usr/local/Cellar/libtool/2.4.6_3: 71 files, 3.7MB ==> Downloading https://homebrew.bintray.com/bottles/cmake-3.20.0.big_sur.bottle ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2009fffc8a892b78728e4 ######################################################################## 100.0% ==> Pouring cmake-3.20.0.big_sur.bottle.tar.gz ==> Caveats Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/cmake ==> Summary 🍺 /usr/local/Cellar/cmake/3.20.0: 6,468 files, 69.5MB ==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.big_sur ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0040b6ebe07f60549800b ######################################################################## 100.0% ==> Pouring pkg-config-0.29.2_3.big_sur.bottle.tar.gz 🍺 /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 656.8KB ==> Caveats ==> m4 m4 is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble.
If you need to have m4 first in your PATH, run: echo 'export PATH="/usr/local/opt/m4/bin:$PATH"' >> ~/.zshrc
==> libtool In order to prevent conflicts with Apple's own libtool we have prepended a "g" so, you have instead: glibtool and glibtoolize. ==> cmake Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/cmake [SETUP PLATFORMS] [PREPARE] prepare sources pugixml : download pugixml : OK (2.5s) extract pugixml : OK (0.1s) patch pugixml : OK (0.0s) prepare sources lzma : download lzma : OK (1.9s) extract lzma : OK (0.2s) prepare sources zstd : download zstd : OK (1.7s) extract zstd : OK (0.3s) patch zstd : OK (0.0s) prepare sources zlib : download zlib : OK (1.5s) extract zlib : OK (0.2s) patch zlib : OK (0.1s) prepare sources xapian-core : download xapian-core : OK (3.2s) extract xapian-core : OK (1.2s) prepare sources icu4c : download icu4c : OK (6.5s) extract icu4c : OK (7.4s) patch icu4c : OK (1.2s) prepare sources libzim : gitinit libzim : OK (6.0s) prepare sources libcurl : download libcurl : OK (3.3s) extract libcurl : OK (1.7s) prepare sources libmicrohttpd : download libmicrohttpd : OK (5.9s) extract libmicrohttpd : OK (0.3s) prepare sources mustache : download mustache : OK (2.6s) extract mustache : OK (0.0s) prepare sources kiwix-lib : gitinit kiwix-lib : OK (3.8s) [BUILD] build pugixml (native_dyn): configure pugixml : OK (2.0s) compile pugixml : OK (5.0s) test pugixml : OK (0.4s) install pugixml : OK (0.6s) build lzma (native_dyn): configure lzma : OK (26.4s) compile lzma : OK (9.4s) install lzma : OK (1.9s) build zstd (native_dyn): configure zstd : OK (4.0s) compile zstd : OK (13.8s) test zstd : OK (0.3s) install zstd : OK (0.3s) build zlib (native_dyn): pre_build_script zlib : OK (0.1s) configure zlib : OK (1.6s) compile zlib : OK (2.5s) install zlib : OK (0.2s) build xapian-core (native_dyn): configure xapian-core : OK (24.3s) compile xapian-core : .OK (57.3s) install xapian-core : OK (2.3s) build icu4c (native_dyn): configure icu4c : OK (10.9s) compile icu4c : ..OK (87.9s) install icu4c : OK (1.8s) build libzim (native_dyn): configure libzim : OK (10.1s) compile libzim : .OK (35.7s) test libzim : ERROR run command 'meson test --verbose -t 8' current directory is '/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/libzim' env is : TERM_PROGRAM : 'Apple_Terminal' SHELL : '/bin/zsh' TERM : 'xterm-256color' TMPDIR : '/var/folders/sj/tzxj3h195x74mhmtp2_0vsfc0000gp/T/' TERM_PROGRAM_VERSION : '440' TERM_SESSION_ID : 'DA1C5B46-F45A-4CFA-9191-6988C14A7197' USER : 'chris' SSH_AUTH_SOCK : '/private/tmp/com.apple.launchd.Q3VNTfl6xE/Listeners' PATH : '/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/bin:/Users/chris/Desktop/Chris/GSoC/kiwix/bin:/Users/chris/.local/bin:/Applications/apache-maven-3.6.3/bin:/Users/chris/anaconda3/bin:/Users/chris/anaconda3/bin:/Users/chris/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/chris/.local/bin:/Applications/VMware Fusion.app/Contents/Public:/Applications/Wireshark.app/Contents/MacOS' __CFBundleIdentifier : 'com.apple.Terminal' PWD : '/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build' XPC_FLAGS : '0x0' XPC_SERVICE_NAME : '0' SHLVL : '1' HOME : '/Users/chris' LOGNAME : 'chris' OLDPWD : '/Users/chris/Desktop/Chris/GSoC/kiwix' CONDA_EXE : '/Users/chris/anaconda3/bin/conda' _CE_M : '' _CE_CONDA : '' CONDA_PYTHON_EXE : '/Users/chris/anaconda3/bin/python' CONDA_SHLVL : '1' CONDA_PREFIX : '/Users/chris/anaconda3' CONDA_DEFAULT_ENV : 'base' CONDA_PROMPT_MODIFIER : '(base) ' VIRTUAL_ENV : '/Users/chris/Desktop/Chris/GSoC/kiwix' PS1 : '(kiwix) (base) %n@%m %1~ %# ' LCCTYPE : 'UTF-8' : '/Users/chris/Desktop/Chris/GSoC/kiwix/bin/kiwix-build' PKG_CONFIG_PATH : ':/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib/pkgconfig' LD_LIBRARY_PATH : ':/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib:/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib' QMAKE_CXXFLAGS : '-I/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/include ' CPPFLAGS : '-I/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/include ' QMAKE_LFLAGS : '-L/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib -L/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib ' LDFLAGS : '-L/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib -L/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/INSTALL/lib ' ninja: Entering directory `/Users/chris/Desktop/Chris/GSoC/kiwix/kiwix-build/BUILD_native_dyn/libzim' ninja: no work to do. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 4 tests from 2 test cases. [----------] Global test environment set-up. [----------] 3 tests from CacheTest [ RUN ] CacheTest.SimplePut [ OK ] CacheTest.SimplePut (0 ms) [ RUN ] CacheTest.OverwritingPut [ OK ] CacheTest.OverwritingPut (0 ms) [ RUN ] CacheTest.MissingValue [ OK ] CacheTest.MissingValue (0 ms) [----------] 3 tests from CacheTest (0 ms total)
[----------] 1 test from CacheTest1 [ RUN ] CacheTest1.KeepsAllValuesWithinCapacity [ OK ] CacheTest1.KeepsAllValuesWithinCapacity (0 ms) [----------] 1 test from CacheTest1 (0 ms total)
[----------] Global test environment tear-down [==========] 4 tests from 2 test cases ran. (0 ms total) [ PASSED ] 4 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 3 tests from 1 test case. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 13 tests from 1 test case. [----------] Global test environment set-up. [----------] 13 tests from ZimArchive [ RUN ] ZimArchive.openingAnInvalidZimArchiveFails Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 7 tests from 1 test case. [----------] Global test environment set-up. [----------] 7 tests from ClusterTest [ RUN ] ClusterTest.create_cluster Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 6 tests from 1 test case. [----------] Global test environment set-up. [----------] Global test environment set-up. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 3 tests from 1 test case. [----------] 3 tests from TemplateTest [----------] 6 tests from DirentTest Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 5 tests from 3 test cases. [ RUN ] TemplateTest.ZeroTemplate [ OK ] ClusterTest.create_cluster (0 ms) [----------] Global test environment set-up. [----------] Global test environment set-up. [ RUN ] ClusterTest.read_write_cluster [ RUN ] DirentTest.set_get_data_dirent [ OK ] TemplateTest.ZeroTemplate (0 ms) [----------] 1 test from ClusterIteratorTest [----------] 3 tests from UuidTest [ RUN ] TemplateTest.Token [ RUN ] ClusterIteratorTest.getEntryByClusterOrder [ OK ] DirentTest.set_get_data_dirent (0 ms) [ RUN ] UuidTest.construct [ OK ] TemplateTest.Token (0 ms) [ RUN ] TemplateTest.Link [ OK ] UuidTest.construct (0 ms) [ RUN ] DirentTest.read_write_article_dirent [ OK ] TemplateTest.Link (0 ms) [----------] 3 tests from TemplateTest (1 ms total)
[----------] Global test environment tear-down [==========] 3 tests from 1 test case ran. (1 ms total) [ PASSED ] 3 tests. [ OK ] ClusterTest.read_write_cluster (0 ms) [ RUN ] ClusterTest.read_write_empty [ RUN ] UuidTest.generate [ OK ] DirentTest.read_write_article_dirent (0 ms) [ RUN ] DirentTest.read_write_article_dirent_unicode Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. [ OK ] ClusterTest.read_write_empty (1 ms) [ RUN ] ClusterTest.read_write_clusterLzma [----------] 2 tests from ZimCreator [ RUN ] ZimCreator.createEmptyZim [ OK ] DirentTest.read_write_article_dirent_unicode (1 ms) [ RUN ] DirentTest.read_write_redirect_dirent Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from HeaderTest [ RUN ] HeaderTest.read_write_header [ OK ] DirentTest.read_write_redirect_dirent (1 ms) [ RUN ] DirentTest.dirent_size [ OK ] HeaderTest.read_write_header (0 ms) [ OK ] ClusterTest.read_write_clusterLzma (3 ms) [ OK ] DirentTest.dirent_size (1 ms) [ OK ] ClusterIteratorTest.getEntryByClusterOrder (2 ms) [ OK ] ZimArchive.openingAnInvalidZimArchiveFails (38 ms) [ RUN ] ClusterTest.read_write_clusterZstd [----------] 1 test from HeaderTest (40 ms total)
[ RUN ] DirentTest.redirect_dirent_size [ RUN ] ZimArchive.openingAnEmptyZimArchiveSucceeds [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (41 ms total) [ PASSED ] 1 test. [----------] 1 test from ClusterIteratorTest (42 ms total)
[----------] 1 test from getEntry [ RUN ] getEntry.indexOutOfRange Resolve redirect set index [ OK ] DirentTest.redirect_dirent_size (1 ms) [----------] 6 tests from DirentTest (44 ms total)
[----------] Global test environment tear-down [==========] 6 tests from 1 test case ran. (44 ms total) [ PASSED ] 6 tests. [ OK ] ZimArchive.openingAnEmptyZimArchiveSucceeds (1 ms) [ RUN ] ZimArchive.nastyEmptyZimArchive [ OK ] getEntry.indexOutOfRange (2 ms) [----------] 1 test from getEntry (2 ms total)
[----------] 3 tests from IteratorTests [ RUN ] IteratorTests.begin [ OK ] IteratorTests.begin (2 ms) [ RUN ] IteratorTests.beginByTitle
[ OK ] IteratorTests.beginByTitle (2 ms) [ OK ] ZimArchive.nastyEmptyZimArchive (34 ms) [ RUN ] IteratorTests.beginByPath [ RUN ] ZimArchive.wrongChecksumInEmptyZimArchive [ OK ] ZimCreator.createEmptyZim (51 ms) [ RUN ] ZimCreator.createZim [ OK ] ZimArchive.wrongChecksumInEmptyZimArchive (1 ms) [ RUN ] ZimArchive.openRealZimArchive [ OK ] IteratorTests.beginByPath (2 ms) [----------] 3 tests from IteratorTests (40 ms total)
[----------] Global test environment tear-down [==========] 5 tests from 3 test cases ran. (85 ms total) [ PASSED ] 5 tests. Resolve redirect Invalid redirection C/foo4 redirecting to (missing) C/NoExistant set index Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 3 tests from 1 test case. [----------] Global test environment set-up. [----------] 3 tests from FileReader [ RUN ] FileReader.shouldJustWork
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:233 offset.v[26] < _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:253 offset.v+size.v[29] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:252 offset.v[30] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:252 offset.v[30] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:64 offset.v[26] < _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:91 offset.v+size.v[29] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:90 offset.v[30] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:90 offset.v[30] <= _size.v[26]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:63 offset.v[26] < source.size().v[26]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:54 offset+offset_t(size.v)[29] <= offset_t(source.size().v)[26]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:53 offset.v[30] <= source.size().v[26]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:53 offset.v[30] <= source.size().v[26] [ OK ] FileReader.shouldJustWork (3 ms) [ RUN ] FileReader.subReader
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:233 offset.v[20] < _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:253 offset.v+size.v[22] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:252 offset.v[30] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:252 offset.v[30] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:64 offset.v[20] < _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:91 offset.v+size.v[22] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:90 offset.v[30] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:90 offset.v[30] <= _size.v[20]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:63 offset.v[20] < source.size().v[20]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:54 offset+offset_t(size.v)[22] <= offset_t(source.size().v)[20]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:53 offset.v[30] <= source.size().v[20]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:53 offset.v[30] <= source.size().v[20] [ OK ] FileReader.subReader (1 ms) [ RUN ] FileReader.zeroReader
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:233 offset.v[0] < _size.v[0]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:253 offset.v+size.v[4] <= _size.v[0]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:64 offset.v[0] < _size.v[0]
Assertion failed at ../../SOURCE/libzim/src/file_reader.cpp:91 offset.v+size.v[4] <= _size.v[0]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:63 offset.v[0] < source.size().v[0]
Assertion failed at ../../SOURCE/libzim/src/buffer_reader.cpp:54 offset+offset_t(size.v)[4] <= offset_t(source.size().v)[0] [ OK ] FileReader.zeroReader (1 ms) [----------] 3 tests from FileReader (5 ms total)
[----------] Global test environment tear-down [==========] 3 tests from 1 test case ran. (5 ms total) [ PASSED ] 3 tests. [ OK ] ClusterTest.read_write_clusterZstd (424 ms) [ RUN ] ClusterTest.read_write_extended_cluster [ OK ] ZimCreator.createZim (470 ms) [----------] 2 tests from ZimCreator (552 ms total)
[----------] Global test environment tear-down [==========] 2 tests from 1 test case ran. (552 ms total) [ PASSED ] 2 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 4 tests from 1 test case. [----------] Global test environment set-up. [----------] 4 tests from FindTests [ RUN ] FindTests.NotFoundByTitle [ OK ] FindTests.NotFoundByTitle (3 ms) [ RUN ] FindTests.NotFoundByPath [ OK ] FindTests.NotFoundByPath (1 ms) [ RUN ] FindTests.ByTitle [ OK ] FindTests.ByTitle (2 ms) [ RUN ] FindTests.ByPath I/s/WBC-Asset-Pencil-Hover.png I/s/WBC-Asset-Pencil.png I/s/ajax-loader.gif I/s/arrow-down-focus-icon.png I/s/arrow-down-icon.png I/s/badge-digitaldocument.png I/s/badge-golden-star.png I/s/badge-problematic.png I/s/badge-proofread.png I/s/badge-silver-star.png I/s/badge-validated.png I/s/bullet-icon.png I/s/cog-sprite.png I/s/external-link-ltr-icon.png I/s/magnify-clip-ltr.png I/s/magnify-clip-rtl.png I/s/page-fade.png I/s/portal-break.png I/s/search-fade.png I/s/search-ltr.png I/s/spinner.gif I/s/tab-break.png I/s/tab-current-fade.png I/s/tab-normal-fade.png I/s/unwatch-icon-hl.png I/s/unwatch-icon.png I/s/user-icon.png I/s/watch-icon-hl.png I/s/watch-icon-loading.png I/s/watch-icon.png I/s/wikibooks.png I/favicon.png I/m/115a35549794e50dcd03e60ef1a1ae24.png I/m/5cffa5d7a0c145a80dee9dc2295d5cdf.png I/s/WBC-Asset-Pencil-Hover.png I/s/WBC-Asset-Pencil.png I/s/ajax-loader.gif I/s/arrow-down-focus-icon.png I/s/arrow-down-icon.png I/s/badge-digitaldocument.png I/s/badge-golden-star.png I/s/badge-problematic.png I/s/badge-proofread.png I/s/badge-silver-star.png I/s/badge-validated.png I/s/bullet-icon.png I/s/cog-sprite.png I/s/external-link-ltr-icon.png I/s/magnify-clip-ltr.png I/s/magnify-clip-rtl.png I/s/page-fade.png I/s/portal-break.png I/s/search-fade.png I/s/search-ltr.png I/s/spinner.gif I/s/tab-break.png I/s/tab-current-fade.png I/s/tab-normal-fade.png I/s/unwatch-icon-hl.png I/s/unwatch-icon.png I/s/user-icon.png I/s/watch-icon-hl.png I/s/watch-icon-loading.png I/s/watch-icon.png I/s/wikibooks.png I/favicon.png I/m/115a35549794e50dcd03e60ef1a1ae24.png I/m/5cffa5d7a0c145a80dee9dc2295d5cdf.png I/s/WBC-Asset-Pencil-Hover.png I/s/WBC-Asset-Pencil.png I/s/ajax-loader.gif I/s/arrow-down-focus-icon.png I/s/arrow-down-icon.png I/s/badge-digitaldocument.png I/s/badge-golden-star.png I/s/badge-problematic.png I/s/badge-proofread.png I/s/badge-silver-star.png I/s/badge-validated.png I/s/bullet-icon.png I/s/cog-sprite.png I/s/external-link-ltr-icon.png I/s/magnify-clip-ltr.png I/s/magnify-clip-rtl.png I/s/page-fade.png I/s/portal-break.png I/s/search-fade.png I/s/search-ltr.png I/s/spinner.gif I/s/tab-break.png I/s/tab-current-fade.png I/s/tab-normal-fade.png I/s/unwatch-icon-hl.png I/s/unwatch-icon.png I/s/user-icon.png I/s/watch-icon-hl.png I/s/watch-icon-loading.png I/s/watch-icon.png I/s/wikibooks.png [ OK ] FindTests.ByPath (3 ms) [----------] 4 tests from FindTests (10 ms total)
[----------] Global test environment tear-down [==========] 4 tests from 1 test case ran. (11 ms total) [ PASSED ] 4 tests. [ OK ] UuidTest.generate (1000 ms) [ RUN ] UuidTest.output [ OK ] UuidTest.output (0 ms) [----------] 3 tests from UuidTest (1000 ms total)
[----------] Global test environment tear-down [==========] 3 tests from 1 test case ran. (1001 ms total) [ PASSED ] 3 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 2 tests from 2 test cases. [----------] Global test environment set-up. [----------] 1 test from CompressionTest/0, where TypeParam = LZMA_INFO [ RUN ] CompressionTest/0.compress [ OK ] CompressionTest/0.compress (192 ms) [----------] 1 test from CompressionTest/0 (194 ms total)
[----------] 1 test from CompressionTest/1, where TypeParam = ZSTD_INFO [ RUN ] CompressionTest/1.compress [ OK ] ZimArchive.openRealZimArchive (1390 ms) [ RUN ] ZimArchive.randomEntry [ OK ] ZimArchive.randomEntry (20 ms) [ RUN ] ZimArchive.validate [ OK ] ZimArchive.validate (6 ms) [ RUN ] ZimArchive.multipart [ OK ] ZimArchive.multipart (36 ms) [ RUN ] ZimArchive.openByFD No steemming for language '=en' No steemming for language '=en' [ OK ] ZimArchive.openByFD (3 ms) [ RUN ] ZimArchive.openZIMFileEmbeddedInAnotherFile No steemming for language '=en' No steemming for language '=en' [ OK ] ZimArchive.openZIMFileEmbeddedInAnotherFile (4 ms) [ RUN ] ZimArchive.getDirectAccessInformation [ OK ] ZimArchive.getDirectAccessInformation (1 ms) [ RUN ] ZimArchive.getDirectAccessInformationInAnArchiveOpenedByFD [ OK ] ZimArchive.getDirectAccessInformationInAnArchiveOpenedByFD (2 ms) [ RUN ] ZimArchive.getDirectAccessInformationFromEmbeddedArchive [ OK ] ZimArchive.getDirectAccessInformationFromEmbeddedArchive (1 ms) [----------] 13 tests from ZimArchive (1550 ms total)
[----------] Global test environment tear-down [==========] 13 tests from 1 test case ran. (1550 ms total) [ PASSED ] 13 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 5 tests from 2 test cases. [----------] Global test environment set-up. [----------] 3 tests from NamespaceTest [ RUN ] NamespaceTest.BeginOffset [ OK ] NamespaceTest.BeginOffset (0 ms) [ RUN ] NamespaceTest.EndOffset [ OK ] NamespaceTest.EndOffset (0 ms) [ RUN ] NamespaceTest.EndEqualStartPlus1 ns: |32 ns: !|33 ns: "|34 ns: #|35 ns: $|36 ns: %|37 ns: &|38 ns: '|39 ns: (|40 ns: )|41 ns: *|42 ns: +|43 Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. ns: ,|44 [----------] 2 tests from IStreamReader ns: -|45 ns: .|46 ns: /|47 ns: 0|48 [ RUN ] IStreamReader.read ns: 1|49 [ OK ] IStreamReader.read (0 ms) ns: 2|50 [ RUN ] IStreamReader.sub_reader ns: 3|51 ns: 4|52 ns: 5|53 [ OK ] IStreamReader.sub_reader (0 ms) ns: 6|54 [----------] 2 tests from IStreamReader (0 ms total)
ns: 7|55 [----------] Global test environment tear-down ns: 8|56 [==========] 2 tests from 1 test case ran. (0 ms total) [ PASSED ] 2 tests. ns: 9|57 ns: :|58 ns: ;|59 ns: <|60 ns: =|61 ns: >|62 ns: ?|63 ns: @|64 ns: A|65 ns: B|66 ns: C|67 ns: D|68 ns: E|69 ns: F|70 ns: G|71 ns: H|72 ns: I|73 ns: J|74 ns: K|75 ns: L|76 ns: M|77 ns: N|78 ns: O|79 ns: P|80 ns: Q|81 ns: R|82 ns: S|83 ns: T|84 ns: U|85 ns: V|86 ns: W|87 ns: X|88 ns: Y|89 ns: Z|90 ns: [|91 ns: |92 ns: ]|93 ns: ^|94 ns: _|95 ns: `|96 ns: a|97 ns: b|98 ns: c|99 ns: d|100 ns: e|101 ns: f|102 ns: g|103 ns: h|104 ns: i|105 ns: j|106 ns: k|107 ns: l|108 ns: m|109 ns: n|110 ns: o|111 ns: p|112 ns: q|113 ns: r|114 ns: s|115 ns: t|116 ns: u|117 ns: v|118 ns: w|119 ns: x|120 ns: y|121 ns: z|122 ns: {|123 ns: ||124 ns: }|125 ns: ~|126 [ OK ] NamespaceTest.EndEqualStartPlus1 (5 ms) [----------] 3 tests from NamespaceTest (6 ms total)
[----------] 2 tests from FindxTest [ RUN ] FindxTest.ExactMatch [ OK ] FindxTest.ExactMatch (0 ms) [ RUN ] FindxTest.NoExactMatch [ OK ] FindxTest.NoExactMatch (0 ms) [----------] 2 tests from FindxTest (0 ms total)
[----------] Global test environment tear-down [==========] 5 tests from 2 test cases ran. (6 ms total) [ PASSED ] 5 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 4 tests from 2 test cases. [----------] Global test environment set-up. [----------] 2 tests from DecoderStreamReaderTest/0, where TypeParam = LZMA_INFO [ RUN ] DecoderStreamReaderTest/0.justCompressedData [ OK ] DecoderStreamReaderTest/0.justCompressedData (4 ms) [ RUN ] DecoderStreamReaderTest/0.compressedDataFollowedByGarbage [ OK ] DecoderStreamReaderTest/0.compressedDataFollowedByGarbage (42 ms) [----------] 2 tests from DecoderStreamReaderTest/0 (46 ms total)
[----------] 2 tests from DecoderStreamReaderTest/1, where TypeParam = ZSTD_INFO [ RUN ] DecoderStreamReaderTest/1.justCompressedData Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from ReaderDataStreamWrapper [ RUN ] ReaderDataStreamWrapper.shouldJustWork [ OK ] ReaderDataStreamWrapper.shouldJustWork (0 ms) [----------] 1 test from ReaderDataStreamWrapper (0 ms total)
[----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (0 ms total) [ PASSED ] 1 test. [ OK ] DecoderStreamReaderTest/1.justCompressedData (357 ms) [ RUN ] DecoderStreamReaderTest/1.compressedDataFollowedByGarbage Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from BufferStreamer [ RUN ] BufferStreamer.shouldJustWork [ OK ] BufferStreamer.shouldJustWork (0 ms) [----------] 1 test from BufferStreamer (0 ms total)
[----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (0 ms total) [ PASSED ] 1 test. [ OK ] DecoderStreamReaderTest/1.compressedDataFollowedByGarbage (380 ms) [----------] 2 tests from DecoderStreamReaderTest/1 (765 ms total)
[----------] Global test environment tear-down [==========] 4 tests from 2 test cases ran. (811 ms total) [ PASSED ] 4 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. [----------] 2 tests from ParseLongPathTest [ RUN ] ParseLongPathTest.invalid [ OK ] ParseLongPathTest.invalid (0 ms) [ RUN ] ParseLongPathTest.valid [ OK ] ParseLongPathTest.valid (0 ms) [----------] 2 tests from ParseLongPathTest (0 ms total)
[----------] Global test environment tear-down [==========] 2 tests from 1 test case ran. (3 ms total) [ PASSED ] 2 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. [----------] 2 tests from Random [ RUN ] Random.smallMax [ OK ] Random.smallMax (1 ms) [ RUN ] Random.distribution [ OK ] Random.distribution (58 ms) [----------] 2 tests from Random (59 ms total)
[----------] Global test environment tear-down [==========] 2 tests from 1 test case ran. (59 ms total) [ PASSED ] 2 tests. Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from Search [ RUN ] Search.searchByTitle No steemming for language '=en' [ OK ] Search.searchByTitle (3 ms) [----------] 1 test from Search (3 ms total)
[----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (33 ms total) [ PASSED ] 1 test. unknown file: Failure C++ exception with description "Cannot read" thrown in the test body. [ FAILED ] ClusterTest.read_write_extended_cluster (3523 ms) [ RUN ] ClusterTest.read_extended_cluster [ OK ] ClusterTest.read_extended_cluster (1 ms) [----------] 7 tests from ClusterTest (3991 ms total)
[----------] Global test environment tear-down [==========] 7 tests from 1 test case ran. (3991 ms total) [ PASSED ] 6 tests. [ FAILED ] 1 test, listed below: [ FAILED ] ClusterTest.read_write_extended_cluster
1 FAILED TEST Running main() from ../../SOURCE/libzim/subprojects/googletest-release-1.8.1/googletest/src/gtest_main.cc [==========] Running 13 tests from 1 test case. [----------] Global test environment set-up. [----------] 13 tests from Suggestion [ RUN ] Suggestion.emptyQuery Resolve redirect set index [ OK ] CompressionTest/1.compress (3179 ms) [----------] 1 test from CompressionTest/1 (3179 ms total)
[----------] Global test environment tear-down [==========] 2 tests from 2 test cases ran. (3455 ms total) [ PASSED ] 2 tests. Setup queryparser using language en Mark query as 'partial' Parsed query '' to Query() [ OK ] Suggestion.emptyQuery (412 ms) [ RUN ] Suggestion.noResult Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'none' to Query((((WILDCARD SYNONYM none OR Znone@1) OR Znone) OR (0posanchor PHRASE 2 none))) [ OK ] Suggestion.noResult (380 ms) [ RUN ] Suggestion.singleTermOrder Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'berlin' to Query((((WILDCARD SYNONYM berlin OR Zberlin@1) OR Zberlin) OR (0posanchor PHRASE 2 berlin))) berlin100 berlin wall99 hotel berlin, berlin69 again berlin69 not berlin69 [ OK ] Suggestion.singleTermOrder (377 ms) [ RUN ] Suggestion.resultsGreaterThanLimit Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'foobar' to Query((((WILDCARD SYNONYM foobar OR Zfoobar@1) OR Zfoobar) OR (0posanchor PHRASE 2 foobar))) foobar a100 foobar b100 [ OK ] Suggestion.resultsGreaterThanLimit (383 ms) [ RUN ] Suggestion.partialQuery Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'Wo' to Query((((WILDCARD SYNONYM wo OR wo@1) OR wo) OR (0posanchor PHRASE 2 wo))) Wolf20 Hour of the wolf19 The wolf of Shingashina19 The wolf of Wall Street19 Terma termb the wolf of wall street termc19 [ OK ] Suggestion.partialQuery (363 ms) [ RUN ] Suggestion.phraseOrder Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'winter autumn summer' to Query((((Zwinter@1 AND Zautumn@2 AND (WILDCARD SYNONYM summer OR Zsummer@3)) OR (winter PHRASE 3 autumn PHRASE 3 summer)) OR (0posanchor PHRASE 4 winter PHRASE 4 autumn PHRASE 4 summer))) winter autumn summer terma100 autumn summer winter36 summer winter autumn36 [ OK ] Suggestion.phraseOrder (363 ms) [ RUN ] Suggestion.incrementalSearch Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'Wolf' to Query((((WILDCARD SYNONYM wolf OR wolf@1) OR wolf) OR (0posanchor PHRASE 2 wolf))) Wolf100 Hour of the wolf69 The wolf among sheeps69 The wolf of Shingashina69 The wolf of Wall Street69 The wolf of Wall Street Book69 Terma termb the wolf of wall street termc69 Setup queryparser using language en Mark query as 'partial' Parsed query 'the' to Query((((WILDCARD SYNONYM the OR Zthe@1) OR Zthe) OR (0posanchor PHRASE 2 the))) The chocolate factory100 The wolf among sheeps99 The wolf of Shingashina99 The wolf of Wall Street99 The wolf of Wall Street Book99 Hour of the wolf69 Terma termb the wolf of wall street termc69 Setup queryparser using language en Mark query as 'partial' Parsed query 'the wolf' to Query((((Zthe@1 AND (WILDCARD SYNONYM wolf OR Zwolf@2)) OR (the PHRASE 2 wolf)) OR (0posanchor PHRASE 3 the PHRASE 3 wolf))) The wolf among sheeps100 The wolf of Shingashina100 The wolf of Wall Street99 The wolf of Wall Street Book99 Hour of the wolf68 Terma termb the wolf of wall street termc68 Setup queryparser using language en Mark query as 'partial' Parsed query 'the wolf of' to Query((((Zthe@1 AND Zwolf@2 AND (WILDCARD SYNONYM of OR Zof@3)) OR (the PHRASE 3 wolf PHRASE 3 of)) OR (0posanchor PHRASE 4 the PHRASE 4 wolf PHRASE 4 of))) The wolf of Shingashina100 The wolf of Wall Street99 The wolf of Wall Street Book99 Terma termb the wolf of wall street termc70 Hour of the wolf43 Setup queryparser using language en Mark query as 'partial' Parsed query 'the wolf of wall' to Query((((Zthe@1 AND Zwolf@2 AND Zof@3 AND (WILDCARD SYNONYM wall OR Zwall@4)) OR (the PHRASE 4 wolf PHRASE 4 of PHRASE 4 wall)) OR (0posanchor PHRASE 5 the PHRASE 5 wolf PHRASE 5 of PHRASE 5 wall))) The wolf of Wall Street100 The wolf of Wall Street Book99 Terma termb the wolf of wall street termc71 [ OK ] Suggestion.incrementalSearch (338 ms) [ RUN ] Suggestion.phraseOutOfWindow Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'the dummy query' to Query((((Zthe@1 AND Zdummi@2 AND (WILDCARD SYNONYM query OR Zqueri@3)) OR (the PHRASE 3 dummy PHRASE 3 query)) OR (0posanchor PHRASE 4 the PHRASE 4 dummy PHRASE 4 query))) This is the dummy query phrase63 aterm the bterm dummy query cterm33 the aterm bterm dummy cterm query33 [ OK ] Suggestion.phraseOutOfWindow (336 ms) [ RUN ] Suggestion.checkStopword Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'she and the apple' to Query((((Zshe@1 AND Zand@2 AND Zthe@3 AND (WILDCARD SYNONYM apple OR Zappl@4)) OR (she PHRASE 4 and PHRASE 4 the PHRASE 4 apple)) OR (0posanchor PHRASE 5 she PHRASE 5 and PHRASE 5 the PHRASE 5 apple))) she and the apple100 [ OK ] Suggestion.checkStopword (335 ms) [ RUN ] Suggestion.checkRedirectionCollapse Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'Article' to Query((((WILDCARD SYNONYM article OR article@1) OR article) OR (0posanchor PHRASE 2 article))) Article Target100 [ OK ] Suggestion.checkRedirectionCollapse (327 ms) [ RUN ] Suggestion.checkRedirectionChain Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'Article' to Query((((WILDCARD SYNONYM article OR article@1) OR article) OR (0posanchor PHRASE 2 article))) Article Target100 Article Redirect 299 [ OK ] Suggestion.checkRedirectionChain (333 ms) [ RUN ] Suggestion.diffArticleSameTitle Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'Test Article' to Query((((test@1 AND (WILDCARD SYNONYM article OR article@2)) OR (test PHRASE 2 article)) OR (0posanchor PHRASE 3 test PHRASE 3 article))) Test Article100 Test Article100 [ OK ] Suggestion.diffArticleSameTitle (341 ms) [ RUN ] Suggestion.anchorQueryToBeginning Resolve redirect set index Setup queryparser using language en Mark query as 'partial' Parsed query 'This is a title' to Query((((this@1 AND Zis@2 AND Za@3 AND (WILDCARD SYNONYM title OR Ztitl@4)) OR (this PHRASE 4 is PHRASE 4 a PHRASE 4 title)) OR (0posanchor PHRASE 5 this PHRASE 5 is PHRASE 5 a PHRASE 5 title))) this is a title aterm bterm cterm100 aterm bterm this is a title cterm64 aterm this is a title bterm cterm64 [ OK ] Suggestion.anchorQueryToBeginning (337 ms) [----------] 13 tests from Suggestion (4625 ms total)
[----------] Global test environment tear-down [==========] 13 tests from 1 test case ran. (4625 ms total) [ PASSED ] 13 tests. 1/21 lrucache OK 0.34 s 2/21 cluster FAIL 9.06 s (exit status 1) 3/21 creator OK 5.60 s 4/21 dirent OK 5.11 s 5/21 header OK 5.06 s 6/21 uuid OK 6.05 s 7/21 template OK 5.06 s 8/21 archive OK 6.59 s 9/21 iterator OK 4.79 s 10/21 reader OK 0.38 s 11/21 find OK 0.69 s 12/21 compression OK 4.44 s 13/21 dirent_lookup OK 2.03 s 14/21 istreamreader OK 1.71 s 15/21 decoderstreamreader OK 2.64 s 16/21 rawstreamreader OK 1.91 s 17/21 bufferstreamer OK 1.97 s 18/21 parseLongPath OK 1.71 s 19/21 random OK 1.57 s 20/21 search OK 1.82 s 21/21 suggestion OK 6.31 s
Ok: 20 Expected Fail: 0 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Stopping build due to errors
This ticket is one of the last blocker to release libzim7.0.0 and we need to close it.
@mgautierfr This scenario seems not tested in Kiwix Build CI (we only test iOS compilation on macOS), so this might explain why we don't see failing.
@automactic @christopherlim98 The root cause is still unclear to me.The only idea I have is that for some reason the user running the test does not have enough filesystem permission to access/read/write the directory chosen to write a temporary test file. in #601 I have extended the error message so it is now printing the fullpath of the problematic file. Would you be able please to test again and check where this tmpfile is written and if the current user can really write/read such a file in this directory?
The falling test is probably https://github.com/openzim/libzim/blob/master/test/cluster.cpp#L225-L273 It is skipped on 32bits arch and on CI (because it use a too much memory). This test is creating a file >4Gb.
Can you test with the branch https://github.com/openzim/libzim/tree/fix_write_to_buffer on your side ?
@mgautierfr Hey, looks like this new branch is working
I'm getting this error in the current master. Can you take another look at it? Thank you.
@lizfrank can you please open a new ticket and put your own details and logs?
Yes, I just created issue #631. I can provide more logs or system information if needed. Thank you.
Hey hey, I got an error when kiwix-build is testing libkiwix after build. Interestingly, it only fails when targeting native (both static and dynamic), it was successful when building against iOS.
Here are the logs: