[CXX-913] Cannot compile the C++ driver Created: 18/May/16  Updated: 11/Sep/19  Resolved: 21/May/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 3.0.1
Fix Version/s: None

Type: Task Priority: Blocker - P1
Reporter: qi bao Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 8.4 x64 (newly installed opearting system && minimize installation)
Ubuntu 16.04 x64,both they are the same error.


Attachments: File CMakeOutput.log    
Issue Links:
Related
is related to CDRIVER-1226 Update C++ instructions for C Driver,... Closed

 Description   

the libbson and the MongoDB C driver is ok.
1.cd mongo-cxx-driver/build
2.cmake .. //got an error

=====================error=====output=======================
– The CXX compiler identification is GNU 5.3.1
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– No build type selected, default is Release
– The C compiler identification is GNU 5.3.1
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Checking for module 'libbson-1.0>=1.3.4'

CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
cmake/FindLibBSON.cmake:26 (pkg_check_modules)
src/bsoncxx/CMakeLists.txt:67 (find_package)

– Configuring incomplete, errors occurred!
See also "/home/archer/Downloads/mongo-cxx-driver-r3.0.1/build/CMakeFiles/CMakeOutput.log".

===============================end=======================



 Comments   
Comment by Andrew Morrow (Inactive) [ 21/May/16 ]

baoq1991@126.com - Very happy to hear that. Please let us know if there is anything more we can help with. Also, please be aware that you can ask questions like this on the mongodb-user group: https://groups.google.com/forum/#!forum/mongodb-user

The C++ driver developers monitor that group and will answer questions.

Comment by qi bao [ 21/May/16 ]

thanks Andrew Morrow again and again .....
All problems are solved ! thanks !!!

Comment by qi bao [ 21/May/16 ]

funny,the google chrome has crashed just now,I restore the browser,then I got your comment :)
thanks Andrew Morrow, before you give the method ,I copy the path of mongo-cxx-driver-r3.0.1/build/install/* to the /usr/local/ to resolve this problem,now I will try your method,thanks again.

Comment by Andrew Morrow (Inactive) [ 21/May/16 ]

If you don't specify a CMAKE_INSTALL_PREFIX, then the driver is installed locally to a directory called 'install' under the build directory. If you want the driver installed to /usr/local as it seems from your example that you do, then you need to add -DCMAKE_INSTALL_PREFIX=/usr/local to your cmake command line, and rebuild. After that the pkg-config command should work as expected.

Comment by qi bao [ 21/May/16 ]

> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --cflags --libs libmongocxx
Package libmongocxx was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongocxx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongocxx' found

No,I did nothing,CMAKE_INSTALL_PREFIX is default

Comment by Andrew Morrow (Inactive) [ 20/May/16 ]

Hi baoq1991@126.com -

What is the output of

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --cflags --libs libmongocxx

What did you set CMAKE_INSTALL_PREFIX to (if anything) when invoking CMake to generate the C++11 driver build system?

Comment by qi bao [ 20/May/16 ]

hi,Jesse,thanks for your confirmation,for now I installed all the libraries and drivers successfully,a new problem is that I cannot compile this code to test my c++ driver:
=====================code=======================
#include <iostream>

#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/json.hpp>

#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>

int main(int, char**) {
mongocxx::instance inst{};
mongocxx::client conn{mongocxx::uri{}};

bsoncxx::builder::stream::document document{};

auto collection = conn["testdb"]["testcollection"];
document << "hello" << "world";

collection.insert_one(document.view());
auto cursor = collection.find({});

for (auto&& doc : cursor)

{ std::cout << bsoncxx::to_json(doc) << std::endl; }

}
======================end=======================

I have installed the pkg-config,compile with:
> g++ --std=c++11 hellomongo.cpp -o hellomongo $(pkg-config --cflags --libs libmongocxx)

but got an error like this:
================error=====output===============
Package libmongocxx was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongocxx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongocxx' found
hellomongo.cpp:3:47: fatal error: bsoncxx/builder/stream/document.hpp: No such file or directory
#include <bsoncxx/builder/stream/document.hpp>
^
compilation terminated.
=====================end=======================

then I use the option PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ,compile with:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig g++ --std=c++11 hellomongo.cpp -o hellomongo $(pkg-config --cflags --libs libmongocxx)

the same error:
================error=====output===============
Package libmongocxx was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongocxx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongocxx' found
hellomongo.cpp:3:47: fatal error: bsoncxx/builder/stream/document.hpp: No such file or directory
#include <bsoncxx/builder/stream/document.hpp>
^
compilation terminated.
=====================end=======================

the paths of /CDRIVER_INSTALL_PATH/lib/pkgconfig looks like this:
> ls /usr/local/lib/pkgconfig/
libbson-1.0.pc libmongoc-1.0.pc libmongoc-priv.pc

how can I compile the example code to test drivers?

Comment by A. Jesse Jiryu Davis [ 19/May/16 ]

Hi, the instructions on the wiki are incorrect. They've somehow led you to install libbson from master, along with Please accept our apology. To install the proper version of the C Driver:

Delete the contents of /usr/local/include/libmongoc-1.0 and /usr/local/include/libbson-1.0

Delete your git clone of mongo-c-driver

Download the release tarball: https://github.com/mongodb/mongo-c-driver/releases/download/1.3.5/mongo-c-driver-1.3.5.tar.gz

tar xvf mongo-c-driver-1.3.5.tar.gz; cd mongo-c-driver-1.3.5; ./configure && make && sudo make install

Check that /usr/local/include/libbson-1.0/bson-version.h now contains #define BSON_VERSION (1.3.5).

Check that /usr/local/include/libmongoc-1.0/mongoc-version.h now contains #define MONGOC_VERSION (1.3.5).

Comment by qi bao [ 19/May/16 ]

the C driver version in the last comment I mentioned is 1.3.4,I use the git command to got it,like this:
> git clone https://github.com/mongodb/mongo-c-driver
> git checkout 1.3.4

Comment by Andrew Morrow (Inactive) [ 19/May/16 ]

baoq1991@126.com - What version of the C driver do you have installed? The decimal headers that are referenced here are only found on the unstable master branch of the C driver. You should be building the C driver from the stable 1.3.x release series, the newest version of which is 1.3.5.

Comment by qi bao [ 19/May/16 ]

by the way,like I said before,I tried many means to build the c++ driver, I followed guide (https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver) ),get the c++ driver by git clone,like this :
git clone -b master https://github.com/mongodb/mongo-cxx-driver
then go on cmake and make,the cmake end correctly,but make gives some error:
=================error=========optput============
In file included from /usr/local/include/libbson-1.0/bson.h:33:0,
from /home/debian/mongo-cxx-driver/src/bsoncxx/array/view.cpp:21:
/usr/local/include/libbson-1.0/bson-decimal128.h:61:8: error: ‘_Decimal128’ does not name a type
static _Decimal128 BSON_INLINE
^
/usr/local/include/libbson-1.0/bson-decimal128.h:71:32: error: variable or field ‘bson_Decimal128_to_decimal128’ declared void
bson_Decimal128_to_decimal128 (_Decimal128 decimal128,
^
/usr/local/include/libbson-1.0/bson-decimal128.h:71:32: error: ‘_Decimal128’ was not declared in this scope
/usr/local/include/libbson-1.0/bson-decimal128.h:72:50: error: expected primary-expression before ‘*’ token
bson_decimal128_t *dec)
^
/usr/local/include/libbson-1.0/bson-decimal128.h:72:51: error: ‘dec’ was not declared in this scope
bson_decimal128_t *dec)
^
/usr/local/include/libbson-1.0/bson-decimal128.h:72:51: note: suggested alternative:
In file included from /usr/include/c++/4.9/ios:42:0,
from /usr/include/c++/4.9/ostream:38,
from /usr/include/c++/4.9/iterator:64,
from /home/debian/mongo-cxx-driver/src/bsoncxx/array/view.hpp:19,
from /home/debian/mongo-cxx-driver/src/bsoncxx/array/view.cpp:15:
/usr/include/c++/4.9/bits/ios_base.h:933:3: note: ‘std::dec’
dec(ios_base& __base)
^
src/bsoncxx/CMakeFiles/bsoncxx.dir/build.make:110: recipe for target 'src/bsoncxx/CMakeFiles/bsoncxx.dir/array/view.cpp.o' failed
make[2]: *** [src/bsoncxx/CMakeFiles/bsoncxx.dir/array/view.cpp.o] Error 1
CMakeFiles/Makefile2:212: recipe for target 'src/bsoncxx/CMakeFiles/bsoncxx.dir/all' failed
make[1]: *** [src/bsoncxx/CMakeFiles/bsoncxx.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
=====================end==========================
I can't figure out it and give up,I download the release version instead of git clone.This is the problem to which you may pay attention.

Comment by qi bao [ 19/May/16 ]

when I have re-installed the pkg-config,the command shows like this:
debian@virtual-D:~/mongo-cxx-driver-r3.0.1/src/mongocxx$ PKG_CONFIG_PATH=$HOME/opt/lib/pkgconfig pkg-config --cflags libmongoc-1.0
-I/usr/local/include/libmongoc-1.0 -I/usr/local/include/libbson-1.0

The include path for mongoc looks like this:
debian@virtual-D:~$ ls /usr/local/include/
libbson-1.0 libmongoc-1.0
and I don't know why it is capitalized,I I didn't make any changes.

I try to create a new folder in the path /usr/local/include,look like this:
debian@virtual-D:~$ ls /usr/local/include/
libMONGOC-1.0 libbson-1.0 libmongoc-1.0
then I copy all the file in the “libmongoc-1.0” to “libMONGOC-1.0”,and go on "make",the miracle happened,succeed in make driver!

Comment by qi bao [ 18/May/16 ]

I got it, thanks again,I'm going to sleep,the writing to be continued tomorrow,bye

Comment by Andrew Morrow (Inactive) [ 18/May/16 ]

You shouldn't uninstall pkg-config. Please re-install it. Uninstalling pkg-config is going to make your system unusable for development.

Comment by qi bao [ 18/May/16 ]

thanks for your patient,but the command of "pkg-config" is not exist,because I have uninstalled it ,if I install "pkg-config", the cmake can't end correctly,so I have to uninstalled it,
in the terminal: pkg-config: command not found
I used the option PKG_CONFIG_PATH=/usr/local/lib/pkgconfig to run with cmake

Comment by Andrew Morrow (Inactive) [ 18/May/16 ]

Did you notice this in your build output:

[ 20%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx && /usr/bin/c++   -DMONGOCXX_EXPORTS -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/usr/local/include/libMONGOC-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/mongocxx.dir/bulk_write.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/bulk_write.cpp
In file included from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/bulk_write.hpp:18:0,
                 from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/bulk_write.cpp:19:
/home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/libmongoc.hpp:17:20: fatal error: mongoc.h: No such file or directory
 #include <mongoc.h>
                    ^

In particular, look at this part of the additional include paths:

 -I/usr/local/include/libbson-1.0 -I/usr/local/include/libMONGOC-1.0

The include path for mongoc looks very strange. Why is it capitalized? What does the pkgconfig command line utility say for the required CFLAGS to include the headers for libmongoc? For me it looks like this:\

> PKG_CONFIG_PATH=$HOME/opt/lib/pkgconfig pkg-config --cflags libmongoc-1.0
-I/Users/andrew/opt/include/libmongoc-1.0 -I/Users/andrew/opt/include/libbson-1.0

Can you run that pkg-config command and post the output? Can you make sure that all of the directories listed there actually exist (including matching capitalization)?

Comment by qi bao [ 18/May/16 ]

===================continued====================
[ 10%] Linking CXX shared library libbsoncxx.so
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/bsoncxx.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -O3 -DNDEBUG  -shared -Wl,-soname,libbsoncxx.so._noabi -o libbsoncxx.so.3.0.1 CMakeFiles/bsoncxx.dir/array/element.cpp.o CMakeFiles/bsoncxx.dir/array/value.cpp.o CMakeFiles/bsoncxx.dir/array/view.cpp.o CMakeFiles/bsoncxx.dir/builder/core.cpp.o CMakeFiles/bsoncxx.dir/document/element.cpp.o CMakeFiles/bsoncxx.dir/document/value.cpp.o CMakeFiles/bsoncxx.dir/document/view.cpp.o CMakeFiles/bsoncxx.dir/exception/error_code.cpp.o CMakeFiles/bsoncxx.dir/json.cpp.o CMakeFiles/bsoncxx.dir/oid.cpp.o CMakeFiles/bsoncxx.dir/private/itoa.cpp.o CMakeFiles/bsoncxx.dir/string/view_or_value.cpp.o CMakeFiles/bsoncxx.dir/types.cpp.o CMakeFiles/bsoncxx.dir/types/value.cpp.o CMakeFiles/bsoncxx.dir/validate.cpp.o  -L/usr/local/lib -lbson-1.0 -Wl,-rpath,/usr/local/lib: 
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/local/bin/cmake -E cmake_symlink_library libbsoncxx.so.3.0.1 libbsoncxx.so._noabi libbsoncxx.so
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 10%] Built target bsoncxx
make -f src/bsoncxx/CMakeFiles/bsoncxx_static.dir/build.make src/bsoncxx/CMakeFiles/bsoncxx_static.dir/depend
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
cd /home/debian/mongo-cxx-driver-r3.0.1/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/debian/mongo-cxx-driver-r3.0.1 /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx /home/debian/mongo-cxx-driver-r3.0.1/build /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx_static.dir/DependInfo.cmake --color=
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx_static.dir/DependInfo.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx_static.dir/depend.internal".
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx_static.dir/depend.internal".
Scanning dependencies of target bsoncxx_static
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/bsoncxx/CMakeFiles/bsoncxx_static.dir/build.make src/bsoncxx/CMakeFiles/bsoncxx_static.dir/build
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 10%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/element.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/array/element.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/element.cpp
[ 10%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/array/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/value.cpp
[ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/view.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/array/view.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/view.cpp
[ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/builder/core.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/builder/core.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.cpp
[ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/element.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/document/element.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/element.cpp
[ 12%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/document/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/value.cpp
[ 12%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/view.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/document/view.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/view.cpp
[ 13%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/exception/error_code.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/exception/error_code.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/exception/error_code.cpp
[ 13%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/json.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/json.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/json.cpp
[ 13%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/oid.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/oid.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/oid.cpp
[ 14%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/private/itoa.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/private/itoa.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/private/itoa.cpp
[ 14%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/string/view_or_value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/string/view_or_value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/string/view_or_value.cpp
[ 14%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/types.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/types.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/types.cpp
[ 16%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/types/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/types/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/types/value.cpp
[ 16%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/validate.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/bsoncxx_static.dir/validate.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/validate.cpp
[ 17%] Linking CXX static library libbsoncxx.a
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/local/bin/cmake -P CMakeFiles/bsoncxx_static.dir/cmake_clean_target.cmake
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/bsoncxx_static.dir/link.txt --verbose=1
/usr/bin/ar qc libbsoncxx.a  CMakeFiles/bsoncxx_static.dir/array/element.cpp.o CMakeFiles/bsoncxx_static.dir/array/value.cpp.o CMakeFiles/bsoncxx_static.dir/array/view.cpp.o CMakeFiles/bsoncxx_static.dir/builder/core.cpp.o CMakeFiles/bsoncxx_static.dir/document/element.cpp.o CMakeFiles/bsoncxx_static.dir/document/value.cpp.o CMakeFiles/bsoncxx_static.dir/document/view.cpp.o CMakeFiles/bsoncxx_static.dir/exception/error_code.cpp.o CMakeFiles/bsoncxx_static.dir/json.cpp.o CMakeFiles/bsoncxx_static.dir/oid.cpp.o CMakeFiles/bsoncxx_static.dir/private/itoa.cpp.o CMakeFiles/bsoncxx_static.dir/string/view_or_value.cpp.o CMakeFiles/bsoncxx_static.dir/types.cpp.o CMakeFiles/bsoncxx_static.dir/types/value.cpp.o CMakeFiles/bsoncxx_static.dir/validate.cpp.o
/usr/bin/ranlib libbsoncxx.a
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 17%] Built target bsoncxx_static
make -f src/bsoncxx/test/CMakeFiles/test_bson.dir/build.make src/bsoncxx/test/CMakeFiles/test_bson.dir/depend
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
cd /home/debian/mongo-cxx-driver-r3.0.1/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/debian/mongo-cxx-driver-r3.0.1 /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test /home/debian/mongo-cxx-driver-r3.0.1/build /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test/CMakeFiles/test_bson.dir/DependInfo.cmake --color=
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test/CMakeFiles/test_bson.dir/DependInfo.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test/CMakeFiles/test_bson.dir/depend.internal".
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test/CMakeFiles/test_bson.dir/depend.internal".
Scanning dependencies of target test_bson
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/bsoncxx/test/CMakeFiles/test_bson.dir/build.make src/bsoncxx/test/CMakeFiles/test_bson.dir/build
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 17%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_b_date.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/bson_b_date.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/bson_b_date.cpp
[ 17%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_builder.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/bson_builder.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/bson_builder.cpp
[ 18%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_get_values.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/bson_get_values.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/bson_get_values.cpp
[ 18%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_util_itoa.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/bson_util_itoa.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/bson_util_itoa.cpp
[ 18%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_validate.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/bson_validate.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/bson_validate.cpp
[ 19%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/json.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/json.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/json.cpp
[ 19%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/new_tests.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/new_tests.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/new_tests.cpp
[ 20%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/view_or_value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/bin/c++   -DBSONCXX_STATIC -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/src/third_party/catch/include -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG   -std=c++11 -o CMakeFiles/test_bson.dir/view_or_value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/test/view_or_value.cpp
[ 20%] Linking CXX executable test_bson
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/test && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/test_bson.dir/link.txt --verbose=1
/usr/bin/c++   -O3 -DNDEBUG   CMakeFiles/test_bson.dir/bson_b_date.cpp.o CMakeFiles/test_bson.dir/bson_builder.cpp.o CMakeFiles/test_bson.dir/bson_get_values.cpp.o CMakeFiles/test_bson.dir/bson_util_itoa.cpp.o CMakeFiles/test_bson.dir/bson_validate.cpp.o CMakeFiles/test_bson.dir/json.cpp.o CMakeFiles/test_bson.dir/new_tests.cpp.o CMakeFiles/test_bson.dir/view_or_value.cpp.o  -o test_bson  -L/usr/local/lib -rdynamic ../libbsoncxx.a -lbson-1.0 -Wl,-rpath,/usr/local/lib 
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 20%] Built target test_bson
make -f src/mongocxx/CMakeFiles/mongocxx.dir/build.make src/mongocxx/CMakeFiles/mongocxx.dir/depend
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
cd /home/debian/mongo-cxx-driver-r3.0.1/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/debian/mongo-cxx-driver-r3.0.1 /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx /home/debian/mongo-cxx-driver-r3.0.1/build /home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx /home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx/CMakeFiles/mongocxx.dir/DependInfo.cmake --color=
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx/CMakeFiles/mongocxx.dir/DependInfo.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx/CMakeFiles/mongocxx.dir/depend.internal".
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx/CMakeFiles/mongocxx.dir/depend.internal".
Scanning dependencies of target mongocxx
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/mongocxx/CMakeFiles/mongocxx.dir/build.make src/mongocxx/CMakeFiles/mongocxx.dir/build
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[ 20%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/mongocxx && /usr/bin/c++   -DMONGOCXX_EXPORTS -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/usr/local/include/libMONGOC-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/mongocxx.dir/bulk_write.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/bulk_write.cpp
In file included from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/bulk_write.hpp:18:0,
                 from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/bulk_write.cpp:19:
/home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/libmongoc.hpp:17:20: fatal error: mongoc.h: No such file or directory
 #include <mongoc.h>
                    ^
compilation terminated.
src/mongocxx/CMakeFiles/mongocxx.dir/build.make:62: recipe for target 'src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o' failed
make[2]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o] Error 1
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
CMakeFiles/Makefile2:441: recipe for target 'src/mongocxx/CMakeFiles/mongocxx.dir/all' failed
make[1]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/all] Error 2
make[1]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
debian@virtual-D:~/mongo-cxx-driver-r3.0.1/build$ 
=====================end====================

Comment by qi bao [ 18/May/16 ]

debian@virtual-D:~/mongo-cxx-driver-r3.0.1/build$  make VERBOSE=1
=================output==================
/usr/local/bin/cmake -H/home/debian/mongo-cxx-driver-r3.0.1 -B/home/debian/mongo-cxx-driver-r3.0.1/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /home/debian/mongo-cxx-driver-r3.0.1/build/CMakeFiles /home/debian/mongo-cxx-driver-r3.0.1/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/build.make src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/depend
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
cd /home/debian/mongo-cxx-driver-r3.0.1/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/debian/mongo-cxx-driver-r3.0.1 /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/third_party /home/debian/mongo-cxx-driver-r3.0.1/build /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/DependInfo.cmake --color=
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/DependInfo.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/depend.internal".
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/depend.internal".
Scanning dependencies of target EP_mnmlstc_core
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/build.make src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/build
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[  1%] Creating directories for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/tmp
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-mkdir
[  1%] Performing download step (git clone) for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src && /usr/local/bin/cmake -P /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download-Release.cmake
-- EP_mnmlstc_core download command succeeded.  See also /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download-*.log
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download
[  2%] No patch step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E echo_append
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-patch
[  2%] No update step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core && /usr/local/bin/cmake -E echo_append
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-update
[  2%] Performing configure step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -P /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-Release.cmake
-- EP_mnmlstc_core configure command succeeded.  See also /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-*.log
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure
[  2%] Performing build step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -Dmake=make -P /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-build-Release.cmake
-- EP_mnmlstc_core build command succeeded.  See also /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-build-*.log
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-build
[  2%] Performing install step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -Dmake=make -P /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-Release.cmake
-- EP_mnmlstc_core install command succeeded.  See also /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-build && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install
[  3%] Performing fix-includes step for 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/install/include/bsoncxx/v_noabi/bsoncxx/third_party/mnmlstc && find . -type f | xargs perl -pi -e "s|#include <core|#include <bsoncxx/third_party/mnmlstc/core|g"
cd /home/debian/mongo-cxx-driver-r3.0.1/build/install/include/bsoncxx/v_noabi/bsoncxx/third_party/mnmlstc && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-fix-includes
[  3%] Completed 'EP_mnmlstc_core'
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E make_directory /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core-complete
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party && /usr/local/bin/cmake -E touch /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-done
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[  3%] Built target EP_mnmlstc_core
make -f src/bsoncxx/CMakeFiles/bsoncxx.dir/build.make src/bsoncxx/CMakeFiles/bsoncxx.dir/depend
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
cd /home/debian/mongo-cxx-driver-r3.0.1/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/debian/mongo-cxx-driver-r3.0.1 /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx /home/debian/mongo-cxx-driver-r3.0.1/build /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx.dir/DependInfo.cmake --color=
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx.dir/DependInfo.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx.dir/depend.internal".
Dependee "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/CMakeFiles/bsoncxx.dir/depend.internal".
Scanning dependencies of target bsoncxx
make[2]: Leaving directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
make -f src/bsoncxx/CMakeFiles/bsoncxx.dir/build.make src/bsoncxx/CMakeFiles/bsoncxx.dir/build
make[2]: Entering directory '/home/debian/mongo-cxx-driver-r3.0.1/build'
[  3%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/element.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/array/element.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/element.cpp
[  3%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/array/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/value.cpp
[  4%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/view.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/array/view.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/array/view.cpp
[  4%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/builder/core.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/builder/core.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.cpp
[  4%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/element.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/document/element.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/element.cpp
[  5%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/document/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/value.cpp
[  5%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/view.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/document/view.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/document/view.cpp
[  6%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/exception/error_code.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/exception/error_code.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/exception/error_code.cpp
[  6%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/json.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/json.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/json.cpp
[  6%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/oid.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/oid.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/oid.cpp
[  8%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/private/itoa.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/private/itoa.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/private/itoa.cpp
[  8%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/string/view_or_value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/string/view_or_value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/string/view_or_value.cpp
[  8%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/types.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/types.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/types.cpp
[  9%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/types/value.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/types/value.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/types/value.cpp
[  9%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/validate.cpp.o
cd /home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx && /usr/bin/c++   -DBSONCXX_EXPORT -DMONGO_CXX_DRIVER_COMPILING -I/usr/local/include/libbson-1.0 -I/home/debian/mongo-cxx-driver-r3.0.1/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src -I/home/debian/mongo-cxx-driver-r3.0.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core/include  -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/bsoncxx.dir/validate.cpp.o -c /home/debian/mongo-cxx-driver-r3.0.1/src/bsoncxx/validate.cpp
=================to be continued==============

Comment by Andrew Morrow (Inactive) [ 18/May/16 ]

Well, in one of the examples above, it did end correctly, because you then ran make and got a compile error. Please revert to that state, re-create that error, and then post the output of make VERBOSE=1.

Comment by qi bao [ 18/May/16 ]

sorry,the cmake can't end correctly,how can I provide the output of 'make VERBOSE=1'?

Comment by Andrew Morrow (Inactive) [ 18/May/16 ]

If you have pkg-config you should use it. You should not need to use LIBBSON_DIR or LIBMONGOC_DIR unless you are on Windows or somewhere else where pkg-config is not an option. So, lets focus on the case where you are using pkg-config.

Can you please re-run CMake and provide the output of 'make VERBOSE=1', showing the compiler invocation for the first target that fails? That way, we can see what the include paths look like.

Comment by qi bao [ 18/May/16 ]

It's wired,I have already read the part of the instructions,I tried many means,

I building the driver from Source:
the libbson version is Libbson-1.3.3 (release)
the libmongoc version is mongo-c-driver 1.3.4 (release)

library files both are there:/usr/local/lib
headers:/usr/local/include
all these is default

at first ,I didn't install the pkg-config,in this case,the step of cmake can run without error,then I issued command of "make",I got an error:
============error========output==========
[ 20%] Linking CXX executable test_bson
[ 20%] Built target test_bson
Scanning dependencies of target mongocxx
[ 20%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o
In file included from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/bulk_write.hpp:18:0,
from /home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/bulk_write.cpp:19:
/home/debian/mongo-cxx-driver-r3.0.1/src/mongocxx/private/libmongoc.hpp:17:20: fatal error: mongoc.h: No such file or directory
#include <mongoc.h>
^
compilation terminated.
src/mongocxx/CMakeFiles/mongocxx.dir/build.make:62: recipe for target 'src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o' failed
make[2]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o] Error 1
CMakeFiles/Makefile2:441: recipe for target 'src/mongocxx/CMakeFiles/mongocxx.dir/all' failed
make[1]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
=========================end=======================

if I uninstalled the pkg-config,then use the command:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig cmake .. -DLIBBSON_DIR=/usr/local/ -DLIBMONGOC_DIR=/usr/local/

it also get some error like this:
=================error=========output===============
– No build type selected, default is Release
– Checking for module 'libbson-1.0>=1.3.4'

CMake Error at /usr/local/share/cmake-3.5/Modules/FindPkgConfig.cmake:363 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/share/cmake-3.5/Modules/FindPkgConfig.cmake:528 (_pkg_check_modules_internal)
cmake/FindLibBSON.cmake:26 (pkg_check_modules)
src/bsoncxx/CMakeLists.txt:67 (find_package)

– Configuring incomplete, errors occurred!
See also "/home/debian/mongo-cxx-driver-r3.0.1/build/CMakeFiles/CMakeOutput.log".
=========================end=======================

Comment by Andrew Morrow (Inactive) [ 18/May/16 ]

The error in the CMake output suggests that either libbson was found, but determined to be too old, or that it could not be found at all.

How did you install libmongoc and libbson? What version of those libraries did you build? Where are the headers, pkg-config, and library files for libmongoc and libbson?

Did you read this part of the instructions, which specifies how to provide a PKG_CONFIG_PATH in the event that libmongoc and libbson were not installed to a location searched by default by pkg-config?

https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)#build-and-install-the-c-driver-1

Comment by qi bao [ 18/May/16 ]

It cost me six days to solve this problem,finally I run out of ways, please help me ,thanks in advance.

Generated at Wed Feb 07 22:00:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.