oceanbase / miniob

MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.
https://oceanbase.github.io/miniob/
Mulan Permissive Software License, Version 2
2.86k stars 1.01k forks source link

[BUG]build failed on ubuntu 23 with gcc 13 #351

Closed hnwyllmm closed 3 weeks ago

hnwyllmm commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

build failed on ubuntu 23 with gcc 13. information:

[ 22%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/latch_memo.cpp.o
In file included from /root/miniob/src/observer/storage/buffer/page.h:17,
                 from /root/miniob/src/observer/storage/trx/latch_memo.h:21,
                 from /root/miniob/src/observer/storage/trx/latch_memo.cpp:15:
/root/miniob/src/observer/common/types.h:19:17: error: 'int32_t' does not name a type
   19 | using PageNum = int32_t;
      |                 ^~~~~~~
/root/miniob/src/observer/common/types.h:1:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | /* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
/root/miniob/src/observer/common/types.h:23:17: error: 'int32_t' does not name a type
   23 | using SlotNum = int32_t;

Environment Environment Details sometimes important

hnwyllmm commented 3 weeks ago

closed by https://github.com/oceanbase/miniob/pull/379