preview 5 package-tests failure

When attempting to build Swift Preview 5 on Linux, I get this error:

···

********************
Testing Time: 6.02s
********************
Failing Tests (4):
swift-package-tests :: swift-build-self-host.py
swift-package-tests :: swift-package-init-lib.md
swift-package-tests :: test-foundation-package/test-foundation-package.txt
swift-package-tests :: test-xctest-package/test-xctest-package.txt

Expected Passes : 10
Unsupported Tests : 5
Unexpected Failures: 4
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

When I find out what is failing, it's related to dispatch requiring blocks. For example, a simple "import XCTest" fails:

$ cat test.swift
import XCTest

$ /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-x86_64/usr/bin/swiftc test.swift
<unknown>:0: error: module 'CDispatch' requires feature 'blocks'
<unknown>:0: error: could not build Objective-C module 'CDispatch'

Inserting the required flags works fine:

/swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-x86_64/usr/bin/swiftc -Xcc -fblocks test2.swift
How can I either insert those flags into the packaging tests, or disable the affected tests?

Drew

Hi Drew,

  Pick up this: ClangImporter: enable -fblocks on non-Darwin platforms by dgrove-oss · Pull Request #3835 · apple/swift · GitHub

  It adds -fblocks to C language options to the ClangImporter on Linux.

--dave

********************
Testing Time: 6.02s
********************
Failing Tests (4):
    swift-package-tests :: swift-build-self-host.py
    swift-package-tests :: swift-package-init-lib.md
    swift-package-tests ::

test-foundation-package/test-foundation-package.txt

···

swift-dev-bounces@swift.org wrote on 08/14/2016 02:14:13 AM: > > When attempting to build Swift Preview 5 on Linux, I get this error:

    swift-package-tests :: test-xctest-package/test-xctest-package.txt

  Expected Passes : 10
  Unsupported Tests : 5
  Unexpected Failures: 4
./utils/build-script: fatal error: command terminated with a non-
zero exit status 1, aborting
./utils/build-script: fatal error: command terminated with a non-
zero exit status 1, aborting

When I find out what is failing, it's related to dispatch requiring
blocks. For example, a simple "import XCTest" fails:

$ cat test.swift
import XCTest

$ /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-
x86_64/usr/bin/swiftc test.swift
<unknown>:0: error: module 'CDispatch' requires feature 'blocks'
<unknown>:0: error: could not build Objective-C module 'CDispatch'

Inserting the required flags works fine:

/swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-
x86_64/usr/bin/swiftc -Xcc -fblocks test2.swift
How can I either insert those flags into the packaging tests, or
disable the affected tests?
Drew_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Hi Drew-

If you’re building using the swift-3.0-PREVIEW-5 tag, please be aware that swift-corelib-libdispatch is not included in the preview tag, or part of the CI package job, as we are still working out issues with swift-corelib-libdispatch.

(Preview 5 does, however add support for swift-code-playground support, which we had previously not included in the preview tags.)

Release notes for the tag are at:

We are actively working on getting libdispatch sorted out, and integrated into the package jobs, hopefully in the next few days. But we’ll be concentrating on getting master and swift-3.0-branch working rather than back porting things to preview 5.

Thanks!
nicole

···

On Aug 13, 2016, at 11:14 PM, Drew Crawford via swift-dev <swift-dev@swift.org> wrote:

When attempting to build Swift Preview 5 on Linux, I get this error:

********************
Testing Time: 6.02s
********************
Failing Tests (4):
    swift-package-tests :: swift-build-self-host.py
    swift-package-tests :: swift-package-init-lib.md
    swift-package-tests :: test-foundation-package/test-foundation-package.txt
    swift-package-tests :: test-xctest-package/test-xctest-package.txt

  Expected Passes : 10
  Unsupported Tests : 5
  Unexpected Failures: 4
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

When I find out what is failing, it's related to dispatch requiring blocks. For example, a simple "import XCTest" fails:

$ cat test.swift
import XCTest

$ /swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-x86_64/usr/bin/swiftc test.swift
<unknown>:0: error: module 'CDispatch' requires feature 'blocks'
<unknown>:0: error: could not build Objective-C module 'CDispatch'

Inserting the required flags works fine:

/swift-dev/build/buildbot_linux/none-swift_package_sandbox_linux-x86_64/usr/bin/swiftc -Xcc -fblocks test2.swift

How can I either insert those flags into the packaging tests, or disable the affected tests?

Drew

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev