[MDEV-27402] Error "'asm goto' constructs are not supported yet" on macOS with Xcode 9.4.1 Created: 2022-01-02 Updated: 2022-01-28 Resolved: 2022-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.6.6, 10.7.2, 10.8.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | clang, macos | ||
| Environment: |
macOS 10.13.6 (High Sierra) with Xcode 9.4.1 |
||
| Issue Links: |
|
||||||||
| Description |
|
I get the following error while trying to build current MariaDB Server 10.6 or 10.7 from GitHub on macOS High Sierra:
Server was built like this (similar 10.3-105 builds go without such a problem):
Some more details about the environment:
Quick check of the source code:
seems to hint that the check for clang 10+ version is NOT enough for macOS 10.1.3.x and Xcode 9.4.1 case. |
| Comments |
| Comment by Marko Mäkelä [ 2022-01-03 ] | ||||||||||||||||||||||
|
Using lock bts is a mere performance optimization. The std::atomic::fetch_or() does translate into correct but suboptimal code (loop around lock cmpxchg). Is there a more recent version of Apple’s fork of Clang? How could the "Apple clang 10" be distinguished from plain clang? | ||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2022-01-22 ] | ||||||||||||||||||||||
|
The following primitive patch allows build of today's 10.6 to proceed:
|