Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8623

Fix compilation notes on Power8 platform using V4 toolchain GCC

      The following compilation notes are getting generated when the WiredTiger develop code is compiled using V4 toolchain.

      [9/510] Building C object CMakeFiles/wt_objs.dir/src/block/block_ext.c.o
      /home/storage.wt/hari/code/wiredtiger/src/block/block_ext.c: In function ‘__wt_block_extlist_write’:
      /home/storage.wt/hari/code/wiredtiger/src/block/block_ext.c:1161:1: note: the layout of aggregates containing vectors with 4-byte alignment has changed in GCC 5
       1161 | __wt_block_extlist_write(
            | ^~~~~~~~~~~~~~~~~~~~~~~~
      [23/510] Building C object CMakeFiles/wt_objs.dir/src/block/block_ckpt_scan.c.o
      /home/storage.wt/hari/code/wiredtiger/src/block/block_ckpt_scan.c: In function ‘__wt_block_checkpoint_last’:
      /home/storage.wt/hari/code/wiredtiger/src/block/block_ckpt_scan.c:330:23: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
        330 |         current->size = size;
            |         ~~~~~~~~~~~~~~^~~~~~
      [33/510] Building C object CMakeFiles/wt_objs.dir/src/btree/bt_split.c.o
      /home/storage.wt/hari/code/wiredtiger/src/btree/bt_split.c: In function ‘__wt_multi_to_ref’:
      /home/storage.wt/hari/code/wiredtiger/src/btree/bt_split.c:1688:33: note: the layout of aggregates containing vectors with 2-byte alignment has changed in GCC 5
       1688 |         addr->size = multi->addr.size;
            |                      ~~~~~~~~~~~^~~~~
      [36/510] Building C object CMakeFiles/wt_objs.dir/src/btree/bt_slvg.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/src/include/wt_internal.h:458,
                       from /home/storage.wt/hari/code/wiredtiger/src/btree/bt_slvg.c:9:
      /home/storage.wt/hari/code/wiredtiger/src/include/cell_inline.h: In function ‘__wt_cell_unpack_kv’:
      /home/storage.wt/hari/code/wiredtiger/src/include/cell_inline.h:1063:1: note: the layout of aggregates containing vectors with 4-byte alignment has changed in GCC 5
       1063 | __wt_cell_unpack_kv(WT_SESSION_IMPL *session, const WT_PAGE_HEADER *dsk, WT_CELL *cell,
            | ^~~~~~~~~~~~~~~~~~~
      [37/510] Building C object CMakeFiles/wt_objs.dir/src/btree/bt_ret.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/src/include/wt_internal.h:458,
                       from /home/storage.wt/hari/code/wiredtiger/src/btree/bt_ret.c:9:
      /home/storage.wt/hari/code/wiredtiger/src/include/cell_inline.h: In function ‘__wt_cell_unpack_kv’:
      /home/storage.wt/hari/code/wiredtiger/src/include/cell_inline.h:1063:1: note: the layout of aggregates containing vectors with 4-byte alignment has changed in GCC 5
       1063 | __wt_cell_unpack_kv(WT_SESSION_IMPL *session, const WT_PAGE_HEADER *dsk, WT_CELL *cell,
            | ^~~~~~~~~~~~~~~~~~~
      [65/510] Building C object CMakeFiles/wt_objs.dir/src/conn/conn_handle.c.o
      /home/storage.wt/hari/code/wiredtiger/src/conn/conn_handle.c: In function ‘__wt_connection_init’:
      /home/storage.wt/hari/code/wiredtiger/src/conn/conn_handle.c:16:1: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
         16 | __wt_connection_init(WT_CONNECTION_IMPL *conn)
            | ^~~~~~~~~~~~~~~~~~~~
      [180/510] Building C object CMakeFiles/wt_objs.dir/src/support/mtx_rw.c.o
      /home/storage.wt/hari/code/wiredtiger/src/support/mtx_rw.c: In function ‘__wt_rwlock_init’:
      /home/storage.wt/hari/code/wiredtiger/src/support/mtx_rw.c:99:28: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
         99 |     l->stat_read_count_off = l->stat_write_count_off = -1;
            |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [273/510] Building C object bench/wtperf/CMakeFiles/wtperf.dir/wtperf_truncate.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/bench/wtperf/wtperf.h:32,
                       from /home/storage.wt/hari/code/wiredtiger/bench/wtperf/wtperf_truncate.c:29:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h: In function ‘setup_truncate’:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h:212:30: note: the layout of aggregates containing vectors with 2-byte alignment has changed in GCC 5
        212 |         *p-- = hundred_lookup[i];
            |                ~~~~~~~~~~~~~~^~~
      [287/510] Building C object CMakeFiles/wt_objs.dir/src/txn/txn.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/src/include/wt_internal.h:408,
                       from /home/storage.wt/hari/code/wiredtiger/src/txn/txn.c:9:
      /home/storage.wt/hari/code/wiredtiger/src/txn/txn.c: In function ‘__wt_txn_global_init’:
      /home/storage.wt/hari/code/wiredtiger/src/include/mutex.h:71:34: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
         71 |         (l)->stat_read_count_off =                                                                \
      /home/storage.wt/hari/code/wiredtiger/src/txn/txn.c:2310:5: note: in expansion of macro ‘WT_RWLOCK_INIT_TRACKED’
       2310 |     WT_RWLOCK_INIT_TRACKED(session, &txn_global->rwlock, txn_global);
            |     ^~~~~~~~~~~~~~~~~~~~~~
      [329/510] Building C object CMakeFiles/wt_objs.dir/src/reconcile/rec_write.c.o
      /home/storage.wt/hari/code/wiredtiger/src/reconcile/rec_write.c: In function ‘__rec_init’:
      /home/storage.wt/hari/code/wiredtiger/src/reconcile/rec_write.c:511:1: note: the layout of aggregates containing vectors with 4-byte alignment has changed in GCC 5
        511 | __rec_init(WT_SESSION_IMPL *session, WT_REF *ref, uint32_t flags, WT_SALVAGE_COOKIE *salvage,
            | ^~~~~~~~~~
      [371/510] Building C object bench/wtperf/CMakeFiles/wtperf.dir/wtperf.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/bench/wtperf/wtperf.h:32,
                       from /home/storage.wt/hari/code/wiredtiger/bench/wtperf/wtperf.c:29:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h: In function ‘scan_worker’:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h:212:30: note: the layout of aggregates containing vectors with 2-byte alignment has changed in GCC 5
        212 |         *p-- = hundred_lookup[i];
            |                ~~~~~~~~~~~~~~^~~
      [382/510] Building C object test/format/CMakeFiles/test_format.dir/kv.c.o
      In file included from /home/storage.wt/hari/code/wiredtiger/test/format/format.h:29,
                       from /home/storage.wt/hari/code/wiredtiger/test/format/kv.c:29:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h: In function ‘key_gen_common’:
      /home/storage.wt/hari/code/wiredtiger/test/utility/test_util.h:212:30: note: the layout of aggregates containing vectors with 2-byte alignment has changed in GCC 5
        212 |         *p-- = hundred_lookup[i];
            |                ~~~~~~~~~~~~~~^~~
      [510/510] Linking CXX executable test/cppsuite/run
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: