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

Add missing C include into test.h for older g++ versions to compile

    XMLWordPrintable

Details

    • Build Failure
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.9.0, 4.4.5
    • None
    • None
    • 1
    • Storage - Ra 2021-03-08

    Description

      All WT perf jobs failed in Jenkins after the merge of WT-7237http://build.wiredtiger.com:8080/job/wiredtiger-perf/

      Logs:

       

      In file included from ../../../src/include/wt_internal.h:404:0,
                       from ../../../test/utility/test_util.h:31,
                       from ../../../test/cppsuite/test_harness/configuration_settings.h:33,
                       from ../../../test/cppsuite/test_harness/test.h:41,
                       from ../../../test/cppsuite/tests/poc.cxx:33:
      ../../../src/include/cell_inline.h: In function 'int __cell_data_ref(WT_SESSION_IMPL*, WT_PAGE*, int, WT_CELL_UNPACK_COMMON*, WT_ITEM*)':
      ../../../src/include/error.h:113:43: error: expected ')' before 'PRIxMAX'
           __wt_panic(session, EINVAL, "%s: 0x%" PRIxMAX, \
      

       

      Fix:

      The include <cinttypes> is missing from test.h

       

      Attachments

        Issue Links

          Activity

            People

              etienne.petrel@mongodb.com Etienne Petrel
              luke.pearson@mongodb.com Luke Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: