Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Incomplete
    • Affects Version/s: 5.7.x, 8.0.x
    • Fix Version/s: None
    • Component/s: TokuDB
    • Labels:
    • Environment:

      Fedora 30

      g++ (GCC) 9.1.1 20190503 (Red Hat 9.1.1-1)

       

      Description

      Compiling the code from github repository with gcc compiler version `++ (GCC) 9.1.1 20190503 (Red Hat 9.1.1-1) I got the following compilation error:

      In file included from percona-server/storage/tokudb/PerconaFT/util/omt.h:773,
      from /percona-server/storage/tokudb/PerconaFT/ft/txn/txn.h:46,
      from percona-server/storage/tokudb/PerconaFT/ft/logger/logger.h:43,
      from percona-server/storage/tokudb/PerconaFT/ft/cachetable/cachetable.h:43,
      from percona-server/storage/tokudb/PerconaFT/ft/cachetable/checkpoint.h:43,
      from percona-server/storage/tokudb/PerconaFT/ft/txn/txn_manager.cc:41:
      percona-server/storage/tokudb/PerconaFT/util/omt.cc: In instantiation of 'void toku::omt<omtdata_t, omtdataout_t, supports_marks>::iterate_ptr_internal(uint32_t, uint32_t, const subtree&, uint32_t, iterate_extra_t*) [with iterate_extra_t = snapshot_iter_extra; int (* f)(omtdata_t*, uint32_t, iterate_extra_t*) = note_snapshot_txn_end_by_txn_live_list_iter; omtdata_t = referenced_xid_tuple; omtdataout_t = referenced_xid_tuple*; bool supports_marks = false; uint32_t = unsigned int; toku::omt<omtdata_t, omtdataout_t, supports_marks>::subtree = toku::omt_internal::subtree_templated<false>]':
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:521:13: required from 'void toku::omt<omtdata_t, omtdataout_t, supports_marks>::iterate_ptr(iterate_extra_t*) [with iterate_extra_t = snapshot_iter_extra; int (* f)(omtdata_t*, uint32_t, iterate_extra_t*) = note_snapshot_txn_end_by_txn_live_list_iter; omtdata_t = referenced_xid_tuple; omtdataout_t = referenced_xid_tuple*; bool supports_marks = false]'
      percona-server/storage/tokudb/PerconaFT/ft/txn/txn_manager.cc:478:108: required from here
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:924:30: error: taking address of packed member of 'toku::omt_internal::omt_node_templated<referenced_xid_tuple, false>' may result in an unaligned pointer value [-Werror=address-of-packed-member]
      924 | int r = f(&n.value, idx_root, iterate_extra);

      ~^~~~
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:924:30: error: taking address of packed member of 'toku::omt_internal::omt_node_templated<referenced_xid_tuple, false>' may result in an unaligned pointer value [-Werror=address-of-packed-member]
      /home/romz/percona/percona-server/storage/tokudb/PerconaFT/util/omt.cc: In instantiation of 'static void toku::omt<omtdata_t, omtdataout_t, supports_marks>::copyout(omtdata_t*, toku::omt<omtdata_t, omtdataout_t, supports_marks>::omt_node) [with omtdata_t = referenced_xid_tuple; omtdataout_t = referenced_xid_tuple*; bool supports_marks = false; toku::omt<omtdata_t, omtdataout_t, supports_marks>::omt_node = toku::omt_internal::omt_node_templated<referenced_xid_tuple, false>]':
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:1077:24: required from 'void toku::omt<omtdata_t, omtdataout_t, supports_marks>::fetch_internal(const subtree&, uint32_t, omtdataout_t*) const [with omtdata_t = referenced_xid_tuple; omtdataout_t = referenced_xid_tuple*; bool supports_marks = false; toku::omt<omtdata_t, omtdataout_t, supports_marks>::subtree = toku::omt_internal::subtree_templated<false>; uint32_t = unsigned int]'
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:536:19: required from 'int toku::omt<omtdata_t, omtdataout_t, supports_marks>::fetch(uint32_t, omtdataout_t*) const [with omtdata_t = referenced_xid_tuple; omtdataout_t = referenced_xid_tuple*; bool supports_marks = false; uint32_t = unsigned int]'
      percona-server/storage/tokudb/PerconaFT/ft/txn/txn_manager.cc:147:76: required from here
      percona-server/storage/tokudb/PerconaFT/util/omt.cc:1168:20: error: taking address of packed member of 'toku::omt_internal::omt_node_templated<referenced_xid_tuple, false>' may result in an unaligned pointer value [-Werror=address-of-packed-member]
      1168
      *out = &n->value;
      ~~^~~~

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  romz Zbigniew Romanowski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: