-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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-3658 – Fix error in importing Foundation #843
Conversation
SR-3658 – Fix error in importing Foundation under Linux. This commit may resolve the described error.
We do need |
From grep, Block.h seems to be included in these files: I tried adding to build.py: But then xctest had a problem too, so I just copied Block.h into an existing include path. |
Thing is, this was working in 3.0 - it was a commit migrating the Sierra source dump that introduced the offending code - but CF has had blocks for years now? Or is it the case that CFBase, by including Blocks.h in the header, and not source files, is trying to make Swift eventually include Blocks.h, which isn't used under Linux? |
Let's try this: it'll tell us where we need the include for real. |
@swift-ci please test |
What's interesting is that the include has been in the Darwin CFBase.h for quite some time; so it's surprising that it was introduced here with the Sierra merge. |
Jesus. |
I think it was probably removed for this very reason in our original CF import into this project, but then put back with the rest of the Sierra fixes. We'll need to make sure it stays out in the future. |
@swizzlr will you put a PR up for the swift-3.1 branch with this change? |
Sorry, I mean the master branch. |
Can we please get this fix merged into the master, the master wont build at the moment because of this. |
Wait, don't we have build snapshots for Swift 3.1? |
Im trying to build from git, should master not be always buildable?
…On Thu, Feb 2, 2017, 22:23 Thomas Catterall ***@***.***> wrote:
Wait, don't we have build snapshots for Swift 3.1?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#843 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA4yX7ZwpDAD46GkHxhXKxyOux3RVJ5ks5rYebFgaJpZM4LvVvi>
.
|
folks im still seeing this on the swift-3.1-branch ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation/ForSwiftFoundationOnly.h:265:60: note: insert '_Nonnull' if the array parameter should never be null |
In order to get it to compile i had to insert the following between update-checkout and build-script
|
SR-3658 – Fix error in importing Foundation under Linux. This commit may resolve the described error.
Honestly, I have no idea if this'll work. My machine does not have the horsepower to compile this project, but at the very least maybe the CI can take a crack at it. From a cursory review this line seems unnecessary.