Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2017 04:49:24 GMT
From:      pkg-fallout@FreeBSD.org
To:        yuri@rawbw.com
Cc:        pkg-fallout@FreeBSD.org
Subject:   [package - head-amd64-default][devel/rapidjson] Failed for rapidjson-1.1.0_2 in build
Message-ID:  <201711300449.vAU4nO5a032008@beefy12.nyi.freebsd.org>

next in thread | raw e-mail | index | archive | help
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     yuri@rawbw.com
Last committer: linimon@FreeBSD.org
Ident:          $FreeBSD: head/devel/rapidjson/Makefile 455130 2017-11-29 17:26:52Z linimon $
Log URL:        http://beefy12.nyi.freebsd.org/data/head-amd64-default/p455158_s326378/logs/rapidjson-1.1.0_2.log
Build URL:      http://beefy12.nyi.freebsd.org/build.html?mastername=head-amd64-default&build=p455158_s326378
Log:

====>> Building devel/rapidjson
build started at Thu Nov 30 04:47:34 UTC 2017
port directory: /usr/ports/devel/rapidjson
building for: FreeBSD head-amd64-default-job-03 12.0-CURRENT FreeBSD 12.0-CURRENT 1200054 amd64
maintained by: yuri@rawbw.com
Makefile ident:      $FreeBSD: head/devel/rapidjson/Makefile 455130 2017-11-29 17:26:52Z linimon $
Poudriere version: 3.1.22
Host OSVERSION: 1200052
Jail OSVERSION: 1200054
Job Id: 03




!!! Jail is newer than host. (Jail: 1200054, Host: 1200052) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
OSVERSION=1200054
UNAME_v=FreeBSD 12.0-CURRENT 1200054
UNAME_r=12.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=
MASTERMNT=/usr/local/poudriere/data/.m/head-amd64-default/ref
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=rapidjson-1.1.0_2
OLDPWD=/
PWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p/pool
MASTERNAME=head-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.22
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for rapidjson-1.1.0_2:
     DOXYGEN=on: Build documentation with Doxygen
     EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/rapidjson/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/rapidjson/work  HOME=/wrkdirs/usr/ports/devel/rapidjson/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/rapidjson/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/rapidjson/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/rapidjson/work  HOME=/wrkdirs/usr/ports/devel/rapidjson/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/rapidjson/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DESTDIR=/wrkdirs/usr/ports/devel/rapidjson/work/stage PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing  -Wno-c++98-compat"  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
DOXYGEN=""
NO_DOXYGEN="@comment
"
EXAMPLES=""
NO_EXAMPLES="@comment
"
CMAKE_BUILD_TYPE="release"
OSREL=12.0
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
LIB32DIR=lib
DOCSDIR="share/doc/rapidjson"
EXAMPLESDIR="share/examples/rapidjson"
DATADIR="share/doc/RapidJSON"
WWWDIR="www/rapidjson"
ETCDIR="etc/rapidjson"
--End PLIST_SUB--

--SUB_LIST--
DOXYGEN=""
NO_DOXYGEN="@comment
"
EXAMPLES=""
NO_EXAMPLES="@comment
"
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/doc/RapidJSON
DOCSDIR=/usr/local/share/doc/rapidjson
EXAMPLESDIR=/usr/local/share/examples/rapidjson
WWWDIR=/usr/local/www/rapidjson
ETCDIR=/usr/local/etc/rapidjson
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
ARCH=amd64
CONFIGURE_MAX_CMD_LEN=262144
HAVE_COMPAT_IA32_KERN=YES
OPSYS=FreeBSD
OSREL=12.0
OSVERSION=1200054
PYTHONBASE=/usr/local
UID=0
_OSRELEASE=12.0-CURRENT
#### Misc Poudriere ####
GID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License unknown accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   rapidjson-1.1.0_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.10.2.txz
[head-amd64-default-job-03] Installing pkg-1.10.2...
[head-amd64-default-job-03] Extracting pkg-1.10.2: .......... done
===>   rapidjson-1.1.0_2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of rapidjson-1.1.0_2
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License unknown accepted by the user
===> Fetching all distfiles required by rapidjson-1.1.0_2 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License unknown accepted by the user
===> Fetching all distfiles required by rapidjson-1.1.0_2 for building
=> SHA256 Checksum OK for miloyip-rapidjson-v1.1.0_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License unknown accepted by the user
===> Fetching all distfiles required by rapidjson-1.1.0_2 for building
===>  Extracting for rapidjson-1.1.0_2
=> SHA256 Checksum OK for miloyip-rapidjson-v1.1.0_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for rapidjson-1.1.0_2
===========================================================================
=======================<phase: build-depends  >============================
===>   rapidjson-1.1.0_2 depends on executable: doxygen - not found
===>   Installing existing package /packages/All/doxygen-1.8.13_1,2.txz
[head-amd64-default-job-03] Installing doxygen-1.8.13_1,2...
[head-amd64-default-job-03] `-- Installing graphviz-2.40.1_2...
[head-amd64-default-job-03] |   `-- Installing cairo-1.14.8_1,2...
[head-amd64-default-job-03] |   | `-- Installing dri2proto-2.8...
[head-amd64-default-job-03] |   | `-- Extracting dri2proto-2.8: .... done
<snip>
Generating docs for compound rapidjson::UTF16BE...
Generating docs for compound rapidjson::UTF16LE...
Generating docs for compound rapidjson::UTF32...
Generating docs for compound rapidjson::UTF32BE...
Generating docs for compound rapidjson::UTF32LE...
Generating docs for compound rapidjson::UTF8...
Generating docs for compound rapidjson::Writer...
Generating docs for nested compound rapidjson::Writer::Level...
Generating graph info page...
Generating directory documentation...
Generating index page...
Generating page index...
Generating module index...
Generating namespace member index...
Generating annotated compound index...
Generating alphabetical compound index...
Generating hierarchical class index...
Generating member index...
Generating file index...
Generating file member index...
Generating example index...
finalizing index lists...
writing tag file...
lookup cache used 3793/65536 hits=124227 misses=3955
finished...
[2/31] /usr/bin/c++  -D__STDC_FORMAT_MACROS -Iinclude -Iexample/../include -O2 -pipe -fstack-protector -fno-strict-aliasing  -Wno-c++98-compat -Wall -Wextra -Werror -Wno-missing-field-initializers -std=c++11  -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough -Weverything -O2 -pipe -fstack-protector -fno-strict-aliasing  -Wno-c++98-compat -MD -MT example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o -MF example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o.d -o example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o -c example/tutorial/tutorial.cpp
FAILED: example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o 
/usr/bin/c++  -D__STDC_FORMAT_MACROS -Iinclude -Iexample/../include -O2 -pipe -fstack-protector -fno-strict-aliasing  -Wno-c++98-compat -Wall -Wextra -Werror -Wno-missing-field-initializers -std=c++11  -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough -Weverything -O2 -pipe -fstack-protector -fno-strict-aliasing  -Wno-c++98-compat -MD -MT example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o -MF example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o.d -o example/CMakeFiles/tutorial.dir/tutorial/tutorial.cpp.o -c example/tutorial/tutorial.cpp
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:20:
include/rapidjson/allocators.h:111:64: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(0), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
                                                               ^
                                                               nullptr
include/rapidjson/allocators.h:128:36: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        RAPIDJSON_ASSERT(buffer != 0);
                                   ^
                                   nullptr
include/rapidjson/rapidjson.h:402:36: note: expanded from macro 'RAPIDJSON_ASSERT'
#define RAPIDJSON_ASSERT(x) assert(x)
                                   ^
/usr/include/assert.h:56:21: note: expanded from macro 'assert'
#define assert(e)       ((e) ? (void)0 : __assert(__func__, __FILE__, \
                          ^
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:20:
include/rapidjson/allocators.h:192:28: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        if (originalPtr == 0)
                           ^
                           nullptr
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:22:
In file included from include/rapidjson/encodedstream.h:19:
include/rapidjson/memorystream.h:49:54: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
                                                     ^
                                                     nullptr
include/rapidjson/memorystream.h:56:45: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        return Tell() + 4 <= size_ ? src_ : 0;
                                            ^
                                            nullptr
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:22:
include/rapidjson/encodedstream.h:84:29: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Ch* PutBegin() { return 0; }
                            ^
                            nullptr
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:24:
include/rapidjson/internal/stack.h:40:105: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) {
                                                                                                        ^
                                                                                                        nullptr
include/rapidjson/internal/stack.h:40:119: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) {
                                                                                                                      ^
                                                                                                                      nullptr
include/rapidjson/internal/stack.h:40:133: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) {
                                                                                                                                    ^
                                                                                                                                    nullptr
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
include/rapidjson/reader.h:1087:36: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        const char* Pop() { return 0; }
                                   ^
                                   nullptr
In file included from example/tutorial/tutorial.cpp:4:
include/rapidjson/document.h:1871:53: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        enum { MaxChars = sizeof(static_cast<Flag*>(0)->payload) / sizeof(Ch), MaxSize = MaxChars - 1, LenPos = MaxSize };
                                                    ^
                                                    nullptr
include/rapidjson/document.h:1919:21: note: in instantiation of member class 'rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::ShortString' requested here
        ShortString ss;
                    ^
include/rapidjson/document.h:2006:10: note: in instantiation of member class 'rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::Data' requested here
    Data data_;
         ^
include/rapidjson/document.h:2024:32: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >' requested here
class GenericDocument : public GenericValue<Encoding, Allocator> {
                               ^
example/tutorial/tutorial.cpp:18:14: note: in instantiation of template class 'rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>' requested here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
In file included from example/tutorial/tutorial.cpp:4:
include/rapidjson/document.h:2050:44: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    GenericDocument(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity, StackAllocator* stackAllocator = 0) : 
                                           ^
                                           nullptr
example/tutorial/tutorial.cpp:18:14: note: in instantiation of default function argument expression for 'GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>' required here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
In file included from example/tutorial/tutorial.cpp:4:
include/rapidjson/document.h:2050:126: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    GenericDocument(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity, StackAllocator* stackAllocator = 0) : 
                                                                                                                             ^
                                                                                                                             nullptr
example/tutorial/tutorial.cpp:18:14: note: in instantiation of default function argument expression for 'GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>' required here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
In file included from example/tutorial/tutorial.cpp:5:
In file included from include/rapidjson/prettywriter.h:18:
In file included from include/rapidjson/writer.h:23:
include/rapidjson/stringbuffer.h:45:48: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
                                               ^
                                               nullptr
example/tutorial/tutorial.cpp:145:18: note: in instantiation of default function argument expression for 'GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::CrtAllocator>' required here
    StringBuffer sb;
                 ^
In file included from example/tutorial/tutorial.cpp:5:
include/rapidjson/prettywriter.h:53:73: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    explicit PrettyWriter(OutputStream& os, StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) : 
                                                                        ^
                                                                        nullptr
example/tutorial/tutorial.cpp:146:32: note: in instantiation of default function argument expression for 'PrettyWriter<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::CrtAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0>' required here
    PrettyWriter<StringBuffer> writer(sb);
                               ^
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:24:
include/rapidjson/internal/stack.h:184:23: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        if (stack_ == 0) {
                      ^
                      nullptr
include/rapidjson/internal/stack.h:118:13: note: in instantiation of function template specialization 'rapidjson::internal::Stack<rapidjson::CrtAllocator>::Expand<char>' requested here
            Expand<T>(count);
            ^
include/rapidjson/internal/stack.h:123:9: note: in instantiation of function template specialization 'rapidjson::internal::Stack<rapidjson::CrtAllocator>::Reserve<char>' requested here
        Reserve<T>(count);
        ^
include/rapidjson/stringbuffer.h:108:31: note: in instantiation of function template specialization 'rapidjson::internal::Stack<rapidjson::CrtAllocator>::Push<char>' requested here
    std::memset(stream.stack_.Push<char>(n), c, n * sizeof(c));
                              ^
In file included from example/tutorial/tutorial.cpp:4:
include/rapidjson/document.h:2051:46: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
        allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_()
                                             ^
                                             nullptr
example/tutorial/tutorial.cpp:18:14: note: in instantiation of member function 'rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::GenericDocument' requested here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:20:
include/rapidjson/internal/../allocators.h:110:98: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : 
                                                                                                 ^
                                                                                                 nullptr
include/rapidjson/document.h:2054:56: note: in instantiation of default function argument expression for 'MemoryPoolAllocator<rapidjson::CrtAllocator>' required here
            ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator());
                                                       ^
example/tutorial/tutorial.cpp:18:14: note: in instantiation of member function 'rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::GenericDocument' requested here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
In file included from example/tutorial/tutorial.cpp:4:
In file included from include/rapidjson/document.h:20:
In file included from include/rapidjson/reader.h:24:
include/rapidjson/internal/stack.h:40:94: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) {
                                                                                             ^
                                                                                             nullptr
include/rapidjson/document.h:2051:50: note: in instantiation of member function 'rapidjson::internal::Stack<rapidjson::CrtAllocator>::Stack' requested here
        allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_()
                                                 ^
example/tutorial/tutorial.cpp:18:14: note: in instantiation of member function 'rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::GenericDocument' requested here
    Document document;  // Default template parameter uses UTF8 and MemoryPoolAllocator.
             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/rapidjson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711300449.vAU4nO5a032008>