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

MongoDB V4 toolchain can't build cppsuite

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.0.0, 5.3.0, 5.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • 5
    • Storage - Ra 2022-01-10

      luke.pearson, I'm seeing a failure when trying to build the develop branch with the V4 toolchain:

      In file included from test_harness/test.cxx:36:
      test_harness/test.h:97:10: error: 'shared_ptr' in namespace 'std' does not name a template type
         97 |     std::shared_ptr<scoped_connection> _scoped_conn;
            |          ^~~~~~~~~~
      test_harness/test.h:45:1: note: 'std::shared_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
         44 | #include "workload_generator.h"
        +++ |+#include <memory>
         45 | 
      test_harness/test.cxx: In member function 'virtual void test_harness::test::run()':
      test_harness/test.cxx:127:5: error: '_scoped_conn' was not declared in this scope
        127 |     _scoped_conn = std::make_shared<scoped_connection>(db_create_config);
            |     ^~~~~~~~~~~~
      test_harness/test.cxx:127:25: error: 'make_shared' is not a member of 'std'
        127 |     _scoped_conn = std::make_shared<scoped_connection>(db_create_config);
            |                         ^~~~~~~~~~~
      test_harness/test.cxx:41:1: note: 'std::make_shared' is defined in header '<memory>'; did you forget to '#include <memory>'?
         40 | #include "util/api_const.h"
        +++ |+#include <memory>
         41 | 
      test_harness/test.cxx:127:54: error: expected primary-expression before '>' token
        127 |     _scoped_conn = std::make_shared<scoped_connection>(db_create_config);
            |                                                      ^
      make[2]: *** [Makefile:827: test_harness/test.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      In file included from tests/run.cxx:34:
      ./test_harness/test.h:97:10: error: 'shared_ptr' in namespace 'std' does not name a template type
         97 |     std::shared_ptr<scoped_connection> _scoped_conn;
            |          ^~~~~~~~~~
      ./test_harness/test.h:45:1: note: 'std::shared_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
         44 | #include "workload_generator.h"
        +++ |+#include <memory>
         45 | 
      make[2]: *** [Makefile:827: tests/run.o] Error 1
      make[1]: *** [Makefile:2509: all-recursive] Error 1
      make: *** [Makefile:1223: all] Error 2
       

      cc: acm

            Assignee:
            will.korteland@mongodb.com Will Korteland
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: