<html><body><p>Hi Drew,<br><br> Pick up this: <a href="https://github.com/apple/swift/pull/3835">https://github.com/apple/swift/pull/3835</a><br><br> It adds -fblocks to C language options to the ClangImporter on Linux.<br><br>--dave<br><br><tt>swift-dev-bounces@swift.org wrote on 08/14/2016 02:14:13 AM:</tt><br><tt>><br>> When attempting to build Swift Preview 5 on Linux, I get this error:</tt><br><tt>> <br>> ********************</tt><br><tt>> Testing Time: 6.02s</tt><br><tt>> ********************</tt><br><tt>> Failing Tests (4):</tt><br><tt>> swift-package-tests :: swift-build-self-host.py</tt><br><tt>> swift-package-tests :: swift-package-init-lib.md</tt><br><tt>> swift-package-tests :: test-foundation-package/test-foundation-package.txt</tt><br><tt>> swift-package-tests :: test-xctest-package/test-xctest-package.txt</tt><br><tt>> <br>> Expected Passes : 10</tt><br><tt>> Unsupported Tests : 5</tt><br><tt>> Unexpected Failures: 4</tt><br><tt>> ./utils/build-script: fatal error: command terminated with a non-<br>> zero exit status 1, aborting</tt><br><tt>> ./utils/build-script: fatal error: command terminated with a non-<br>> zero exit status 1, aborting</tt><br><tt>> <br>> When I find out what is failing, it's related to dispatch requiring <br>> blocks. For example, a simple "import XCTest" fails:</tt><br><tt>> <br>> $ cat test.swift</tt><br><tt>> import XCTest</tt><br><tt>> <br>> $ /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-<br>> x86_64/usr/bin/swiftc test.swift</tt><br><tt>> <unknown>:0: error: module 'CDispatch' requires feature 'blocks'</tt><br><tt>> <unknown>:0: error: could not build Objective-C module 'CDispatch'</tt><br><tt>> <br>> Inserting the required flags works fine:</tt><br><tt>> <br>> /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-<br>> x86_64/usr/bin/swiftc -Xcc -fblocks test2.swift</tt><br><tt>> How can I either insert those flags into the packaging tests, or <br>> disable the affected tests?</tt><br><tt>> Drew_______________________________________________<br>> swift-dev mailing list<br>> swift-dev@swift.org<br>> <a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a><br></tt><BR>
</body></html>