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-975] SwiftPM seems broken in the latest snapshot #5426

Closed
swift-ci opened this issue Mar 18, 2016 · 9 comments
Closed

[SR-975] SwiftPM seems broken in the latest snapshot #5426

swift-ci opened this issue Mar 18, 2016 · 9 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-975
Radar None
Original Reporter czechboy0 (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

OS X 10.11.4 beta

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

md5: ff5550b4045b406e928b97ff94621df8

is duplicated by:

  • SR-992 Swift build broken on Linux DEVELOPMENT-SNAPSHOT-2016-03-16

relates to:

  • SR-1202 Use instructions on Swift.org Do Not Work for Debug-enabled Toolchain

Issue Description:

The snapshot DEVELOPMENT-SNAPSHOT-2016-03-16-a seems to have broken SwiftPM. Every `swift build` invocation ends the same way:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/bin/swift-build
  Reason: image not found
[1]    30891 trace trap  swift build

Everything still works fine on the previous snapshot DEVELOPMENT-SNAPSHOT-2016-03-01-a

Here's the diff of the versions: swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a...swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a

@swift-ci
Copy link
Contributor Author

Comment by David Arve (JIRA)

Workaround found here: https://gist.github.com/norio-nomura/96201467ffd37c077f7c

sudo install_name_tool -add_rpath /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/lib/swift/macosx /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/bin/swift-build

@swift-ci
Copy link
Contributor Author

Comment by Vadim Eisenberg (JIRA)

Workaround on Linux:
export LD_LIBRARY_PATH=<your snapshot location>/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a-ubuntu15.10/usr/lib/swift/linux/:$LD_LIBRARY_PATH

@mxcl
Copy link
Contributor

mxcl commented Mar 18, 2016

@swift-ci
Copy link
Contributor Author

Comment by Honza Dvorsky (JIRA)

@mxcl The link does't take me to a specific commit, which file/line is the issue?

@norio-nomura
Copy link
Contributor

I filed a PR fixing this.
#204

@mxcl
Copy link
Contributor

mxcl commented Mar 22, 2016

Merged: #204

@norio-nomura
Copy link
Contributor

😃👍

@norio-nomura
Copy link
Contributor

I updated workaround for OS X: https://gist.github.com/norio-nomura/96201467ffd37c077f7c

@mxcl
Copy link
Contributor

mxcl commented Mar 24, 2016

Latest snapshot with this fix has been released.

@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