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-1923] Building Foundation with lib dispatch support fails with a glibc module error #740
Comments
Actually I think this was due to an old checkout that didn't get updated correctly with the update-checkout script; verifying now |
Comment by David Grove (JIRA) @belkadan is correct; those commits are a workaround that should allow master to build. experimental/foundation should also build fine (but with a different workaround). |
After updating to the latest everything:
|
Comment by David Grove (JIRA) dispatch now requires a fairly recent clang to build. Tony Parker merged apple/swift#2951 about a week ago to compensate for this. Maybe you don't have that change yet? |
Looks like my run of update-checkout totally did not do what I was expecting. Re-running manually to update all sources seems to alleviate the problem. |
Full clean checkout of the entire project still has build failures; it is choking on a cmake failure now.
I have verified that all sob-modules are updated and all repositories are pointed at the public repo urls (not any private forks etc). They are all at the ToT. |
Should llvm actually contain clang? It seems like the clone command is broken. |
Verified that this is occurring with a 100% clean build:
|
|
cc @gottesmm |
Are you using a new enough cmake? Can you try upgrading to 3.4.3? |
Unfortunately I don't think the server I am using can be upgraded to that version |
I talked with Phil offline and helped him get an up to date cmake. |
I was able to update cmake to be locally installed and that got past that build failure. However more failures abound!
|
So it is attempting to compile objective-c? Are we building against the apple objc runtime or the gnu? Or is this file somehow not supposed to be built on linux? |
Yeah, a file named |
Pshaw on the name; the code is the issue -
|
Hm. All of that is only so that casting works on Darwin platforms with Swift < 3.0, so we shouldn't need it. (I'm working on casting in Swift 3 on Darwin platforms.) That said, I now have no idea how the Dispatch folks are planning to have their types still import as Swift-compatible classes. Is the plan to just write wrappers by hand? |
Makefile.in has
Should that section have a guard for USE_OBJC? And why is it objcxx? The other .m files compile just fine (objcxx always has cross platform build issues from my experience) |
Comment by David Grove (JIRA) Hi. Sorry, I should have mentioned this yesterday. Kind of forgot I was working on a branch of dispatch myself. das (JIRA User) merged in the Swift3 overlay to libdispatch last week on the master branch. We knew it wouldn't build. I've gotten them building (including dealing with dispatch.mm) and submitted a pull request #94 Until that gets merged, the master branch of dispatch isn't going to build via swift/utils/build-script (because that enables the Swift overlay being built). |
Which part of casting? DispatchData to NSData to Data? Or dispatch_data_t to DispatchData? |
AnyObject to DispatchQueue. |
Comment by Reza Hussain (JIRA) Does anybody have instructions to get this to build on a ubuntu 15.10 fresh install ? |
Comment by David Grove (JIRA) building dispatch + foundation together is now part of the normal build process on linux. |
Additional Detail from JIRA
md5: f5f4c29f9470e2d6aab03501b79a0183
Issue Description:
On Ubuntu 15 with the build command of ./swift/utils/build-script -r --foundation --libdispatch
Swift fails to compile modular components for dispatch:
The text was updated successfully, but these errors were encountered: