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

[Preset] include sourcekit-inproc in default install on Linux #8189

Merged

Conversation

norio-nomura
Copy link
Contributor

Resolves SR-3699.

Is there any reason to not do this yet?

@alblue
Copy link
Contributor

alblue commented Mar 19, 2017

@swift-ci please test

@alblue
Copy link
Contributor

alblue commented Mar 19, 2017

There's no particular reason why this can't be done, but I haven't tested it yet with one of the build presets that packages up the instance. I'll try and build this tomorrow on my Ubuntu and Darwin boxes to verify that it doesn't have any unforseen issues.

@norio-nomura
Copy link
Contributor Author

norio-nomura commented Mar 25, 2017

Ah, we should configure sourcekitdInProc to having RPATH.

@norio-nomura
Copy link
Contributor Author

I added a commit that configure RPATH for loading libdispatch.so in relative path.

@alblue
Copy link
Contributor

alblue commented Mar 27, 2017 via email

@norio-nomura
Copy link
Contributor Author

As a result of doing some verifications, I came to the conclusion that I can not use it as it is.
The following workarounds seem to be necessary for proper operation.

ln -s /usr/lib/sourcekitdInProc.framework/sourcekitdInProc /usr/lib/libsourcekitdInProc.so

It seems necessary to change the installation destination on Linux.

@alblue
Copy link
Contributor

alblue commented Mar 29, 2017 via email

@norio-nomura
Copy link
Contributor Author

Not in apple/swift, but we have some tests failing on SourceKitten with sourcekitdInProc in Swift 3.1 for Linux that built by me. jpsim/SourceKitten#354
Those tests failed even by applying a workaround using symlink.

@norio-nomura
Copy link
Contributor Author

norio-nomura commented Apr 1, 2017

https://github.com/norio-nomura/swift/tree/enable-sourcekit-test
It needs renaming sourcekitdInProc to proper name.

/Users/norio/github/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/sourcekitd-test: error while loading shared libraries: sourcekitdInProc: cannot open shared object file: No such file or directory

@norio-nomura
Copy link
Contributor Author

I added norio-nomura@d9a7f49 renaming to libsourcekitdInProc.so.

@norio-nomura
Copy link
Contributor Author

Opened #8485

@norio-nomura norio-nomura force-pushed the package-sourcekit-inproc-on-linux branch from d0ad99a to 28b2dc9 Compare April 2, 2017 09:30
@norio-nomura
Copy link
Contributor Author

Adjusted rpath that assuming sourcekit-inproc's path is /usr/lib/libsourcekitdInProc.so by #8485

@alblue
Copy link
Contributor

alblue commented Apr 2, 2017

@swift-ci please smoke test

@norio-nomura
Copy link
Contributor Author

@alblue What else is needed to advance this PR?

@norio-nomura
Copy link
Contributor Author

#8485 has been reverted by #8988. 😞

norio-nomura added a commit to norio-nomura/swift-dev that referenced this pull request Apr 26, 2017
norio-nomura added a commit to norio-nomura/docker-sourcekit-builder that referenced this pull request Apr 26, 2017
norio-nomura added a commit to norio-nomura/docker-sourcekit-builder that referenced this pull request Apr 26, 2017
@felix91gr
Copy link
Contributor

I think now this can be merged... right? Since #9025 completed the missing piece in #8485 ^^

@alblue
Copy link
Contributor

alblue commented Apr 28, 2017 via email

@norio-nomura norio-nomura force-pushed the package-sourcekit-inproc-on-linux branch from 28b2dc9 to a93bddf Compare April 28, 2017 21:31
@norio-nomura
Copy link
Contributor Author

rebased.

@alblue
Copy link
Contributor

alblue commented Apr 28, 2017

@swift-CIA please smoke test

@alblue
Copy link
Contributor

alblue commented Apr 28, 2017

@swift-ci please smoke test

@norio-nomura
Copy link
Contributor Author

Can we retry test?

@CodaFi
Copy link
Contributor

CodaFi commented Apr 29, 2017

@swift-ci please clean smoke test Linux platform

@norio-nomura
Copy link
Contributor Author

Can we retry?

@norio-nomura
Copy link
Contributor Author

@felix91gr
Copy link
Contributor

felix91gr commented Apr 29, 2017 via email

@aciidgh
Copy link
Contributor

aciidgh commented Apr 29, 2017

@swift-ci please smoke test Linux platform

@alblue alblue merged commit 9fb3a48 into swiftlang:master Apr 29, 2017
@norio-nomura
Copy link
Contributor Author

Yay! 🙌 Thanks! 🙏

@norio-nomura norio-nomura deleted the package-sourcekit-inproc-on-linux branch April 29, 2017 09:01
@felix91gr
Copy link
Contributor

felix91gr commented Apr 29, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants