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

Doesn't install with rocksdb 7.0.2 #29

Open
mrkamel opened this issue Mar 27, 2022 · 0 comments
Open

Doesn't install with rocksdb 7.0.2 #29

mrkamel opened this issue Mar 27, 2022 · 0 comments

Comments

@mrkamel
Copy link

mrkamel commented Mar 27, 2022

I'm installing rocksdb-dev from alpine testing/edge. They recently updated it to 7.0.2 https://pkgs.alpinelinux.org/packages?name=rocksdb-dev&branch=edge ... but rocksdb-ruby doesn't compile with that:

From our Dockerfile:

RUN apk --no-cache add rocksdb-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

Installing rocksdb-ruby fails with:

...
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/3.0.0 -r
./siteconf20220323-1-bs9mqy.rb extconf.rb
checking for -lrocksdb_debug... no
checking for rocksdb/db.h... yes
checking for -lrocksdb... yes
creating Makefile

current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
make DESTDIR\= clean

current directory: /usr/local/bundle/gems/rocksdb-ruby-1.0.2/ext/rocksdb
make DESTDIR\=
compiling rocksdb_batch_rb.cc
In file included from /usr/include/rocksdb/iterator.h:23,
                 from /usr/include/rocksdb/db.h:18,
                 from rocksdb_batch_rb.h:1,
                 from rocksdb_batch_rb.cc:1:
/usr/include/rocksdb/slice.h:46:20: error: 'string_view' in namespace 'std' does
not name a type
46 |   Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
      |                    ^~~~~~~~~~~
/usr/include/rocksdb/slice.h:46:15: note: 'std::string_view' is only available
from C++17 onwards
46 |   Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
      |               ^~~
/usr/include/rocksdb/slice.h:95:8: error: 'string_view' in namespace 'std' does
not name a type
   95 |   std::string_view ToStringView() const {
      |        ^~~~~~~~~~~
/usr/include/rocksdb/slice.h:95:3: note: 'std::string_view' is only available
from C++17 onwards
   95 |   std::string_view ToStringView() const {
      |   ^~~
/usr/include/rocksdb/slice.h: In constructor 'rocksdb::Slice::Slice(const
int&)':
/usr/include/rocksdb/slice.h:46:48: error: request for member 'data' in 'sv',
which is of non-class type 'const int'
46 |   Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
      |                                                ^~~~
/usr/include/rocksdb/slice.h:46:66: error: request for member 'size' in 'sv',
which is of non-class type 'const int'
46 |   Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size())
{}
      |                                                                  ^~~~
make: *** [Makefile:213: rocksdb_batch_rb.o] Error 1

make failed, exit code 2
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