# fatal bug in master: December 26, 2023

**URL:** <https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719>\
**Category:** Code\
**Created:** [December 26, 2023, 11:13am UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719 "2023-12-26T11:13:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 11:13am UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/1 "2023-12-26T11:13:35Z")

</div>

Hello everyone, I couldn’t find much information on this online so thought I’d post this here.

Using the latest version of Spack on an apple M3 Pro:

 ![Screenshot 2023-12-26 at 4.06.11 AM](https://discourse.cmake.org/uploads/default/original/2X/9/92d8a1c6cb1f60a4a8205e48e4ee562bd7f8e720.png)

Fails with an ats error. Looks like the ats stuff is from “Mac Catalyst 13.1–13.1” which is currently deprecated. Any advice on how to fix without changing the compiler to apple clang? It also fails on cmake 3.27.7

---

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 11:19am UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/2 "2023-12-26T11:19:32Z")

</div>

The full error:

```bash
56 errors found in build log:
     1676 [82%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalXCodeGenerator.cxx.o
     1677 [82%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmLocalXCodeGenerator.cxx.o
     1678 [82%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalWatcomWMakeGenerator.cxx.o
     1679 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:32,
     1680 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:27,
     1681 from /private/var/folders/nv/nxs3xpbs20x9_r7sr_25ygb80000gn/T/keithhbova/spack-stage/spack-stage-cmake-master-guejrg26vbskqx44mnd2ylvp5yxrn5ya/spack-src/Source/cmGlobalXCode
             Generator.cxx:63:
  >> 1682 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:230:24: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1683 230 | ATSGetGeneration(void) ATS_UNAVAILABLE;
     1684 | ^ ~~~~~~~~~~~~~~
  >> 1685 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:370:38: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1686 370 | ATSFontContainerRef * oContainer) ATS_UNAVAILABLE;
     1687 | ^ ~~~~~~~~~~~~~~
  >> 1688 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:388:35: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1689 388 | ATSOptionFlags iOptions) ATS_UNAVAILABLE;
     1690 | ^ ~~~~~~~~~~~~~~
  >> 1691 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:480:38: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1692 480 | ATSFontContainerRef * oContainer) ATS_UNAVAILABLE;
     1693 | ^ ~~~~~~~~~~~~~~
  >> 1694 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:518:30: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1695 518 | Boolean iEnabled) ATS_UNAVAILABLE;
     1696 | ^ ~~~~~~~~~~~~~~
  >> 1697 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:544:36: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1698 544 | ATSFontIsEnabled(ATSFontRef iFont) ATS_UNAVAILABLE;
     1699 | ^ ~~~~~~~~~~~~~~
  >> 1700 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:564:43: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1701 564 | void * iRefCon) ATS_UNAVAILABLE;
     1702 | ^ ~~~~~~~~~~~~~~
  >> 1703 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:584:40: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1704 584 | ATSFontFamilyIterator * ioIterator) ATS_UNAVAILABLE;
     1705 | ^ ~~~~~~~~~~~~~~
  >> 1706 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:599:66: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1707 599 | ATSFontFamilyIteratorRelease(ATSFontFamilyIterator * ioIterator) ATS_UNAVAILABLE;
     1708 | ^ ~~~~~~~~~~~~~~
  >> 1709 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:619:63: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1710 619 | ATSFontFamilyIterator * ioIterator) ATS_UNAVAILABLE;
     1711 | ^ ~~~~~~~~~~~~~~
  >> 1712 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:636:63: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1713 636 | ATSFontFamilyRef * oFamily) ATS_UNAVAILABLE;
     1714 | ^ ~~~~~~~~~~~~~~
  >> 1715 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:653:30: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1716 653 | ATSOptionFlags iOptions) ATS_UNAVAILABLE;
     1717 | ^ ~~~~~~~~~~~~~~
  >> 1718 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:668:54: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1719 668 | ATSFontFamilyGetGeneration(ATSFontFamilyRef iFamily) ATS_UNAVAILABLE;
     1720 | ^ ~~~~~~~~~~~~~~
  >> 1721 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:686:29: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1722 686 | CFStringRef * oName) ATS_UNAVAILABLE;
     1723 | ^ ~~~~~~~~~~~~~~
  >> 1724 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:723:37: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1725 723 | void * iRefCon) ATS_UNAVAILABLE;
     1726 | ^ ~~~~~~~~~~~~~~
  >> 1727 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:744:38: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1728 744 | ATSFontIterator * ioIterator) ATS_UNAVAILABLE;
     1729 | ^ ~~~~~~~~~~~~~~
  >> 1730 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:759:63: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1731 759 | ATSFontIteratorRelease(ATSFontIterator * ioIterator) ATS_UNAVAILABLE;
     1732 | ^ ~~~~~~~~~~~~~~
  >> 1733 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:779:63: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1734 779 | ATSFontIterator * ioIterator) ATS_UNAVAILABLE;
     1735 | ^ ~~~~~~~~~~~~~~
  >> 1736 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:796:63: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1737 796 | ATSFontRef * oFont) ATS_UNAVAILABLE;
     1738 | ^ ~~~~~~~~~~~~~~
  >> 1739 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:813:31: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1740 813 | ATSOptionFlags iOptions) ATS_UNAVAILABLE;
     1741 | ^ ~~~~~~~~~~~~~~
  >> 1742 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:830:30: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1743 830 | ATSOptionFlags iOptions) ATS_UNAVAILABLE;
     1744 | ^ ~~~~~~~~~~~~~~
  >> 1745 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:850:34: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1746 850 | ItemCount * oCount) ATS_UNAVAILABLE;
     1747 | ^ ~~~~~~~~~~~~~~
  >> 1748 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:865:40: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1749 865 | ATSFontGetGeneration(ATSFontRef iFont) ATS_UNAVAILABLE;
     1750 | ^ ~~~~~~~~~~~~~~
  >> 1751 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:883:27: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1752 883 | CFStringRef * oName) ATS_UNAVAILABLE;
     1753 | ^ ~~~~~~~~~~~~~~
  >> 1754 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:901:27: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1755 901 | CFStringRef * oName) ATS_UNAVAILABLE;
     1756 | ^ ~~~~~~~~~~~~~~
  >> 1757 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:920:53: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1758 920 | ByteCount * oSize) /* can be NULL */ ATS_UNAVAILABLE;
     1759 | ^ ~~~~~~~~~~~~~~
  >> 1760 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:941:55: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1761 941 | ByteCount * oSize) /* can be NULL */ ATS_UNAVAILABLE;
     1762 | ^ ~~~~~~~~~~~~~~
  >> 1763 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:959:31: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1764 959 | ATSFontMetrics * oMetrics) ATS_UNAVAILABLE;
     1765 | ^ ~~~~~~~~~~~~~~
  >> 1766 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:977:31: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1767 977 | ATSFontMetrics * oMetrics) ATS_UNAVAILABLE;
     1768 | ^ ~~~~~~~~~~~~~~
  >> 1769 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:995:60: error: expected initializer bef
             ore 'ATS_UNAVAILABLE'
     1770 995 | ATSFontFamilyFindFromQuickDrawName(ConstStr255Param iName) ATS_UNAVAILABLE;
     1771 | ^ ~~~~~~~~~~~~~~
  >> 1772 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1012:29: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1773 1012 | Str255 oName) ATS_UNAVAILABLE;
     1774 | ^ ~~~~~~~~~~~~~~
  >> 1775 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1108:54: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1776 1108 | ByteCount * oSize) /* can be NULL */ ATS_UNAVAILABLE;
     1777 | ^ ~~~~~~~~~~~~~~
  >> 1778 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1146:57: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1779 1146 | void * info) /* can be NULL */ ATS_UNAVAILABLE;
     1780 | ^ ~~~~~~~~~~~~~~
  >> 1781 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1193:71: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1782 1193 | ATSFontNotificationRef * oNotificationRef) /* can be NULL */ ATS_UNAVAILABLE;
     1783 | ^ ~~~~~~~~~~~~~~
  >> 1784 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1225:72: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1785 1225 | ATSFontNotificationUnsubscribe(ATSFontNotificationRef notificationRef) ATS_UNAVAILABLE;
     1786 | ^ ~~~~~~~~~~~~~~
  >> 1787 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1353:75: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1788 1353 | const ATSFontQuerySourceContext * context) /* can be NULL */ ATS_UNAVAILABLE;
     1789 | ^ ~~~~~~~~~~~~~~
  >> 1790 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1514:78: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1791 1514 | ATSFontSetGlobalAutoActivationSetting(ATSFontAutoActivationSetting iSetting) ATS_UNAVAILABLE;
     1792 | ^ ~~~~~~~~~~~~~~
  >> 1793 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1536:45: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1794 1536 | ATSFontGetGlobalAutoActivationSetting(void) ATS_UNAVAILABLE;
     1795 | ^ ~~~~~~~~~~~~~~
  >> 1796 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1579:55: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1797 1579 | CFURLRef iApplicationFileURL) ATS_UNAVAILABLE;
     1798 | ^ ~~~~~~~~~~~~~~
  >> 1799 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1614:78: error: expected initializer be
             fore 'ATS_UNAVAILABLE'
     1800 1614 | ATSFontGetAutoActivationSettingForApplication(CFURLRef iApplicationFileURL) ATS_UNAVAILABLE;
     1801 | ^ ~~~~~~~~~~~~~~
     1802 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:21,
     1803 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
     1804 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
     1805 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
  >> 1806 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected unqualified-id before '^' token
     1807 392 | typedef void (^CGPathApplyBlock)(const CGPathElement * element);
     1808 | ^
  >> 1809 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected ')' before '^' token
     1810 392 | typedef void (^CGPathApplyBlock)(const CGPathElement * element);
     1811 | ~^
     1812 | )
  >> 1813 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:394:53: error: 'CGPathApplyBlock' has not been declared
     1814 394 | CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)
     1815 | ^ ~~~~~~~~~~~~~~~
     1816 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:14,
     1817 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h:15,
     1818 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h:16,
     1819 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:23:
  >> 1820 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected unqualified-id before '^' token
     1821 103 | typedef bool (^CGPDFArrayApplierBlock)(size_t index,
     1822 | ^
  >> 1823 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected ')' before '^' token
     1824 103 | typedef bool (^CGPDFArrayApplierBlock)(size_t index,
     1825 | ~^
     1826 | )
  >> 1827 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:113:5: error: 'CGPDFArrayApplierBlock' has not been declared
     1828 113 | CGPDFArrayApplierBlock cg_nullable block, void * __nullable info)
     1829 | ^ ~~~~~~~~~~~~~~~~~~~~~
  >> 1830 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected unqualified-id before '^' token
     1831 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char * key,
     1832 | ^
  >> 1833 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected ')' before '^' token
     1834 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char * key,
     1835 | ~^
     1836 | )
  >> 1837 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:126:5: error: 'CGPDFDictionaryApplierBlock' has not been declar
             ed
     1838 126 | CGPDFDictionaryApplierBlock cg_nullable block, void * __nullable info)
     1839 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
     1840 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:20,
     1841 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:47:
  >> 1842 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected unqualified-id before '^' token
     1843 42 | typedef void (^CGImageSourceAnimationBlock)(size_t index, CGImageRef image, bool* stop);
     1844 | ^
  >> 1845 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected ')' before '^' token
     1846 42 | typedef void (^CGImageSourceAnimationBlock)(size_t index, CGImageRef image, bool* stop);
     1847 | ~^
     1848 | )
  >> 1849 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:50:107: error: 'CGImageSourceAnimationBlock' has not been declared
     1850 50 | IMAGEIO_EXTERN OSStatus CGAnimateImageAtURLWithBlock(CFURLRef url, CFDictionaryRef _iio_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO_AVAILABLE_STARTING(10.15, 13.0);
     1851 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  >> 1852 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:58:108: error: 'CGImageSourceAnimationBlock' has not been declared
     1853 58 | IMAGEIO_EXTERN OSStatus CGAnimateImageDataWithBlock(CFDataRef data, CFDictionaryRef _iio_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO_AVAILABLE_STARTING(10.15, 13.0);
     1854 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  >> 1855 make[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmGlobalXCodeGenerator.cxx.o] Error 1
     1856 make[2]: *** Waiting for unfinished jobs....
  >> 1857 make[1]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2
  >> 1858 make: *** [all] Error 2

```

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [December 26, 2023, 12:05pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/3 "2023-12-26T12:05:59Z")

</div>

What Xcode, macOS deployment target, and SDK is in use here?

---

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 4:19pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/4 "2023-12-26T16:19:55Z")

</div>

I just have the command line Xcode installed:

```bash
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version
version: 15.1.0.0.1.1700200546

```

This was using Spack on osx Sonoma, the MacBook Pro 18gb (m3-pro).

I tried

```bash
cxxflags=-DwxBUILD_INSTALL=OFF 

```

but unfortunately that did not work either.

---

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 4:41pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/5 "2023-12-26T16:41:58Z")

</div>

Downloading the latest xtools from the Apple Store did not work either. Steps to reproduce:

In a spack environment:

```bash
spack add gcc@13.2.0
spack concretize
spack install

```

Deactivate and create a new spack env. These are the contents of my package:

```yaml
# This is a Spack Environment file.
#
# It describes a set of packages to be installed, along with
# configuration settings.
spack:
  # add package specs to the `specs` list
  specs:
  - openmpi
  view: true
  concretizer:
    unify: true
  compilers:
  - compiler:
      spec: gcc@=13.2.0
      paths:
        cc: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gcc
        cxx: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/g++
        f77: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gfortran
        fc: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gfortran
      flags: {}
      operating_system: sonoma
      target: aarch64
      modules: []
      environment: {}
      extra_rpaths: []

```

And add/ build cmake

```bash
spack add cmake
spack concretize
spack install -v -j22

```

---

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 4:56pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/6 "2023-12-26T16:56:11Z")

</div>

Link to the thread with spack:

> <https://github.com/spack/spack/issues/41856>
>
> \### Steps to reproduce the issue
> 
> \`\`\`bash
> $ spack spec -l
> Input spec
> \--------…------------------------
> - cmake
> 
> Concretized
> \--------------------------------
> - 6km3c52 cmake@3.27.7%gcc@13.2.0~doc+ncurses+ownlibs build\_system=generic build\_type=Release arch=darwin-sonoma-m1
> \[+\] e2uyjwq ^curl@8.4.0%gcc@13.2.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build\_system=autotools libs=shared,static tls=secure\_transport arch=darwin-sonoma-m1
> \[+\] ys5tbb4 ^gmake@4.4.1%gcc@13.2.0~guile build\_system=generic arch=darwin-sonoma-m1
> \[+\] 3icqftr ^gnuconfig@2022-09-17%gcc@13.2.0 build\_system=generic arch=darwin-sonoma-m1
> \[+\] 6rc46wb ^nghttp2@1.57.0%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] swpghib ^pkgconf@1.9.5%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] uebg26j ^ncurses@6.4%gcc@13.2.0~symlinks+termlib abi=none build\_system=autotools arch=darwin-sonoma-m1
> \[+\] zph3t4z ^zlib-ng@2.1.4%gcc@13.2.0+compat+opt build\_system=autotools arch=darwin-sonoma-m1
> 
> Input spec
> \--------------------------------
> - openmpi
> 
> Concretized
> \--------------------------------
> \[+\] es4hdse openmpi@4.1.6%gcc@13.2.0~atomics~cuda~cxx~cxx\_exceptions~gpfs~internal-hwloc~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+romio+rsh~singularity+static+vt+wrapper-rpath build\_system=autotools fabrics=none schedulers=none arch=darwin-sonoma-m1
> \[+\] ys5tbb4 ^gmake@4.4.1%gcc@13.2.0~guile build\_system=generic arch=darwin-sonoma-m1
> \[+\] 3icqftr ^gnuconfig@2022-09-17%gcc@13.2.0 build\_system=generic arch=darwin-sonoma-m1
> \[+\] lgublq4 ^hwloc@2.9.1%gcc@13.2.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl~pci~rocm build\_system=autotools libs=shared,static arch=darwin-sonoma-m1
> \[+\] 6xnql4p ^libxml2@2.10.3%gcc@13.2.0+pic~python+shared build\_system=autotools arch=darwin-sonoma-m1
> \[+\] muf3oww ^libiconv@1.17%gcc@13.2.0 build\_system=autotools libs=shared,static arch=darwin-sonoma-m1
> \[+\] 2e35uuv ^xz@5.4.1%gcc@13.2.0~pic build\_system=autotools libs=shared,static arch=darwin-sonoma-m1
> \[+\] uebg26j ^ncurses@6.4%gcc@13.2.0~symlinks+termlib abi=none build\_system=autotools arch=darwin-sonoma-m1
> \[+\] bvte3uy ^openssh@9.5p1%gcc@13.2.0+gssapi build\_system=autotools patches=3505c58,d886b98 arch=darwin-sonoma-m1
> \[+\] oketp54 ^krb5@1.20.1%gcc@13.2.0+shared build\_system=autotools arch=darwin-sonoma-m1
> \[+\] kwpxljc ^bison@3.8.2%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] 3tv67lq ^m4@1.4.19%gcc@13.2.0+sigsegv build\_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-sonoma-m1
> \[+\] v27bzcp ^libsigsegv@2.14%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] nornrui ^diffutils@3.9%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] vjm3k2o ^findutils@4.9.0%gcc@13.2.0 build\_system=autotools patches=440b954 arch=darwin-sonoma-m1
> \[+\] 73pnhrn ^gettext@0.22.3%gcc@13.2.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build\_system=autotools arch=darwin-sonoma-m1
> \[+\] can6vpr ^tar@1.34%gcc@13.2.0 build\_system=autotools zip=pigz arch=darwin-sonoma-m1
> \[+\] yayvbo4 ^pigz@2.7%gcc@13.2.0 build\_system=makefile arch=darwin-sonoma-m1
> \[+\] k3ehmgf ^zstd@1.5.5%gcc@13.2.0+programs build\_system=makefile compression=none libs=shared,static arch=darwin-sonoma-m1
> \[+\] aplplbj ^libedit@3.1-20210216%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] nqkadr6 ^libxcrypt@4.4.35%gcc@13.2.0~obsolete\_api build\_system=autotools patches=4885da3 arch=darwin-sonoma-m1
> \[+\] ce5degb ^openssl@3.1.3%gcc@13.2.0~docs+shared build\_system=generic certs=mozilla arch=darwin-sonoma-m1
> \[+\] u3xylxq ^ca-certificates-mozilla@2023-05-30%gcc@13.2.0 build\_system=generic arch=darwin-sonoma-m1
> \[+\] ofcdebu ^perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build\_system=generic patches=714e4d1 arch=darwin-sonoma-m1
> \[+\] w6nww6j ^berkeley-db@18.1.40%gcc@13.2.0+cxx~docs+stl build\_system=autotools patches=26090f4,b231fcc arch=darwin-sonoma-m1
> \[+\] rjummrn ^bzip2@1.0.8%gcc@13.2.0~debug~pic+shared build\_system=generic arch=darwin-sonoma-m1
> \[+\] z6q4bah ^gdbm@1.23%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] fc43bvl ^readline@8.2%gcc@13.2.0 build\_system=autotools patches=bbf97f1 arch=darwin-sonoma-m1
> \[+\] swpghib ^pkgconf@1.9.5%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] wkkrzmu ^pmix@5.0.1%gcc@13.2.0~docs+pmi\_backwards\_compatibility~python~restful build\_system=autotools arch=darwin-sonoma-m1
> \[+\] a4kb67w ^libevent@2.1.12%gcc@13.2.0+openssl build\_system=autotools arch=darwin-sonoma-m1
> \[+\] bxdc5jq ^autoconf@2.69%gcc@13.2.0 build\_system=autotools patches=35c4492,7793209,a49dd5b arch=darwin-sonoma-m1
> \[+\] ityqqdz ^automake@1.16.5%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] rcssk3l ^libtool@2.4.7%gcc@13.2.0 build\_system=autotools arch=darwin-sonoma-m1
> \[+\] zph3t4z ^zlib-ng@2.1.4%gcc@13.2.0+compat+opt build\_system=autotools arch=darwin-sonoma-m1
> \`\`\`
> 
> Steps to reproduce:
> 
> In a spack env
> 
> \`\`\`bash
> spack add gcc@13.2.0
> spack concretize
> spack install
> \`\`\`
> Deactivate and created a new spack env. These are the contents of my package:
> 
> \`\`\`yaml
> \# This is a Spack Environment file.
> \#
> \# It describes a set of packages to be installed, along with
> \# configuration settings.
> spack:
> # add package specs to the \`specs\` list
> specs:
> - openmpi
> view: true
> concretizer:
> unify: true
> compilers:
> - compiler:
> spec: gcc@=13.2.0
> paths:
> cc: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gcc
> cxx: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/g++
> f77: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gfortran
> fc: /Users/keithhbova/spack/var/spack/environments/default/.spack-env/view/bin/gfortran
> flags: {}
> operating\_system: sonoma
> target: aarch64
> modules: \[\]
> environment: {}
> extra\_rpaths: \[\]
> \`\`\`
> 
> Then add/build cmake:
> 
> \`\`\`bash
> spack add cmake
> spack concretize
> spack install -v -j22
> \`\`\`
> 
> 
> \### Error message
> 
> \<details\>\<summary\>Error message\</summary\>
> 
> \<pre\>
> \[82%\] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmLocalXCodeGenerator.cxx.o
> \[82%\] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalWatcomWMakeGenerator.cxx.o
> In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:32,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:27,
> from /private/var/folders/nv/nxs3xpbs20x9\_r7sr\_25ygb80000gn/T/keithhbova/spack-stage/spack-stage-cmake-3.27.7-6km3c52oz7suzhwptcrcfmn3ydtmi4tg/spack-src/Source/cmGlobalXCodeGenerator.cxx:62:
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:230:24: error: expected initializer before 'ATS\_UNAVAILABLE'
> 230 | ATSGetGeneration(void) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:370:38: error: expected initializer before 'ATS\_UNAVAILABLE'
> 370 | ATSFontContainerRef \* oContainer) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:388:35: error: expected initializer before 'ATS\_UNAVAILABLE'
> 388 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:480:38: error: expected initializer before 'ATS\_UNAVAILABLE'
> 480 | ATSFontContainerRef \* oContainer) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:518:30: error: expected initializer before 'ATS\_UNAVAILABLE'
> 518 | Boolean iEnabled) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:544:36: error: expected initializer before 'ATS\_UNAVAILABLE'
> 544 | ATSFontIsEnabled(ATSFontRef iFont) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:564:43: error: expected initializer before 'ATS\_UNAVAILABLE'
> 564 | void \* iRefCon) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:584:40: error: expected initializer before 'ATS\_UNAVAILABLE'
> 584 | ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:599:66: error: expected initializer before 'ATS\_UNAVAILABLE'
> 599 | ATSFontFamilyIteratorRelease(ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:619:63: error: expected initializer before 'ATS\_UNAVAILABLE'
> 619 | ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:636:63: error: expected initializer before 'ATS\_UNAVAILABLE'
> 636 | ATSFontFamilyRef \* oFamily) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:653:30: error: expected initializer before 'ATS\_UNAVAILABLE'
> 653 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:668:54: error: expected initializer before 'ATS\_UNAVAILABLE'
> 668 | ATSFontFamilyGetGeneration(ATSFontFamilyRef iFamily) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:686:29: error: expected initializer before 'ATS\_UNAVAILABLE'
> 686 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:723:37: error: expected initializer before 'ATS\_UNAVAILABLE'
> 723 | void \* iRefCon) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:744:38: error: expected initializer before 'ATS\_UNAVAILABLE'
> 744 | ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:759:63: error: expected initializer before 'ATS\_UNAVAILABLE'
> 759 | ATSFontIteratorRelease(ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:779:63: error: expected initializer before 'ATS\_UNAVAILABLE'
> 779 | ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:796:63: error: expected initializer before 'ATS\_UNAVAILABLE'
> 796 | ATSFontRef \* oFont) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:813:31: error: expected initializer before 'ATS\_UNAVAILABLE'
> 813 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:830:30: error: expected initializer before 'ATS\_UNAVAILABLE'
> 830 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:850:34: error: expected initializer before 'ATS\_UNAVAILABLE'
> 850 | ItemCount \* oCount) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:865:40: error: expected initializer before 'ATS\_UNAVAILABLE'
> 865 | ATSFontGetGeneration(ATSFontRef iFont) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:883:27: error: expected initializer before 'ATS\_UNAVAILABLE'
> 883 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:901:27: error: expected initializer before 'ATS\_UNAVAILABLE'
> 901 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:920:53: error: expected initializer before 'ATS\_UNAVAILABLE'
> 920 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:941:55: error: expected initializer before 'ATS\_UNAVAILABLE'
> 941 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:959:31: error: expected initializer before 'ATS\_UNAVAILABLE'
> 959 | ATSFontMetrics \* oMetrics) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:977:31: error: expected initializer before 'ATS\_UNAVAILABLE'
> 977 | ATSFontMetrics \* oMetrics) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:995:60: error: expected initializer before 'ATS\_UNAVAILABLE'
> 995 | ATSFontFamilyFindFromQuickDrawName(ConstStr255Param iName) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1012:29: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1012 | Str255 oName) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1108:54: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1108 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1146:57: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1146 | void \* info) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1193:71: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1193 | ATSFontNotificationRef \* oNotificationRef) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1225:72: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1225 | ATSFontNotificationUnsubscribe(ATSFontNotificationRef notificationRef) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1353:75: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1353 | const ATSFontQuerySourceContext \* context) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1514:78: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1514 | ATSFontSetGlobalAutoActivationSetting(ATSFontAutoActivationSetting iSetting) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1536:45: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1536 | ATSFontGetGlobalAutoActivationSetting(void) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1579:55: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1579 | CFURLRef iApplicationFileURL) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1614:78: error: expected initializer before 'ATS\_UNAVAILABLE'
> 1614 | ATSFontGetAutoActivationSettingForApplication(CFURLRef iApplicationFileURL) ATS\_UNAVAILABLE;
> | ^ ~~~~~~~~~~~~~~
> In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:21,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected unqualified-id before '^' token
> 392 | typedef void (^CGPathApplyBlock)(const CGPathElement \* element);
> | ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected ')' before '^' token
> 392 | typedef void (^CGPathApplyBlock)(const CGPathElement \* element);
> | ~^
> | )
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:394:53: error: 'CGPathApplyBlock' has not been declared
> 394 | CG\_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF\_NOESCAPE block)
> | ^ ~~~~~~~~~~~~~~~
> In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:14,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h:15,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h:16,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:23:
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected unqualified-id before '^' token
> 103 | typedef bool (^CGPDFArrayApplierBlock)(size\_t index,
> | ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected ')' before '^' token
> 103 | typedef bool (^CGPDFArrayApplierBlock)(size\_t index,
> | ~^
> | )
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:113:5: error: 'CGPDFArrayApplierBlock' has not been declared
> 113 | CGPDFArrayApplierBlock cg\_nullable block, void \* \_\_nullable info)
> | ^ ~~~~~~~~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected unqualified-id before '^' token
> 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char \* key,
> | ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected ')' before '^' token
> 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char \* key,
> | ~^
> | )
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:126:5: error: 'CGPDFDictionaryApplierBlock' has not been declared
> 126 | CGPDFDictionaryApplierBlock cg\_nullable block, void \* \_\_nullable info)
> | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:20,
> from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:47:
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected unqualified-id before '^' token
> 42 | typedef void (^CGImageSourceAnimationBlock)(size\_t index, CGImageRef image, bool\* stop);
> | ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected ')' before '^' token
> 42 | typedef void (^CGImageSourceAnimationBlock)(size\_t index, CGImageRef image, bool\* stop);
> | ~^
> | )
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:50:107: error: 'CGImageSourceAnimationBlock' has not been declared
> 50 | IMAGEIO\_EXTERN OSStatus CGAnimateImageAtURLWithBlock(CFURLRef url, CFDictionaryRef \_iio\_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO\_AVAILABLE\_STARTING(10.15, 13.0);
> | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:58:108: error: 'CGImageSourceAnimationBlock' has not been declared
> 58 | IMAGEIO\_EXTERN OSStatus CGAnimateImageDataWithBlock(CFDataRef data, CFDictionaryRef \_iio\_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO\_AVAILABLE\_STARTING(10.15, 13.0);
> | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> make\[2\]: \*\*\* \[Source/CMakeFiles/CMakeLib.dir/cmGlobalXCodeGenerator.cxx.o\] Error 1
> make\[2\]: \*\*\* Waiting for unfinished jobs....
> make\[1\]: \*\*\* \[Source/CMakeFiles/CMakeLib.dir/all\] Error 2
> make: \*\*\* \[all\] Error 2
> ==\> Error: ProcessError: Command exited with status 2:
> 'make' '-j22'
> 
> 56 errors found in build log:
> 1646 \[82%\] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalXCodeGenerator.cxx.o
> 1647 \[82%\] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmLocalXCodeGenerator.cxx.o
> 1648 \[82%\] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalWatcomWMakeGenerator.cxx.o
> 1649 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:32,
> 1650 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:27,
> 1651 from /private/var/folders/nv/nxs3xpbs20x9\_r7sr\_25ygb80000gn/T/keithhbova/spack-stage/spack-stage-cmake-3.27.7-6km3c52oz7suzhwptcrcfmn3ydtmi4tg/spack-src/Sou
> rce/cmGlobalXCodeGenerator.cxx:62:
> \>\> 1652 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:230:24: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1653 230 | ATSGetGeneration(void) ATS\_UNAVAILABLE;
> 1654 | ^ ~~~~~~~~~~~~~~
> \>\> 1655 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:370:38: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1656 370 | ATSFontContainerRef \* oContainer) ATS\_UNAVAILABLE;
> 1657 | ^ ~~~~~~~~~~~~~~
> \>\> 1658 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:388:35: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1659 388 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> 1660 | ^ ~~~~~~~~~~~~~~
> \>\> 1661 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:480:38: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1662 480 | ATSFontContainerRef \* oContainer) ATS\_UNAVAILABLE;
> 1663 | ^ ~~~~~~~~~~~~~~
> \>\> 1664 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:518:30: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1665 518 | Boolean iEnabled) ATS\_UNAVAILABLE;
> 1666 | ^ ~~~~~~~~~~~~~~
> \>\> 1667 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:544:36: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1668 544 | ATSFontIsEnabled(ATSFontRef iFont) ATS\_UNAVAILABLE;
> 1669 | ^ ~~~~~~~~~~~~~~
> \>\> 1670 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:564:43: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1671 564 | void \* iRefCon) ATS\_UNAVAILABLE;
> 1672 | ^ ~~~~~~~~~~~~~~
> \>\> 1673 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:584:40: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1674 584 | ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1675 | ^ ~~~~~~~~~~~~~~
> \>\> 1676 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:599:66: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1677 599 | ATSFontFamilyIteratorRelease(ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1678 | ^ ~~~~~~~~~~~~~~
> \>\> 1679 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:619:63: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1680 619 | ATSFontFamilyIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1681 | ^ ~~~~~~~~~~~~~~
> \>\> 1682 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:636:63: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1683 636 | ATSFontFamilyRef \* oFamily) ATS\_UNAVAILABLE;
> 1684 | ^ ~~~~~~~~~~~~~~
> \>\> 1685 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:653:30: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1686 653 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> 1687 | ^ ~~~~~~~~~~~~~~
> \>\> 1688 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:668:54: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1689 668 | ATSFontFamilyGetGeneration(ATSFontFamilyRef iFamily) ATS\_UNAVAILABLE;
> 1690 | ^ ~~~~~~~~~~~~~~
> \>\> 1691 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:686:29: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1692 686 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> 1693 | ^ ~~~~~~~~~~~~~~
> \>\> 1694 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:723:37: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1695 723 | void \* iRefCon) ATS\_UNAVAILABLE;
> 1696 | ^ ~~~~~~~~~~~~~~
> \>\> 1697 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:744:38: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1698 744 | ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1699 | ^ ~~~~~~~~~~~~~~
> \>\> 1700 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:759:63: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1701 759 | ATSFontIteratorRelease(ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1702 | ^ ~~~~~~~~~~~~~~
> \>\> 1703 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:779:63: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1704 779 | ATSFontIterator \* ioIterator) ATS\_UNAVAILABLE;
> 1705 | ^ ~~~~~~~~~~~~~~
> \>\> 1706 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:796:63: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1707 796 | ATSFontRef \* oFont) ATS\_UNAVAILABLE;
> 1708 | ^ ~~~~~~~~~~~~~~
> \>\> 1709 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:813:31: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1710 813 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> 1711 | ^ ~~~~~~~~~~~~~~
> \>\> 1712 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:830:30: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1713 830 | ATSOptionFlags iOptions) ATS\_UNAVAILABLE;
> 1714 | ^ ~~~~~~~~~~~~~~
> \>\> 1715 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:850:34: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1716 850 | ItemCount \* oCount) ATS\_UNAVAILABLE;
> 1717 | ^ ~~~~~~~~~~~~~~
> \>\> 1718 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:865:40: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1719 865 | ATSFontGetGeneration(ATSFontRef iFont) ATS\_UNAVAILABLE;
> 1720 | ^ ~~~~~~~~~~~~~~
> \>\> 1721 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:883:27: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1722 883 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> 1723 | ^ ~~~~~~~~~~~~~~
> \>\> 1724 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:901:27: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1725 901 | CFStringRef \* oName) ATS\_UNAVAILABLE;
> 1726 | ^ ~~~~~~~~~~~~~~
> \>\> 1727 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:920:53: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1728 920 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1729 | ^ ~~~~~~~~~~~~~~
> \>\> 1730 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:941:55: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1731 941 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1732 | ^ ~~~~~~~~~~~~~~
> \>\> 1733 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:959:31: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1734 959 | ATSFontMetrics \* oMetrics) ATS\_UNAVAILABLE;
> 1735 | ^ ~~~~~~~~~~~~~~
> \>\> 1736 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:977:31: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1737 977 | ATSFontMetrics \* oMetrics) ATS\_UNAVAILABLE;
> 1738 | ^ ~~~~~~~~~~~~~~
> \>\> 1739 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:995:60: error: expecte
> d initializer before 'ATS\_UNAVAILABLE'
> 1740 995 | ATSFontFamilyFindFromQuickDrawName(ConstStr255Param iName) ATS\_UNAVAILABLE;
> 1741 | ^ ~~~~~~~~~~~~~~
> \>\> 1742 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1012:29: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1743 1012 | Str255 oName) ATS\_UNAVAILABLE;
> 1744 | ^ ~~~~~~~~~~~~~~
> \>\> 1745 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1108:54: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1746 1108 | ByteCount \* oSize) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1747 | ^ ~~~~~~~~~~~~~~
> \>\> 1748 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1146:57: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1749 1146 | void \* info) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1750 | ^ ~~~~~~~~~~~~~~
> \>\> 1751 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1193:71: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1752 1193 | ATSFontNotificationRef \* oNotificationRef) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1753 | ^ ~~~~~~~~~~~~~~
> \>\> 1754 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1225:72: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1755 1225 | ATSFontNotificationUnsubscribe(ATSFontNotificationRef notificationRef) ATS\_UNAVAILABLE;
> 1756 | ^ ~~~~~~~~~~~~~~
> \>\> 1757 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1353:75: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1758 1353 | const ATSFontQuerySourceContext \* context) /\* can be NULL \*/ ATS\_UNAVAILABLE;
> 1759 | ^ ~~~~~~~~~~~~~~
> \>\> 1760 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1514:78: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1761 1514 | ATSFontSetGlobalAutoActivationSetting(ATSFontAutoActivationSetting iSetting) ATS\_UNAVAILABLE;
> 1762 | ^ ~~~~~~~~~~~~~~
> \>\> 1763 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1536:45: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1764 1536 | ATSFontGetGlobalAutoActivationSetting(void) ATS\_UNAVAILABLE;
> 1765 | ^ ~~~~~~~~~~~~~~
> \>\> 1766 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1579:55: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1767 1579 | CFURLRef iApplicationFileURL) ATS\_UNAVAILABLE;
> 1768 | ^ ~~~~~~~~~~~~~~
> \>\> 1769 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1614:78: error: expect
> ed initializer before 'ATS\_UNAVAILABLE'
> 1770 1614 | ATSFontGetAutoActivationSettingForApplication(CFURLRef iApplicationFileURL) ATS\_UNAVAILABLE;
> 1771 | ^ ~~~~~~~~~~~~~~
> 1772 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:21,
> 1773 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
> 1774 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
> 1775 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
> \>\> 1776 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected unqualified-id before '^' token
> 1777 392 | typedef void (^CGPathApplyBlock)(const CGPathElement \* element);
> 1778 | ^
> \>\> 1779 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:392:15: error: expected ')' before '^' token
> 1780 392 | typedef void (^CGPathApplyBlock)(const CGPathElement \* element);
> 1781 | ~^
> 1782 | )
> \>\> 1783 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:394:53: error: 'CGPathApplyBlock' has not been declared
> 1784 394 | CG\_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF\_NOESCAPE block)
> 1785 | ^ ~~~~~~~~~~~~~~~
> 1786 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:14,
> 1787 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h:15,
> 1788 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h:16,
> 1789 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:23:
> \>\> 1790 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected unqualified-id before '^' t
> oken
> 1791 103 | typedef bool (^CGPDFArrayApplierBlock)(size\_t index,
> 1792 | ^
> \>\> 1793 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected ')' before '^' token
> 1794 103 | typedef bool (^CGPDFArrayApplierBlock)(size\_t index,
> 1795 | ~^
> 1796 | )
> \>\> 1797 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:113:5: error: 'CGPDFArrayApplierBlock' has not been
> declared
> 1798 113 | CGPDFArrayApplierBlock cg\_nullable block, void \* \_\_nullable info)
> 1799 | ^ ~~~~~~~~~~~~~~~~~~~~~
> \>\> 1800 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected unqualified-id before 
> '^' token
> 1801 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char \* key,
> 1802 | ^
> \>\> 1803 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected ')' before '^' token
> 1804 116 | typedef bool (^CGPDFDictionaryApplierBlock)(const char \* key,
> 1805 | ~^
> 1806 | )
> \>\> 1807 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:126:5: error: 'CGPDFDictionaryApplierBlock' ha
> s not been declared
> 1808 126 | CGPDFDictionaryApplierBlock cg\_nullable block, void \* \_\_nullable info)
> 1809 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1810 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:20,
> 1811 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:47:
> \>\> 1812 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected unqualified-id before '^' t
> oken
> 1813 42 | typedef void (^CGImageSourceAnimationBlock)(size\_t index, CGImageRef image, bool\* stop);
> 1814 | ^
> \>\> 1815 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:42:15: error: expected ')' before '^' token
> 1816 42 | typedef void (^CGImageSourceAnimationBlock)(size\_t index, CGImageRef image, bool\* stop);
> 1817 | ~^
> 1818 | )
> \>\> 1819 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:50:107: error: 'CGImageSourceAnimationBlock' has n
> ot been declared
> 1820 50 | IMAGEIO\_EXTERN OSStatus CGAnimateImageAtURLWithBlock(CFURLRef url, CFDictionaryRef \_iio\_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO\_AVAILABLE\_STARTI
> NG(10.15, 13.0);
> 1821 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> \>\> 1822 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h:58:108: error: 'CGImageSourceAnimationBlock' has n
> ot been declared
> 1823 58 | IMAGEIO\_EXTERN OSStatus CGAnimateImageDataWithBlock(CFDataRef data, CFDictionaryRef \_iio\_Nullable options, CGImageSourceAnimationBlock block) IMAGEIO\_AVAILABLE\_START
> ING(10.15, 13.0);
> 1824 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
> \>\> 1825 make\[2\]: \*\*\* \[Source/CMakeFiles/CMakeLib.dir/cmGlobalXCodeGenerator.cxx.o\] Error 1
> 1826 make\[2\]: \*\*\* Waiting for unfinished jobs....
> \>\> 1827 make\[1\]: \*\*\* \[Source/CMakeFiles/CMakeLib.dir/all\] Error 2
> \>\> 1828 make: \*\*\* \[all\] Error 2
> 
> See build log for details:
> /var/folders/nv/nxs3xpbs20x9\_r7sr\_25ygb80000gn/T/keithhbova/spack-stage/spack-stage-cmake-3.27.7-6km3c52oz7suzhwptcrcfmn3ydtmi4tg/spack-build-out.txt
> \</pre\>\</details\>
> 
> 
> \### Information on your system
> 
> \* \*\*Spack:\*\* 0.21.0 (65d3221a9c436e77af9e802e543c71bd702ff4e2)
> \* \*\*Python:\*\* 3.9.6
> \* \*\*Platform:\*\* darwin-sonoma-m1
> \* \*\*Concretizer:\*\* clingo
> 
> \### Additional information
> 
> CPU is actually a m3-pro 
> 
> Link to the thread with cmake:
> 
> https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719
> 
> Maintainers: 
> 
> @alalazo
> 
> 
> 
> \### General information
> 
> \- \[X\] I have run \`spack debug report\` and reported the version of Spack/Python/Platform
> \- \[X\] I have run \`spack maintainers \<name-of-the-package\>\` and \*\*@mentioned\*\* any maintainers
> \- \[X\] I have uploaded the build log and environment files
> \- \[X\] I have searched the issues of this repo and believe this is not a duplicate

Maintainers:

> **[alalazo - Overview](https://github.com/alalazo)**
>
> HPC software developer - @spack core developer. alalazo has 47 repositories available. Follow their code on GitHub.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [December 26, 2023, 5:09pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/7 "2023-12-26T17:09:14Z")

</div>

I don’t think there’s much to be done on the CMake side. The `/Applications/Xcode-15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSDefines.h` file conditionally defines `ATS_UNAVAILABLE` based on `__has_extension(attribute_deprecated_with_message)` without an `#else`. Either the SDK needs to handle non-Clang compilers or GCC needs to declare this feature. I’m not sure which is the right answer, but there’s no place for CMake to conditionally define this reliably as a fallback in case something changes and the SDK starts defining the symbol itself.

---

<div class="post-metadata">

**Author:** ![keithhbova](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/df705f/32.png) [@keithhbova](https://discourse.cmake.org/u/keithhbova)\
**Post date:** [December 26, 2023, 8:16pm UTC](https://discourse.cmake.org/t/fatal-bug-in-master-december-26-2023/9719/8 "2023-12-26T20:16:55Z")

</div>

Update: this topic has been solved. I believe the bug is with apple. I went through and edited the source code in the application services. More details on the GitHub page.
