New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-12726] Can't build apple/swift master
on macOS with Command Line Tools installed
#55171
Comments
@swift-ci create |
This is fixed for me with command line tools for Xcode 11.5. |
Even with the command line tools from 11.5 I still see this issue, I'm testing removing the command line tools directory to see if that solves it for me. |
Removing the 11.5 command line tools fixes this for me |
Comment by Daniel Martín (JIRA) That Are you all using Homebrew? If so, the build failure may perfectly be caused by recent changes in Mac SDK handling and pkg-config. See, for example: Homebrew/brew#5068 (comment) which is a similar issue, but affecting SPM. Removing the CLI package seems like a sensible workaround for now. |
This is actually still reproducible for me with Xcode 11.5 and CLI Tools package for 11.5. Removing CLI Tools fixed the issue, but I don't think this is a good solution, especially as the reported error is very confusing and doesn't clearly point to the source of the problem. |
The work around I used was to uninstall |
I've opened a PR with a possible fix: #32436 |
I believe this is now fixed and can be closed, apple/swift#32436 has been merged. |
Comment by Michael Filonenko (JIRA) I’m experiencing the same issue after updating the XCode to the version 13.2.1. |
Environment
Catalina 10.15.4 or Mojave 10.14.6, both with Xcode 11.4.1, Command Line Tools version: 11.4.1.0.1.1586360307
Additional Detail from JIRA
md5: c3dfdb5d5a180b0991e4f335c6f6d5c1
duplicates:
Issue Description:
When building the compiler
master
branch (this is not reproducible withswift-5.2-branch
scheme) on macOS with Command Line Tools installed,swift/lib/Immediate/Immediate.cpp
fails to build with these errors:The culprit is this flag in build command
-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
The flag is only added when CommandLineTools are installed. Removing the flag from the invocation allows the build command to pass, but there's no known way to force the build system to not to add that flag breaking the build, other than deleting the
/Library/Developer/CommandLineTools
directory.The text was updated successfully, but these errors were encountered: