[SERVER-27436] rocksdb (mongo-rocks) compilation failure Created: 15/Dec/16  Updated: 16/Dec/16  Resolved: 16/Dec/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Sprint: Storage 2017-01-23
Participants:
Linked BF Score: 0

 Description   

compile failed on ubuntu1404-rocksdb

Project: mongodb-mongo-master

[2016/12/14 21:32:38.911] /opt/mongodbtoolchain/v2/bin/g++ -o build/release/mongo/executor/network_interface_asio_integration_test.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -DPCRE_STATIC -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS -DBOOST_THREAD_HAS_NO_EINTR_BUG -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Isrc/third_party/pcre-8.39 -Isrc/third_party/boost-1.60.0 -I/data/mci/9e6bd8ac176d65be8d0edd31b76291d8/rocksdb/include -Ibuild/release -Isrc src/mongo/executor/network_interface_asio_integration_test.cpp
[2016/12/14 21:32:39.767] /opt/mongodbtoolchain/v2/bin/g++ -o build/release/mongo/executor/network_interface_perf_test.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -DPCRE_STATIC -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS -DBOOST_THREAD_HAS_NO_EINTR_BUG -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Isrc/third_party/pcre-8.39 -Isrc/third_party/boost-1.60.0 -I/data/mci/9e6bd8ac176d65be8d0edd31b76291d8/rocksdb/include -Ibuild/release -Isrc src/mongo/executor/network_interface_perf_test.cpp
[2016/12/14 21:32:39.964] scons: *** [build/release/mongo/db/modules/rocksdb/src/rocks_record_store_test.o] Error 1
[2016/12/14 21:32:40.032] src/mongo/db/modules/rocksdb/src/rocks_index_test.cpp: In member function 'virtual void mongo::UnitTest__RocksIndexTest__Isolation::_doTest()':
[2016/12/14 21:32:40.032] src/mongo/db/modules/rocksdb/src/rocks_index_test.cpp:106:31: error: 'class mongo::HarnessHelper' has no member named 'newSortedDataInterface'
[2016/12/14 21:32:40.033]          sorted(harnessHelper->newSortedDataInterface(true));
[2016/12/14 21:32:40.033]                                ^
[2016/12/14 21:32:40.062] src/mongo/db/modules/rocksdb/src/rocks_index_test.cpp: In function 'void mongo::testSeekExactRemoveNext(bool, bool)':
[2016/12/14 21:32:40.062] src/mongo/db/modules/rocksdb/src/rocks_index_test.cpp:172:38: error: 'class mongo::HarnessHelper' has no member named 'newSortedDataInterface'
[2016/12/14 21:32:40.062]          auto sorted = harnessHelper->newSortedDataInterface(unique,
[2016/12/14 21:32:40.062]                                       ^
[2016/12/14 21:32:41.478] scons: *** [build/release/mongo/db/modules/rocksdb/src/rocks_index_test.o] Error 1

BF Ticket Generated by jonathan.abrahams



 Comments   
Comment by Eric Milkie [ 16/Dec/16 ]

Thanks very much!

Comment by Igor Canadi [ 15/Dec/16 ]

Here's the fix: https://github.com/mongodb-partners/mongo-rocks/commit/c6c039744b8d7ab81235bf665f297ebca39b46bb

Comment by Eric Milkie [ 15/Dec/16 ]

Hi igor,
We've changed the HarnessHelper in our source to eliminate its multiple definitions. We now have two different classes with a common HarnessHelper ancestor. See SERVER-27257 for examples on how we fixed this.

Generated at Thu Feb 08 04:15:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.