Skip to content

Build fails on Ubuntu #13264

@vaqxai

Description

@vaqxai

Expected behavior

the static library is built correctly

Actual behavior

when building memtable/wbwi_memtable.o:

In file included from memtable/wbwi_memtable.cc:6:
./memtable/wbwi_memtable.h: In member function 'void rocksdb::WBWIMemTableIterator::UpdateKey()':
./memtable/wbwi_memtable.h:126:49: error: array subscript 0 is outside array bounds of 'std::aligned_storage<8, 4>::type [0]' [-Werror=array-bounds=]
  126 |                               std::to_string(t->second));
      |                                              ~~~^~~~~~
cc1plus: note: source object is likely at address zero
cc1plus: all warnings being treated as errors
make: *** [Makefile:2569: memtable/wbwi_memtable.o] Error 1

Steps to reproduce the behavior

  1. clone the repo
  2. install dependencies
  3. run make static_lib

This should be fixed by this commit which going by this pull but is not?

Oh, i see. Going by the commit history this was later overwritten by this commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions