Cannot compile MongoDB on s390x with clang

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform
    • ALL
    • Dev Platform 2021-12-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The assembly code for the pause statement is not supported by clang on s390x.

      src/mongo/util/concurrency/spin_lock.cpp:57:9: error: invalid operand for instruction
              MONGO_YIELD_CORE_FOR_SMT();
              ^
      src/mongo/platform/pause.h:64:53: note: expanded from macro 'MONGO_YIELD_CORE_FOR_SMT'
      #define MONGO_YIELD_CORE_FOR_SMT() __asm__ volatile("lr 0,0" ::: "memory")
                                                          ^
      <inline asm>:1:5: note: instantiated into assembly here
              lr 0,0
                 ^
      1 error generated.
      

            Assignee:
            [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: