facebook / facebook/rocksdb

Alpine "rocksdb-dev" package has missing header file "rocksdb/utilities/backupable_db.h"

Open
#10,914 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

I encountered wheel building failure of python-rocksdb package on alpine after installing rocksdb-dev package.
Compiler issue:
`rocksdb/_rocksdb.cpp:791:10: fatal error: rocksdb/utilities/backupable_db.h: No such file or directory 791 | #include
"rocksdb/utilities/backupable_db.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code`

I attach dockerfile instructions which can reproduce the issue.

FROM python:3.10-alpine
RUN apk update && apk add rocksdb-dev
RUN pip install python-rocksdb

Contributor guide

Open the contributing guide

Research direction

Start with the attached Dockerfile instructions using python:3.10-alpine, apk add rocksdb-dev, and pip install python-rocksdb to reproduce the missing-header failure. Trace the `rocksdb/utilities/backupable_db.h` include and compare it with the files provided by the Alpine `rocksdb-dev` package; done means the reported wheel build no longer fails or the package mismatch is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.