Skip to content

Microbenchmark is not compatible with 1.6.x Google benchmark  #9489

Open
@kloczek

Description

@kloczek

gcc 12.0.0 from fedora rawhide

[ 99%] Building CXX object microbench/CMakeFiles/db_basic_bench.dir/db_basic_bench.cc.o
cd /home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/x86_64-redhat-linux-gnu/microbench && /usr/bin/g++ -DGFLAGS=1 -DHAVE_PCLMUL -DHAVE_SSE42 -DLZ4 -DNUMA -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DZLIB -DZSTD -I//include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2 -I/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/third-party/folly -isystem /home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/third-party/gtest-1.8.1/fused-src -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -fno-builtin-memcmp -DNDEBUG -std=gnu++11 -MD -MT microbench/CMakeFiles/db_basic_bench.dir/db_basic_bench.cc.o -MF CMakeFiles/db_basic_bench.dir/db_basic_bench.cc.o.d -o CMakeFiles/db_basic_bench.dir/db_basic_bench.cc.o -c /home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc
[100%] Built target ribbon_bench
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::DBPut(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:264:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  264 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:267:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  267 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:285:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  285 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::ManualCompaction(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:348:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  348 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:351:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  351 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:392:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  392 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::ManualFlush(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:468:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  468 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:471:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  471 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:490:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  490 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::DBGet(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:543:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  543 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:546:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  546 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:597:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  597 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::SimpleGetWithPerfContext(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:642:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  642 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:645:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  645 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:750:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  750 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::IteratorSeek(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:858:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  858 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:861:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  861 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:906:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  906 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::IteratorNext(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:952:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  952 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:955:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
  955 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1000:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1000 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::IteratorNextWithPerfContext(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1026:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1026 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1029:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1029 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1101:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1101 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::IteratorPrev(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1120:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1120 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1123:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1123 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1168:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1168 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc: In function ‘void rocksdb::PrefixSeek(benchmark::State&)’:
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1213:33: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1213 |   auto rnd = Random(301 + state.thread_index);
      |                           ~~~~~~^~~~~~~~~~~~
      |                                             ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1216:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1216 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
/home/tkloczko/rpmbuild/BUILD/rocksdb-6.28.2/microbench/db_basic_bench.cc:1260:13: error: invalid use of member function ‘int benchmark::State::thread_index() const’ (did you forget the ‘()’ ?)
 1260 |   if (state.thread_index == 0) {
      |       ~~~~~~^~~~~~~~~~~~
      |                         ()
make[2]: *** [microbench/CMakeFiles/db_basic_bench.dir/build.make:79: microbench/CMakeFiles/db_basic_bench.dir/db_basic_bench.cc.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildbuild, makefile, cmake, scriptsdependenciesPull requests that update a dependency fileup-for-grabsUp for grabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions