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++ compilation errors on Linux using g++ #12686

Open
mmucklo opened this issue May 22, 2024 · 0 comments
Open

C++ compilation errors on Linux using g++ #12686

mmucklo opened this issue May 22, 2024 · 0 comments

Comments

@mmucklo
Copy link

mmucklo commented May 22, 2024

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

Expected behavior

rocksdb compiles fine using Linux (Ubuntu 22.04.4 LTS) with cmake 3.29 and g++ 11.4.0

Actual behavior

A number of compilation errors mostly related to casts are reported and prevent compilation.

Steps to reproduce the behavior

clone on Ubuntu and try building with g++

A sampling of the errors and their types:

rocksdb/table/block_based/block.cc:1330:31: error: cast from type ‘const rocksdb::Block*’ to type ‘void*’ casts away qualifiers [-Werror=cast-qual]
rocksdb/test_util/testutil.h:272:14: error: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Werror=cast-qual]
rocksdb/util/stderr_logger.cc:36:53: error: format not a string literal, argument types not checked [-Werror=format-nonlteral]
rocksdb/util/string_util.cc:165:29: error: ‘%c’ yields only last 2 digits of year in some locales [-Werror=format-y2k]

I'm attempting to use your repo in a school project, but because I'm also working full time and due to corporate hoops, I can't officially have a PR open for this, even though I tried, I ran into red tape once I verified I could sign the CLA.

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

No branches or pull requests

1 participant