appsignal / mongo-rust-driver

Mongo Rust driver built on top of the Mongo C driver
Apache License 2.0
89 stars 22 forks source link

cannot stat 'tests/.deps/test_libbson-test-bson.Tpo': No such file or directory #37

Closed philippludwig closed 6 years ago

philippludwig commented 6 years ago

I wanted to try out mongo_driver (version 0.12.0 as described in crates.io), but compilation fails due to bson:

$ cargo build
   Compiling mongoc-sys v1.8.2-0
error: failed to run custom build command for `mongoc-sys v1.8.2-0`
process didn't exit successfully: `/media/Zeug/devel/rust/tests/mongotest/target/debug/build/mongoc-sys-d4c46f9ad8b366da/build-script-build` (exit code: 101)
--- stdout
configure: Current version (from VERSION_CURRENT file): 1.8.2
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking accept ARG2 => struct sockaddr ARG3 => socklen_t ... ok
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for typeof syntax and keyword spelling... typeof
checking for perl... /usr/bin/perl
checking for mv... /bin/mv
checking for grep... /bin/grep
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... yes
checking for sphinx-build... no
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to do a debug build... no
checking whether to enable tracing... no
checking whether to automatic init and cleanup... yes
checking whether to enable optimized builds... yes
checking whether to enable shared memory performance counters... no
checking whether to enable code coverage support... no
checking whether to enable debug symbols... full
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to enable crypto and TLS... openssl
checking whether to use system crypto profile... no
checking for SSL... yes
checking openssl/bio.h usability... yes
checking openssl/bio.h presence... yes
checking for openssl/bio.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking whether ASN1_STRING_get0_data is declared... yes
checking which TLS library to use... openssl
checking for shm_open... no
checking for shm_open in -lrt... yes
checking for sched_getcpu... yes
checking for socklen_t... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether the linker accepts -Wl,-Bsymbolic... yes
checking if weak symbols are supported... yes
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/libmongoc-1.0.pc
config.status: creating src/libmongoc-static-1.0.pc
config.status: creating src/libmongoc-ssl-1.0.pc
config.status: creating build/cmake/libmongoc-1.0-config-version.cmake
config.status: creating build/cmake/libmongoc-static-1.0-config.cmake
config.status: creating build/cmake/libmongoc-1.0-config.cmake
config.status: creating build/cmake/libmongoc-static-1.0-config-version.cmake
config.status: creating src/mongoc/mongoc-config.h
config.status: creating src/mongoc/mongoc-version.h
config.status: creating src/zlib-1.2.11/zconf.h
config.status: executing libtool commands
config.status: executing depfiles commands
=== configuring in src/libbson (/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2/src/libbson)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/media/Zeug/devel/rust/tests/mongotest/target/debug/build/mongoc-sys-2278a5937e6506af/out/1.8.2'  '--enable-ssl=openssl' '--enable-sasl=no' '--enable-static=yes' '--enable-shared=no' '--enable-shm-counters=no' '--with-libbson=bundled' '--with-pic=yes' '--with-snappy=no' '--with-zlib=no' '--enable-debug-symbols=yes' '--build=x86_64-unknown-linux-gnu' 'build_alias=x86_64-unknown-linux-gnu' --cache-file=/dev/null --srcdir=.
configure: Current version (from VERSION_CURRENT file): 1.8.2
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for typeof syntax and keyword spelling... typeof
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for stdint-types....... "(putting them into src/bson/bson-stdint.h)"
checking for uintptr_t... yes
checking for uint64_t... yes
... seen our uintptr_t in stdint.h (uint64_t too)
creating src/bson/bson-stdint.h : _SRC_BSON_BSON_STDINT_H
checking for int_least32_t... yes
checking for int_fast32_t... yes
..adding include stdint.h
... seen good stdint.h inttypes
... seen good uint64_t
... DONE src/bson/bson-stdint.h
checking for strings.h... (cached) yes
checking for perl... /usr/bin/perl
checking for mv... /bin/mv
checking for grep... (cached) /bin/grep
checking for sphinx-build... no
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether byte ordering is bigendian... no
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to do a debug build... no
checking whether to enable optimized builds... yes
checking whether to enable extra alignment of types... yes
checking whether to enable code coverage support... no
checking whether to enable debug symbols... full
checking for strnlen... yes
checking for reallocf... no
checking for syscall... yes
checking for SYS_gettid... yes
checking for snprintf... yes
checking for struct timespec... yes
checking for library containing clock_gettime... none required
checking for library containing floor... -lm
checking for gmtime_r... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether PTHREAD_ONCE_INIT needs braces... no
checking for __sync_add_and_fetch_4... yes
checking for __sync_add_and_fetch_8... yes
checking whether the linker accepts -Wl,-Bsymbolic... yes
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/libbson-1.0.pc
config.status: creating src/libbson-static-1.0.pc
config.status: creating build/cmake/libbson-1.0-config.cmake
config.status: creating build/cmake/libbson-1.0-config-version.cmake
config.status: creating build/cmake/libbson-static-1.0-config.cmake
config.status: creating build/cmake/libbson-static-1.0-config-version.cmake
config.status: creating src/bson/bson-config.h
config.status: creating src/bson/bson-version.h
config.status: executing libtool commands
config.status: executing depfiles commands

libbson 1.8.2 was configured with the following options:

Build configuration:
  Enable debugging (slow)                          : no
  Enable extra alignment (required for 1.0 ABI)    : yes
  Compile with debug symbols (slow)                : full
  Enable GCC build optimization                    : yes
  Code coverage support                            : no
  Cross Compiling                                  : no
  Big endian                                       : no
  Link Time Optimization (experimental)            : no

Documentation:
  man                                              : no
  HTML                                             : no

libmongoc 1.8.2 was configured with the following options:

Build configuration:
  Enable debugging (slow)                          : no
  Compile with debug symbols (slow)                : full
  Enable GCC build optimization                    : yes
  Enable automatic init and cleanup                : yes
      DEPRECATED: use --disable-automatic-init-and-cleanup
  Enable maintainer flags                          : no
  Code coverage support                            : no
  Cross Compiling                                  : no
  Fast counters                                    : no
  Shared memory performance counters               : no
  SASL                                             : no
  SSL                                              : openssl
  Snappy Compression                               : no
  Zlib Compression                                 : no
  Libbson                                          : bundled

Documentation:
  man                                              : no
  HTML                                             : no

Making all in src/libbson
make[1]: Entering directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2/src/libbson'
  CC       src/bson/libbson_la-bcon.lo
  CC       src/bson/libbson_la-bson.lo
  CC       src/bson/libbson_la-bson-atomic.lo
  CC       src/bson/libbson_la-bson-clock.lo
  CC       src/bson/libbson_la-bson-context.lo
  CC       src/bson/libbson_la-bson-decimal128.lo
  CC       src/bson/libbson_la-bson-error.lo
  CC       src/bson/libbson_la-bson-iter.lo
  CC       src/bson/libbson_la-bson-iso8601.lo
  CC       src/bson/libbson_la-bson-json.lo
  CC       src/bson/libbson_la-bson-keys.lo
  CC       src/bson/libbson_la-bson-md5.lo
  CC       src/bson/libbson_la-bson-memory.lo
  CC       src/bson/libbson_la-bson-oid.lo
  CC       src/bson/libbson_la-bson-reader.lo
  CC       src/bson/libbson_la-bson-string.lo
  CC       src/bson/libbson_la-bson-timegm.lo
  CC       src/bson/libbson_la-bson-utf8.lo
  CC       src/bson/libbson_la-bson-value.lo
  CC       src/bson/libbson_la-bson-version-functions.lo
  CC       src/bson/libbson_la-bson-writer.lo
  CC       src/jsonsl/libbson_la-jsonsl.lo
  CCLD     libbson.la
  CCLD     libbson-1.0.la
  CC       tests/test_libbson-corpus-test.o
  CC       tests/test_libbson-TestSuite.o
  CC       tests/test_libbson-test-libbson.o
  CC       tests/test_libbson-test-atomic.o
  CC       tests/test_libbson-test-bson.o
  CC       tests/test_libbson-test-bson-corpus.o
  CC       tests/test_libbson-test-endian.o
  CC       tests/test_libbson-test-clock.o
  CC       tests/test_libbson-test-decimal128.o
  CC       tests/test_libbson-test-error.o
  CC       tests/test_libbson-test-iso8601.o
  CC       tests/test_libbson-test-iter.o
  CC       tests/test_libbson-test-json.o
  CC       tests/test_libbson-test-oid.o
  CC       tests/test_libbson-test-reader.o
  CC       tests/test_libbson-test-string.o
  CC       tests/test_libbson-test-utf8.o
  CC       tests/test_libbson-test-value.o
  CC       tests/test_libbson-test-version.o
  CC       tests/test_libbson-test-writer.o
  CC       tests/test_libbson-test-bcon-basic.o
  CC       tests/test_libbson-test-bcon-extract.o
  CC       tests/test_libbson-json-test.o
  CCLD     test-libbson
  CC       examples/bson_to_json-bson-to-json.o
  CCLD     bson-to-json
  CC       examples/bson_validate-bson-validate.o
  CCLD     bson-validate
  CC       examples/bcon_speed-bcon-speed.o
  CCLD     bcon-speed
  CC       examples/bcon_col_view-bcon-col-view.o
  CCLD     bcon-col-view
  CC       examples/json_to_bson-json-to-bson.o
  CCLD     json-to-bson
  CC       examples/bson_metrics-bson-metrics.o
  CCLD     bson-metrics
  CC       examples/bson_streaming_reader-bson-streaming-reader.o
  CCLD     bson-streaming-reader
make[1]: Leaving directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2/src/libbson'
make[1]: Entering directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2'
  CC       src/mongoc/libmongoc_la-mongoc-apm.lo
  CC       src/mongoc/libmongoc_la-mongoc-array.lo
  CC       src/mongoc/libmongoc_la-mongoc-async.lo
  CC       src/mongoc/libmongoc_la-mongoc-async-cmd.lo
  CC       src/mongoc/libmongoc_la-mongoc-buffer.lo
  CC       src/mongoc/libmongoc_la-mongoc-bulk-operation.lo
  CC       src/mongoc/libmongoc_la-mongoc-b64.lo
  CC       src/mongoc/libmongoc_la-mongoc-client.lo
  CC       src/mongoc/libmongoc_la-mongoc-client-pool.lo
  CC       src/mongoc/libmongoc_la-mongoc-cluster.lo
  CC       src/mongoc/libmongoc_la-mongoc-collection.lo
  CC       src/mongoc/libmongoc_la-mongoc-compression.lo
  CC       src/mongoc/libmongoc_la-mongoc-counters.lo
  CC       src/mongoc/libmongoc_la-mongoc-cursor.lo
  CC       src/mongoc/libmongoc_la-mongoc-cursor-array.lo
  CC       src/mongoc/libmongoc_la-mongoc-cursor-cursorid.lo
  CC       src/mongoc/libmongoc_la-mongoc-cursor-transform.lo
  CC       src/mongoc/libmongoc_la-mongoc-database.lo
  CC       src/mongoc/libmongoc_la-mongoc-find-and-modify.lo
  CC       src/mongoc/libmongoc_la-mongoc-host-list.lo
  CC       src/mongoc/libmongoc_la-mongoc-init.lo
  CC       src/mongoc/libmongoc_la-mongoc-gridfs.lo
  CC       src/mongoc/libmongoc_la-mongoc-gridfs-file.lo
  CC       src/mongoc/libmongoc_la-mongoc-gridfs-file-page.lo
  CC       src/mongoc/libmongoc_la-mongoc-gridfs-file-list.lo
  CC       src/mongoc/libmongoc_la-mongoc-handshake.lo
  CC       src/mongoc/libmongoc_la-mongoc-index.lo
  CC       src/mongoc/libmongoc_la-mongoc-linux-distro-scanner.lo
  CC       src/mongoc/libmongoc_la-mongoc-list.lo
  CC       src/mongoc/libmongoc_la-mongoc-log.lo
  CC       src/mongoc/libmongoc_la-mongoc-matcher-op.lo
  CC       src/mongoc/libmongoc_la-mongoc-matcher.lo
  CC       src/mongoc/libmongoc_la-mongoc-memcmp.lo
  CC       src/mongoc/libmongoc_la-mongoc-cmd.lo
  CC       src/mongoc/libmongoc_la-mongoc-queue.lo
  CC       src/mongoc/libmongoc_la-mongoc-read-concern.lo
  CC       src/mongoc/libmongoc_la-mongoc-read-prefs.lo
  CC       src/mongoc/libmongoc_la-mongoc-rpc.lo
  CC       src/mongoc/libmongoc_la-mongoc-server-description.lo
  CC       src/mongoc/libmongoc_la-mongoc-server-stream.lo
  CC       src/mongoc/libmongoc_la-mongoc-set.lo
  CC       src/mongoc/libmongoc_la-mongoc-socket.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream-buffered.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream-file.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream-gridfs.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream-socket.lo
  CC       src/mongoc/libmongoc_la-mongoc-topology.lo
  CC       src/mongoc/libmongoc_la-mongoc-topology-description.lo
  CC       src/mongoc/libmongoc_la-mongoc-topology-description-apm.lo
  CC       src/mongoc/libmongoc_la-mongoc-topology-scanner.lo
  CC       src/mongoc/libmongoc_la-mongoc-uri.lo
  CC       src/mongoc/libmongoc_la-mongoc-util.lo
  CC       src/mongoc/libmongoc_la-mongoc-version-functions.lo
  CC       src/mongoc/libmongoc_la-mongoc-write-command.lo
  CC       src/mongoc/libmongoc_la-mongoc-write-concern.lo
  CC       src/mongoc/libmongoc_la-mongoc-crypto.lo
  CC       src/mongoc/libmongoc_la-mongoc-scram.lo
  CC       src/mongoc/libmongoc_la-mongoc-crypto-openssl.lo
  CC       src/mongoc/libmongoc_la-mongoc-rand-openssl.lo
  CC       src/mongoc/libmongoc_la-mongoc-stream-tls.lo
  CC       src/mongoc/libmongoc_la-mongoc-ssl.lo
  CC       src/mongoc/libmongoc_la-mongoc-openssl.lo
  CCLD     libmongoc.la
  CCLD     libmongoc-1.0.la
  CCLD     test-libmongoc
  CCLD     example-gridfs
  CCLD     mongoc-dump
  CCLD     filter-bsondump
  CCLD     example-command-monitoring
  CCLD     example-sdam-monitoring
  CCLD     example-client
  CCLD     example-create-indexes
  CCLD     example-pool
  CCLD     example-command-with-opts
  CCLD     example-scram
  CCLD     mongoc-ping
  CCLD     mongoc-tail
  CCLD     find-and-modify
  CCLD     example-matcher
  CCLD     bulk1
  CCLD     bulk2
  CCLD     bulk3
  CCLD     bulk4
  CCLD     bulk5
  CCLD     bulk6
  CCLD     bulk-collation
  CCLD     aggregation1
  CCLD     fam
make[1]: Leaving directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2'
Making install in src/libbson
make[1]: Entering directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2/src/libbson'
  CC       tests/test_libbson-corpus-test.o
  CC       tests/test_libbson-TestSuite.o
  CC       tests/test_libbson-test-atomic.o
  CC       tests/test_libbson-test-bson.o
Makefile:1592: recipe for target 'tests/test_libbson-test-bson.o' failed
make[1]: Leaving directory '/home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/mongo-c-driver-1.8.2/src/libbson'
Makefile:4866: recipe for target 'install-recursive' failed

--- stderr
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   616    0   616    0     0   1184      0 --:--:-- --:--:-- --:--:--  1184
100 7137k  100 7137k    0     0  1908k      0  0:00:03  0:00:03 --:--:-- 2977k
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
src/mongoc/mongoc-init.c:40:9: note: #pragma message: Configure the driver with --disable-automatic-init-and-cleanup (if using ./configure) or ENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF (with cmake). Automatic cleanup is deprecated and will be removed in version 2.0.
 #pragma message( \
         ^~~~~~~
mv: cannot move 'src/mongoc/libmongoc_la-mongoc-gridfs-file-list.loT' to 'src/mongoc/libmongoc_la-mongoc-gridfs-file-list.lo': No such file or directory
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
mv: cannot stat 'tests/.deps/test_libbson-test-bson.Tpo': No such file or directory
make[1]: *** [tests/test_libbson-test-bson.o] Error 1
make: *** [install-recursive] Error 1
thread 'main' panicked at 'assertion failed: Command::new("make").arg("install").current_dir(&driver_src_path).status().expect("Could not run make install").success()', /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/mongoc-sys-1.8.2-0/build.rs:85:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thijsc commented 6 years ago

In this case the compilation of the C library fails, so we're not hitting the Rust code yet. I think my approach will be not to provide support on that part. It's not really my expertise, the MongoDB people do a better job at this. Can you follow the steps in the docs? http://mongoc.org/libmongoc/current/installing.html

philippludwig commented 6 years ago

Sorry, I've switched to the mongodb crate by now.

thijsc commented 6 years ago

Ok, let me know if you need any further help. Word of caution, the mongodb crate is a prototype that's not actively being developed as far as I know.