fresh install on OS X 10.14.5 - shadow warnings break the build :
…
error: failed to run custom build command for libtitan_sys v0.0.1 (https://github.com/pingcap/rust-rocksdb.git?rev=8d6cda70f22da2cd15ed7351fcffa9add3444595#8d6cda70)
Caused by:
process didn’t exit successfully: /Users/xxx/Documents/playground/libra/target/debug/build/libtitan_sys-0e1aa4108f8f088a/build-script-build
(exit code: 101)
— stdout
running: “cmake” “/Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/titan” “-DROCKSDB_DIR=/Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/…/rocksdb” “-DWITH_TITAN_TESTS=OFF” “-DWITH_TITAN_TOOLS=OFF” “-DWITH_ZLIB=ON” “-DWITH_BZ2=ON” “-DWITH_LZ4=ON” “-DWITH_ZSTD=ON” “-DWITH_SNAPPY=ON” “-DCMAKE_INSTALL_PREFIX=/Users/xxx/Documents/playground/libra/target/debug/build/libtitan_sys-36c7dd4a027b620e/out” “-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE_C_COMPILER=/usr/bin/cc” “-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE_CXX_COMPILER=/usr/bin/c++” “-DCMAKE_BUILD_TYPE=Debug”
– Enabling RTTI in Debug builds only (default)
– Configuring done
– Generating done
– Build files have been written to: /Users/xxx/Documents/playground/libra/target/debug/build/libtitan_sys-36c7dd4a027b620e/out/build
running: “cmake” “–build” “.” “–target” “titan” “–config” “Debug” “–”
[ 4%] Building CXX object CMakeFiles/titan.dir/src/base_db_listener.cc.o
— stderr
In file included from /Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/titan/src/base_db_listener.cc:1:
In file included from /Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/titan/src/base_db_listener.h:3:
In file included from /Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/titan/src/db_impl.h:4:
In file included from /Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/…/rocksdb/db/db_impl.h:23:
In file included from /Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/…/rocksdb/db/compaction_job.h:24:
/Users/xxx/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/…/rocksdb/db/internal_stats.h:111:5: error: declaration shadows a variable in namespace ‘rocksdb’ [-Werror,-Wshadow]
WAL_FILE_BYTES,
…
/Users/einSTein/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/8d6cda7/librocksdb_sys/libtitan_sys/…/rocksdb/include/rocksdb/statistics.h:198:3: note: previous declaration is here
WRITE_WITH_WAL, // Number of Write calls that request WAL
^
7 errors generated.
make[3]: *** [CMakeFiles/titan.dir/src/db_impl.cc.o] Error 1
make[2]: *** [CMakeFiles/titan.dir/all] Error 2
make[1]: *** [CMakeFiles/titan.dir/rule] Error 2
make: *** [titan] Error 2
thread ‘main’ panicked at ’
command did not execute successfully, got: exit code: 2
build script failed, must exit now’, /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.40/src/lib.rs:832:5
note: Run with RUST_BACKTRACE=1
environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish…
error: build failed