Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-33348

Build fails as TaggedPtr is undefined for ppc64le

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 6.5.0
    • None
    • couchbase-bucket
    • Linux powerpc64 / ppc64le

    Description

      Couchbase build fails with error "#error "TaggedPtr is x64 specific code. Not tested on other architectures"

      To add check for ppc64le architecture, following change needs to be added:

       

      diff --git a/engines/ep/src/tagged_ptr.h b/engines/ep/src/tagged_ptr.h
      index 4b3a046..75150a7 100644
      --- a/engines/ep/src/tagged_ptr.h
      +++ b/engines/ep/src/tagged_ptr.h
      @@ -19,7 +19,7 @@
      #include <memory>
      -#if !__x86_64__ && !_M_X64 && !__s390x__
      +#if !__x86_64__ && !_M_X64 && !__s390x__ && !__powerpc64__
       #error "TaggedPtr is x64 specific code. Not tested on other architectures"
       #endif
      diff --git a/engines/ep/tests/ep_testsuite_xdcr.cc b/engines/ep/tests/ep_testsuite_xdcr.cc
      index b55d732..a691c4d 100644
      --- a/engines/ep/tests/ep_testsuite_xdcr.cc
      +++ b/engines/ep/tests/ep_testsuite_xdcr.cc
      @@ -2793,7 +2793,7 @@ static enum test_result test_cas_options_and_nmeta(EngineIface* h) {
       itemMeta.flags = 0xdeadbeef;
      // Watson (4.6) accepts valid encodings, but ignores them
      - std::vector<char> junkMeta = {-2,-1,2,3};
      + std::vector<char> junkMeta = {(-2,-1,2,3)};
      int force = 0;
      

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              trond Trond Norbye
              sgiri Sandip Giri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty