===> libzim-0cipiertest depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by libzim-0cipiertest for building ===> Extracting for libzim-0cipiertest => SHA256 Checksum OK for openzim-libzim-0cipiertest_GH0.tar.gz. ===> Patching for libzim-0cipiertest ===> libzim-0cipiertest depends on executable: meson - found ===> libzim-0cipiertest depends on executable: ninja - found ===> libzim-0cipiertest depends on package: pkgconf>=1.3.0_1 - found ===> libzim-0cipiertest depends on shared library: libicui18n.so - found (/usr/local/lib/libicui18n.so) ===> libzim-0cipiertest depends on shared library: libxapian.so - found (/usr/local/lib/libxapian.so) ===> Configuring for libzim-0cipiertest The Meson build system Version: 0.42.1 Source dir: /wrkdirs/libzim-0cipiertest-port/work/libzim-0cipiertest Build dir: /wrkdirs/libzim-0cipiertest-port/work/libzim-0cipiertest/_build Build type: native build Project name: libzim Native C compiler: cc (clang 4.0.0) Appending CFLAGS from environment: '-O2 -pipe -fstack-protector -fno-strict-aliasing' Appending LDFLAGS from environment: ' -fstack-protector' Native C++ compiler: c++ (clang 4.0.0) Appending CXXFLAGS from environment: '-O2 -pipe -fstack-protector -fno-strict-aliasing' Appending LDFLAGS from environment: ' -fstack-protector' Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/local/bin/pkgconf (1.3.7) Native dependency zlib found: YES 1.2.10 Native dependency liblzma found: YES 5.2.3 Native dependency xapian-core found: YES 1.4.4 Dependency threads found: YES Native dependency icu-i18n found: YES 59.1 Configuring config.h using configuration Dependency GTest found: NO Executing subproject gtest. Project name: gtest Native C++ compiler: c++ (clang 4.0.0) Build targets in project: 2 Subproject gtest finished. Found a fallback subproject subprojects/gtest for gtest Build targets in project: 7 ===> Building for libzim-0cipiertest [1/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/articlesource.cpp.o' -MF 'src/zim@sha/articlesource.cpp.o.d' -o 'src/zim@sha/articlesource.cpp.o' -c ../src/articlesource.cpp [2/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/dirent.cpp.o' -MF 'src/zim@sha/dirent.cpp.o.d' -o 'src/zim@sha/dirent.cpp.o' -c ../src/dirent.cpp [3/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/cluster.cpp.o' -MF 'src/zim@sha/cluster.cpp.o.d' -o 'src/zim@sha/cluster.cpp.o' -c ../src/cluster.cpp [4/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/article.cpp.o' -MF 'src/zim@sha/article.cpp.o.d' -o 'src/zim@sha/article.cpp.o' -c ../src/article.cpp [5/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/envvalue.cpp.o' -MF 'src/zim@sha/envvalue.cpp.o.d' -o 'src/zim@sha/envvalue.cpp.o' -c ../src/envvalue.cpp [6/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/fileheader.cpp.o' -MF 'src/zim@sha/fileheader.cpp.o.d' -o 'src/zim@sha/fileheader.cpp.o' -c ../src/fileheader.cpp [7/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file.cpp.o' -MF 'src/zim@sha/file.cpp.o.d' -o 'src/zim@sha/file.cpp.o' -c ../src/file.cpp [8/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file_part.cpp.o' -MF 'src/zim@sha/file_part.cpp.o.d' -o 'src/zim@sha/file_part.cpp.o' -c ../src/file_part.cpp [9/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file_compound.cpp.o' -MF 'src/zim@sha/file_compound.cpp.o.d' -o 'src/zim@sha/file_compound.cpp.o' -c ../src/file_compound.cpp FAILED: src/zim@sha/file_compound.cpp.o c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file_compound.cpp.o' -MF 'src/zim@sha/file_compound.cpp.o.d' -o 'src/zim@sha/file_compound.cpp.o' -c ../src/file_compound.cpp In file included from ../src/file_compound.cpp:20: ../src/file_compound.h:51:5: error: unknown type name 'time_t' time_t getMTime() const; ^ ../src/file_compound.h:61:13: error: unknown type name 'time_t' mutable time_t mtime; ^ ../src/file_compound.h:52:32: error: cannot initialize object parameter of type 'const std::__1::map > >' with an expression of type 'const zim::FileCompound' bool fail() const { return empty(); }; ^~~~~ ../src/file_compound.h:53:40: error: cannot initialize object parameter of type 'const std::__1::map > >' with an expression of type 'const zim::FileCompound' bool is_multiPart() const { return size() > 1; }; ^~~~ ../src/file_compound.h:56:16: error: no matching member function for call to 'equal_range' return equal_range(Range(offset, offset+size)); ^~~~~~~~~~~ /usr/include/c++/v1/map:1279:29: note: candidate function not viable: no known conversion from 'const zim::FileCompound' to 'std::__1::map > >' for object argument pair equal_range(const key_type& __k) ^ /usr/include/c++/v1/map:1282:41: note: candidate function not viable: no known conversion from 'const zim::FileCompound' to 'const std::__1::map > >' for object argument pair equal_range(const key_type& __k) const ^ ../src/file_compound.cpp:41:5: error: no matching member function for call to 'emplace' emplace(Range(0, part->size()), part); ^~~~~~~ /usr/include/c++/v1/map:1046:26: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'std::__1::map > >' for object argument pair emplace(_Args&& ...__args) { ^ ../src/file_compound.cpp:57:9: error: no matching member function for call to 'emplace' emplace(Range(_fsize, _fsize+currentPart->size()), currentPart); ^~~~~~~ /usr/include/c++/v1/map:1046:26: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'std::__1::map > >' for object argument pair emplace(_Args&& ...__args) { ^ ../src/file_compound.cpp:62:9: error: cannot initialize object parameter of type 'const std::__1::map > >' with an expression of type 'zim::FileCompound' if (empty()) ^~~~~ ../src/file_compound.cpp:72:15: error: no matching member function for call to 'begin' for(auto it=begin(); it!=end(); it++) { ^~~~~ /usr/include/c++/v1/map:992:20: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'std::__1::map > >' for object argument iterator begin() _NOEXCEPT {return __tree_.begin();} ^ /usr/include/c++/v1/map:994:20: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'const std::__1::map > >' for object argument const_iterator begin() const _NOEXCEPT {return __tree_.begin();} ^ ../src/file_compound.cpp:72:28: error: no matching member function for call to 'end' for(auto it=begin(); it!=end(); it++) { ^~~ /usr/include/c++/v1/map:996:20: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'std::__1::map > >' for object argument iterator end() _NOEXCEPT {return __tree_.end();} ^ /usr/include/c++/v1/map:998:20: note: candidate function not viable: no known conversion from 'zim::FileCompound' to 'const std::__1::map > >' for object argument const_iterator end() const _NOEXCEPT {return __tree_.end();} ^ ../src/file_compound.cpp:79:16: error: cannot initialize object parameter of type 'const std::__1::map > >' with an expression of type 'const zim::FileCompound' if (mtime || empty()) ^~~~~ ../src/file_compound.cpp:82:23: error: no matching member function for call to 'begin' const char* fname = begin()->second->filename().c_str(); ^~~~~ /usr/include/c++/v1/map:992:20: note: candidate function not viable: no known conversion from 'const zim::FileCompound' to 'std::__1::map > >' for object argument iterator begin() _NOEXCEPT {return __tree_.begin();} ^ /usr/include/c++/v1/map:994:20: note: candidate function not viable: no known conversion from 'const zim::FileCompound' to 'const std::__1::map > >' for object argument const_iterator begin() const _NOEXCEPT {return __tree_.begin();} ^ 12 errors generated. [10/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file_reader.cpp.o' -MF 'src/zim@sha/file_reader.cpp.o.d' -o 'src/zim@sha/file_reader.cpp.o' -c ../src/file_reader.cpp FAILED: src/zim@sha/file_reader.cpp.o c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/file_reader.cpp.o' -MF 'src/zim@sha/file_reader.cpp.o.d' -o 'src/zim@sha/file_reader.cpp.o' -c ../src/file_reader.cpp ../src/file_reader.cpp:41:10: error: use of undeclared identifier 'pread'; did you mean 'fread'? return pread(fd, dest, size, offset); ^~~~~ fread /usr/include/stdio.h:256:9: note: 'fread' declared here size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); ^ ../src/file_reader.cpp:41:16: error: cannot initialize a parameter of type 'void *' with an lvalue of type 'int' return pread(fd, dest, size, offset); ^~ /usr/include/stdio.h:256:32: note: passing argument to parameter here size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); ^ 2 errors generated. [11/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/blob.cpp.o' -MF 'src/zim@sha/blob.cpp.o.d' -o 'src/zim@sha/blob.cpp.o' -c ../src/blob.cpp [12/45] c++ -Isrc/zim@sha -Isrc -I../src -Iinclude -I../include -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Werror -Wall -O2 -fstack-protector -fno-strict-aliasing -fPIC -pthread -MMD -MQ 'src/zim@sha/fileimpl.cpp.o' -MF 'src/zim@sha/fileimpl.cpp.o.d' -o 'src/zim@sha/fileimpl.cpp.o' -c ../src/fileimpl.cpp ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /libzim-0cipiertest-port 1