Skip to content
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-2027] build-script -x fails during building of SwiftShims #44636

Open
beccadax opened this issue Jul 8, 2016 · 1 comment
Open

[SR-2027] build-script -x fails during building of SwiftShims #44636

beccadax opened this issue Jul 8, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script cmake

Comments

@beccadax
Copy link
Contributor

beccadax commented Jul 8, 2016

Previous ID SR-2027
Radar None
Original Reporter @beccadax
Type Bug
Environment

OS X 10.11.5 (15F34), MacBook Pro (Retina, 15-inch, Late 2013), Xcode Version 8.0 beta 2 (8S162m)

Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug, BuildScript, CMake
Assignee None
Priority Medium

md5: d1f70e4668dbe43b833dce4c9a7ef89a

Issue Description:

On my machine, utils/build-script -c -x fails with the error "Clang headers were not found" from stdlib/public/SwiftShims/CMakeLists.txt line 65.

Investigation showed that CMAKE_CFG_INTDIR contained xcodebuild-style $(...) variables which were not being substituted before the "if(EXISTS …)" call. The change at <beccadax@2db328fa48d90be530f2fa4cff1034b8bc2dc35d\> corrects this issue for me, although it feels a little hacky and I have zero CMake experience, so there may be a better solution.

@belkadan
Copy link
Contributor

belkadan commented Jul 8, 2016

@gottesmm has been working on this. Deleting the CMakeCache.txt files in the subdirectories of your build directory (llvm-macosx-x86_64 and swift-macosx-x86_64) might make your build go through; if not that then a delete-build-folder clean build.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script cmake
Projects
None yet
Development

No branches or pull requests

2 participants