<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/137054>137054</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            compiler-rt inconsistent with Clang about meaning of "arm-none-eabi"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RossSmyth
      </td>
    </tr>
</table>

<pre>
    Hello,

This is partly a questions of "is this desired?"

If you ask Clang to build for "arm-none-eabi", this is essentially an alias for "armv4t-unknown-none-eabi". This is good, and also consistent with GCC.

Next if you would like to build compiler_rt for "arm-none-eabi", it is not quite the same as Clang's interpretation. Instead it builds for "armv7-a". This is surprising! It can lead to build failures that are unexpected, for example:

```
/build/compiler-rt-src-19.1.7/compiler-rt/lib/builtins/arm/sync-ops.h:22:2: error: #error DMB is only supported on ARMv6+
   22 | #error DMB is only supported on ARMv6+
```

When building compilter-rt for arm-embedded (Clang's interpretation) on nixpkgs right now.

There is a test that checks for this as well, so at minimum someone knows of it.
https://github.com/llvm/llvm-project/blob/cd708029e0b2869e80abe31ddb175f7c35361f90/compiler-rt/cmake/base-config-ix.cmake#L272
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVMFu4zYQ_Rr6MpBAUbIVHXRwvHAboNvDtkCPBUWNJdYUqeWMkvjvC0oJst6iCyxgWISt92bee5zRRHbwiK3YP4r9p51eeAyx_RKI_phuPO660N_aX9G5INRJyKOQxz9HS2AJZh3Z3UDD1wWJbfAE4QJCKUvA6Z0eyUbsRXkWSm3YpwvcwgKarnBy2g_AAbrFuh4uISasjlPmg8cMdWcTTJ02MkuAROjZapeqetDOavoG91xxtvirDy_-jiKH946HEPpEqH0P2lEAEzxZYvQML5ZH-OV0yrdGf8dXBrt1-xIW14OzV_xo14Rptg7j35F_1LrlVNcHhq-LZQQeEUhPCJo2A4SqCaxnjHNE1snGHJ48Meo-oddqdyrrTN-JoiXO0ZJNXAU8MRjtwSX4h7fauiViikUz6IiweHyd0TCufiR2fNXT7FCUx80AcZBvH3kU6rwSCXV-151FziiarGjyIq_v_xDq7Gz3BmLrSaizjpNQZ7p5k4WZ8lGUR6XSlyiPgDGGmA5ClesZPn1-TNqCdzegZZ5DZOwheDh--fx8EOpRyCMAKAWiPv0c7E6YPP41ot9ssn54i5VXGastKVScOux77EGoh_8LTagm1fH2db4OBNEOI4MPL_n7zGDE1JoGRuItCDOiuW7ZrldcE7ygcykRCqAZJuvttExAYcLgEdLdXofMcuIdmWdKgamzUOfB8rh0uQnJaOee3x_ZHMM_aFIqnQspFtPX8kGqBmWnHg4NPkjdYVn0fVfU-0ttyn15KC6N_E-qZtJXTDyaMDPBX-yQ2df87efyN1WrXd-WfVM2eodtUVf7qmyaqtyNbSkfJBZVpQ_V4VI02qhC71XVyEtRStwfdrZVUu1lpcr0rMq8N1IZWWNnqtLsGxSVxElblydVeYjDzhIt2BZlLffVzukOHa2LTCmzxaTSTovtakO3DCQq6SwxfVCwZYftNzLB-u-3wrapdBcWhgm1Txdl23Tfj_xuia796VhWGWlI3pQ8t-rfAAAA__9mC9O4">