Skip to content

Build fails without Snappy #14309

@IanEmmons

Description

@IanEmmons

According to your documentation, RocksDB should build without the dependency Snappy. However, attempting to do so results in this compiler error:

% make static_lib
$DEBUG_LEVEL is 0, $LIB_MODE is static
$DEBUG_LEVEL is 0, $LIB_MODE is static
  CC       cache/cache.o
...
  CC       util/compression.o
util/compression.cc:1395:40: error: unused parameter 'args' [-Werror,-Wunused-parameter]
 1395 |   Status ExtractUncompressedSize(Args& args) override {
      |                                        ^
1 error generated.
make: *** [util/compression.o] Error 1

This is easily fixed by changing line 1395 of compression.cc from this:

  Status ExtractUncompressedSize(Args& args) override {

to this:

  Status ExtractUncompressedSize([[maybe_unused]] Args& args) override {

I am building on Mac OS 15.7.3 (Sequoia) with Apple clang version 17.0.0 (clang-1700.6.3.2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions