rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

build v7.10.2 failed with gcc 11/12

Open meilihao opened this issue 1 year ago • 2 comments

Expected behavior

build ok

Actual behavior

errors:

  • error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'std::reference_wrapper<unsigned int>' [-Werror=format=]
  • error: no match for 'operator=' (operand type are 'std::reference_wrapper<unsigned int>' and 'int')

2023-07-30_15-58-26

Steps to reproduce the behavior

env:

  • oracle linux 7.9 amd64
  • gcc 11/12
# cd rocksdb-7.10.2
# make dbg

meilihao avatar Jul 30 '23 08:07 meilihao

tested gcc 9, the same problem.

meilihao avatar Jul 30 '23 08:07 meilihao

build 7.10.2 + gcc 12 + make all get other error: '__Y' may by use uninitialized [-Werror=maybe-uninitialized]

2023-07-30_17-24-06

meilihao avatar Jul 30 '23 09:07 meilihao