Skip to content

building rocksdb fails with new gcc v15 #5216

@conorsch

Description

@conorsch

Describe the bug
When building Penumbra, compilation of the rocksdb dependencies will fail if the system's version of is v15.1.1 or newer.

To Reproduce
Steps to reproduce the behavior:

  1. Use a modern Linux OS like Fedora Workstation 42.
  2. Run gcc --version and confirm >v15
  3. Run cargo build --release
  4. See error

Expected behavior
I expect all packages and binaries in the project to build, provided I've installed the necessary OS-level dependencies, as described in https://guide.penumbra.zone/dev/build

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
There are three workarounds:

  • Use an older OS, such as Ubuntu 22.04 LTS, with a sufficiently old gcc
  • Use the project's nix devshell which pins gcc at 13.3.0 as of Penumbra v1.5.3
  • export ROCKSDB_LIB_DIR=/usr/lib64 prior to running cargo build -r

Any changes to core rocksdb dependencies will need to be made carefully, so as not to affect node storage logic. Additionally, changes must be made in both the protocol repo and in the cnidarium repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-toolingArea: developer tooling for building Penumbra itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions