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

build: do not fail RocksDB build on compiler warnings #46673

Merged

Conversation

petermattis
Copy link
Collaborator

Disable -Werror for the RocksDB build which has recently started
complaining about a missing exception specification in a jemalloc header
with the newest version of Xcode.

Release justification: low risk change to remove developer build
irritation. Should be a no-op for production builds.

Release note: None

@petermattis petermattis requested a review from knz March 27, 2020 14:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis petermattis requested a review from rytaft March 27, 2020 14:53
@petermattis
Copy link
Collaborator Author

@rytaft This fixes the RocksDB / jemalloc build error seen when using the most recent version of Xcode.

Makefile Outdated
@@ -643,7 +643,7 @@ $(ROCKSDB_DIR)/Makefile: $(C_DEPS_DIR)/rocksdb-rebuild | bin/.submodules-initial
$(if $(use-stdmalloc),,-DJEMALLOC_LIBRARIES=$(LIBJEMALLOC) -DJEMALLOC_INCLUDE_DIR=$(JEMALLOC_DIR)/include -DWITH_JEMALLOC=ON) \
-DCMAKE_BUILD_TYPE=$(if $(ENABLE_ROCKSDB_ASSERTIONS),Debug,Release) \
-DFAIL_ON_WARNINGS=$(if $(findstring windows,$(XGOOS)),0,1) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you edit that line too then

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, didn't even notice that. I've removed it now that we're disabling failing on warnings everywhere.

Disable `-Werror` for the RocksDB build which has recently started
complaining about a missing exception specification in a jemalloc header
with the newest version of Xcode.

Release justification: low risk change to remove developer build
irritation. Should be a no-op for production builds.

Release note: None
@petermattis petermattis force-pushed the pmattis/rocksdb-compiler-errors branch from 7148b45 to 7f61159 Compare March 27, 2020 14:56
Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: thanks!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @knz and @rytaft)

@petermattis
Copy link
Collaborator Author

TFTR!

bors r+

@yuzefovich
Copy link
Member

This appears to have been canceled because of missing cla check on one of my PRs.

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 27, 2020

Build succeeded

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.

5 participants