[SERVER-27986] Cannot compile MongoDB on s390x with clang Created: 13/Feb/17  Updated: 06/Dec/22  Resolved: 01/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Server Development Platform
Operating System: ALL
Sprint: Dev Platform 2021-12-13
Participants:

 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.



 Comments   
Comment by Andrew Morrow (Inactive) [ 01/Dec/21 ]

The upcoming v4 mongodbtoolchain clang can compile the server tree on s390x, so I'm closing this ticket as a duplicate of the ticket where we added support.

Generated at Thu Feb 08 04:16:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.