<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>&gt;<br>&gt; When attempting to build Swift Preview 5 on Linux, I get this error:</tt><br><tt>&gt; <br>&gt; ********************</tt><br><tt>&gt; Testing Time: 6.02s</tt><br><tt>&gt; ********************</tt><br><tt>&gt; Failing Tests (4):</tt><br><tt>&gt; &nbsp; &nbsp; swift-package-tests :: swift-build-self-host.py</tt><br><tt>&gt; &nbsp; &nbsp; swift-package-tests :: swift-package-init-lib.md</tt><br><tt>&gt; &nbsp; &nbsp; swift-package-tests :: test-foundation-package/test-foundation-package.txt</tt><br><tt>&gt; &nbsp; &nbsp; swift-package-tests :: test-xctest-package/test-xctest-package.txt</tt><br><tt>&gt; <br>&gt; &nbsp; Expected Passes &nbsp; &nbsp;: 10</tt><br><tt>&gt; &nbsp; Unsupported Tests &nbsp;: 5</tt><br><tt>&gt; &nbsp; Unexpected Failures: 4</tt><br><tt>&gt; ./utils/build-script: fatal error: command terminated with a non-<br>&gt; zero exit status 1, aborting</tt><br><tt>&gt; ./utils/build-script: fatal error: command terminated with a non-<br>&gt; zero exit status 1, aborting</tt><br><tt>&gt; <br>&gt; When I find out what is failing, it's related to dispatch requiring <br>&gt; blocks. &nbsp;For example, a simple &quot;import XCTest&quot; fails:</tt><br><tt>&gt; <br>&gt; $ cat test.swift</tt><br><tt>&gt; import XCTest</tt><br><tt>&gt; <br>&gt; $ /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-<br>&gt; x86_64/usr/bin/swiftc test.swift</tt><br><tt>&gt; &lt;unknown&gt;:0: error: module 'CDispatch' requires feature 'blocks'</tt><br><tt>&gt; &lt;unknown&gt;:0: error: could not build Objective-C module 'CDispatch'</tt><br><tt>&gt; <br>&gt; Inserting the required flags works fine:</tt><br><tt>&gt; <br>&gt; /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-<br>&gt; x86_64/usr/bin/swiftc -Xcc -fblocks test2.swift</tt><br><tt>&gt; How can I either insert those flags into the packaging tests, or <br>&gt; disable the affected tests?</tt><br><tt>&gt; Drew_______________________________________________<br>&gt; swift-dev mailing list<br>&gt; swift-dev@swift.org<br>&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a><br></tt><BR>
</body></html>