Skip to content
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-5592] swift build fails on Xcode 9 beta 4 #4972

Closed
swift-ci opened this issue Jul 31, 2017 · 8 comments
Closed

[SR-5592] swift build fails on Xcode 9 beta 4 #4972

swift-ci opened this issue Jul 31, 2017 · 8 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-5592
Radar rdar://problem/33626518
Original Reporter kzaher (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Xcode 9 beta 4
macOS 10.12.5 (16F73)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 9d71158f3c85894140ba0ecdc685907e

duplicates:

  • SR-5061 Assertion failed: (FD >= 0 && "File not yet open!")

Issue Description:

STR:
Create target containing 200 empty files.

```
mkdir -p Sources/A; for i in {1..200}; do touch Sources/A/$i.swift ;
```

Package.swift
```
import PackageDescription
let package = Package(
name: "A",
targets: [Target(name: "A")]
)
```

Result:
`swift build` command fails with
```
Compile Swift Module 'A' (200 sources)
LLVM ERROR: IO failure on output stream.
```

Expected result:
Compiler shouldn't crash.

I've attached zip file also.

@belkadan
Copy link

@aciidb0mb3r, this sounds like the sandbox thing?

@ankitspd
Copy link
Member

@belkadan Yeah, looks like it.

kzaher (JIRA User) can you please try the latest snapshot from Swift.org and check if that fixes your issue?
Also, you can use `swift build --disable-sandbox` as a workaround in beta 4.

@swift-ci
Copy link
Contributor Author

Comment by Krunoslav Zaher (JIRA)

@aciidb0mb3r Are you sure this is duplicate of SR-5061? It says this was resolved 19 Jul 2017 12:26 AM but the issue is reproducible on https://swift.org/builds/swift-4.0-branch/ubuntu1610/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-07-28-a/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-07-28-a-ubuntu16.10.tar.gz and it has a different error message.

@ankitspd
Copy link
Member

The difference is message is because swift.org are assertion enabled builds. Thanks for checking with the 07/28 toolchain. I'll investigate.

@ankitspd
Copy link
Member

@swift-ci create

@swift-ci
Copy link
Contributor Author

@ankitspd
Copy link
Member

kzaher (JIRA User) I can't reproduce this issue with latest snapshot (swift-DEVELOPMENT-SNAPSHOT-2017-07-30-a-osx). You provided link to the linux snapshot, are you seeing this on linux as well? Also, please attach a verbose log (`swift build -v`).

@ankitspd
Copy link
Member

Ah, great. Thanks!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants