Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27986

Cannot compile MongoDB on s390x with clang

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Development Platform
    • ALL
    • Dev Platform 2021-12-13

    Description

      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.
      

      Attachments

        Activity

          People

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: