Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-deps: bump RocksDB from 5.13 to 5.17.2 #32931

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

petermattis
Copy link
Collaborator

Pass USE_RTTI=1 to the RocksDB build. 5.13 was built with rtti
enabled (there was no way to disable it), but 5.17.2 defaults to
disabling rtti. Unfortunately, the rest of our C++ dependencies build
with rtti enabled and C++ requires consistently specifying -fno-rtti
for all compilation, otherwise you get strange undefined reference to typeinfo errors at link time. At least one of our C++
dependencies (cryptopp) does not allow easily disabling usage of rtti.

Verified that the RocksDBDeleteRangeIterate benchmark was unchanged
which indicates the RocksDB delete range patches are in effect.

Release note: None

@petermattis petermattis requested review from a team December 7, 2018 15:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis
Copy link
Collaborator Author

@benesch Disabling rtti everywhere might be a small size / perf win. I didn't pull hard on the cryptopp thread. Looks straightforward to disable rtti for protobuf.

@benesch
Copy link
Contributor

benesch commented Dec 7, 2018

Ack. We should ditch cryptopp anyway. We can’t upgrade it because they dropped support for CMake builds in the next version, and their non-CMake build system doesn’t support out of tree builds.

@petermattis
Copy link
Collaborator Author

We should ditch cryptopp anyway.

What would replace it?

@benesch
Copy link
Contributor

benesch commented Dec 7, 2018 via email

Pass `USE_RTTI=1` to the RocksDB build. 5.13 was built with rtti
enabled (there was no way to disable it), but 5.17.2 defaults to
disabling rtti. Unfortunately, the rest of our C++ dependencies build
with rtti enabled and C++ requires consistently specifying `-fno-rtti`
for all compilation, otherwise you get strange `undefined reference to
typeinfo` errors at link time. At least one of our C++
dependencies (cryptopp) does not allow easily disabling usage of rtti.

Verified that the `RocksDBDeleteRangeIterate` benchmark was unchanged
which indicates the RocksDB delete range patches are in effect.

Release note: None
@petermattis
Copy link
Collaborator Author

bors r=benesch

craig bot pushed a commit that referenced this pull request Dec 7, 2018
32931: c-deps: bump RocksDB from 5.13 to 5.17.2 r=benesch a=petermattis

Pass `USE_RTTI=1` to the RocksDB build. 5.13 was built with rtti
enabled (there was no way to disable it), but 5.17.2 defaults to
disabling rtti. Unfortunately, the rest of our C++ dependencies build
with rtti enabled and C++ requires consistently specifying `-fno-rtti`
for all compilation, otherwise you get strange `undefined reference to
typeinfo` errors at link time. At least one of our C++
dependencies (cryptopp) does not allow easily disabling usage of rtti.

Verified that the `RocksDBDeleteRangeIterate` benchmark was unchanged
which indicates the RocksDB delete range patches are in effect.

Release note: None

Co-authored-by: Peter Mattis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Dec 7, 2018

Build succeeded

@craig craig bot merged commit 819183f into cockroachdb:master Dec 7, 2018
@petermattis petermattis deleted the pmattis/bump-rocksdb branch December 7, 2018 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants