Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937827 - dev-libs/rocksdb-10.0.1: fails to compile with GCC 15
Summary: dev-libs/rocksdb-10.0.1: fails to compile with GCC 15
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Guilherme Amadio
URL:
Whiteboard:
Keywords:
: 953361 (view as bug list)
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-12 17:43 UTC by Toralf Förster
Modified: 2025-05-12 07:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.67 KB, text/plain)
2024-08-12 17:43 UTC, Toralf Förster
Details
dev-libs:rocksdb-9.4.0:20240812-130952.log (dev-libs:rocksdb-9.4.0:20240812-130952.log,56.71 KB, text/plain)
2024-08-12 17:43 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,84.82 KB, application/x-xz)
2024-08-12 17:43 UTC, Toralf Förster
Details
environment (environment,99.95 KB, text/plain)
2024-08-12 17:43 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.00 KB, application/x-xz)
2024-08-12 17:43 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,53.50 KB, application/x-xz)
2024-08-12 17:43 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,90.36 KB, application/x-xz)
2024-08-12 17:43 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.47 KB, application/x-xz)
2024-08-12 17:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-08-12 17:43:20 UTC
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/cassert:44,
                 from /var/tmp/portage/dev-libs/rocksdb-9.4.0/work/rocksdb-9.4.0/db/blob/blob_file_meta.h:8:
/var/tmp/portage/dev-libs/rocksdb-9.4.0/work/rocksdb-9.4.0/db/blob/blob_file_meta.h:158:12: error: garbage_blob_count_ was not declared in this scope; did you mean garbage_blob_count?
  158 |     assert(garbage_blob_count_ <= shared_meta_->GetTotalBlobCount());
      |            ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/rocksdb-9.4.0/work/rocksdb-9.4.0/db/blob/blob_file_meta.h:158:49: error: using std::__shared_ptr_access<rocksdb::SharedBlobFileMetaData, __gnu_cxx::_S_atomic, false, false>::element_type = class rocksdb::SharedBlobFileMetaData {aka class rocksdb::SharedBlobFileMetaData} has no member named GetTotalBlobCount
  158 |     assert(garbage_blob_count_ <= shared_meta_->GetTotalBlobCount());
      |                                                 ^~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_systemd-20240806-101508

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.6 linux/amd64

  HEAD of ::gentoo
commit 5f7ef176307288fba3425ffd92d243d9eb19f1a9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Aug 12 12:48:59 2024 +0000

    2024-08-12 12:48:59 UTC

emerge -qpvO =dev-libs/rocksdb-9.4.0
[ebuild  N    ] dev-libs/rocksdb-9.4.0  USE="-jemalloc -numa -static-libs -tbb -test"
Comment 1 Toralf Förster gentoo-dev 2024-08-12 17:43:21 UTC
Created attachment 899969 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-12 17:43:22 UTC
Created attachment 899970 [details]
dev-libs:rocksdb-9.4.0:20240812-130952.log
Comment 3 Toralf Förster gentoo-dev 2024-08-12 17:43:23 UTC
Created attachment 899971 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-08-12 17:43:24 UTC
Created attachment 899972 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-12 17:43:25 UTC
Created attachment 899973 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-12 17:43:26 UTC
Created attachment 899974 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-12 17:43:28 UTC
Created attachment 899975 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-12 17:43:29 UTC
Created attachment 899976 [details]
temp.tar.xz
Comment 9 Guilherme Amadio gentoo-dev 2025-04-08 07:52:07 UTC
*** Bug 953361 has been marked as a duplicate of this bug. ***
Comment 10 Guilherme Amadio gentoo-dev 2025-04-08 07:52:43 UTC
Still not fixed in 10.0.1, updated summary.
Comment 11 Larry the Git Cow gentoo-dev 2025-05-11 04:41:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22f943260dbf6a6393e855aefed1940c9d087683

commit 22f943260dbf6a6393e855aefed1940c9d087683
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2025-05-11 04:37:42 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2025-05-11 04:41:29 +0000

    dev-libs/rocksdb: Fix building with gcc-15
    
    Bug: https://bugs.gentoo.org/937827
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 .../rocksdb/files/rocksdb-10.1-fixincludes.patch   | 47 ++++++++++++++++++++++
 dev-libs/rocksdb/rocksdb-10.0.1.ebuild             |  1 +
 dev-libs/rocksdb/rocksdb-10.1.3.ebuild             |  1 +
 dev-libs/rocksdb/rocksdb-7.9.2-r1.ebuild           |  1 +
 dev-libs/rocksdb/rocksdb-8.11.3.ebuild             |  1 +
 dev-libs/rocksdb/rocksdb-9.10.0.ebuild             |  1 +
 6 files changed, 52 insertions(+)
Comment 12 Guilherme Amadio gentoo-dev 2025-05-12 07:04:33 UTC
@patrick, I guess this bug can be closed now? Could you please submit your patch upstream and mark it as fixing https://github.com/facebook/rocksdb/issues/13365?
Thank you!