If you've also installed the Command Line Tools package, then it might be issue SR-12726 , which is reportedly fixed with Command Line Tools for Xcode 11.5:
When building the compiler on macOS locally (I was able to reproduce this on Catalina 10.15.4 and Mojave 10.14.6, both with Xcode 11.4.1), I started getting this error a couple of weeks ago, which only pops up when building swift/lib/Immediate/Immediate.cpp:
/Applications/Xcode-11.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Applications/Xcode-11.4.1.app/…
I was trying to build the Swift compiler for the first time and encountered an error when doing so that I have no idea what to do about.
First thing I did to get setup developing the Swift compiler was make a fork on GitHub.
After that, I ran the following commands:
brew install cmake ninja
mkdir swift-source && cd swift-source
git clone https://github.com/Wildchild9/swift.git
cd swift
git remote add upstream https://github.com/apple/swift.git
cd ..
swift/utils/update-checkout --clone
All of…
1 Like