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-11162] Can't build sourcekit on ubuntu 18.04 #615

swift-ci opened this issue Jul 19, 2019 · 2 comments

[SR-11162] Can't build sourcekit on ubuntu 18.04 #615

swift-ci opened this issue Jul 19, 2019 · 2 comments


Copy link

@swift-ci swift-ci commented Jul 19, 2019

Previous ID SR-11162
Radar None
Original Reporter florobax (JIRA User)
Type Bug
Status Resolved
Resolution Invalid

I'm on ubuntu 18.04. I use latest snapshot build from swift.

Additional Detail from JIRA
Votes 0
Component/s libdispatch, SourceKit-LSP
Labels Bug
Assignee None
Priority Medium

md5: 67bc8a168e47fe5648487d0d8f1bdf1a

Issue Description:

I am new to swift so it is possible that I am missing something, but I honestly can't see what. I am trying to build sourcekit-lsp, but I keep getting include errors. I even pass the corresponding flags to the compiler, but it keeps happening for no apparent reason. It can make it work by giving the full path but it will just trigger somewhere else. What is most strange is that some of the similar includes work.

swift build -Xcxx -I~/swift/swift-DEVELOPMENT-SNAPSHOT-2019-07-15-a-ubuntu18.04/usr/lib/swift -Xcxx -I~/swift/swift-DEVELOPMENT-SNAPSHOT-2019-07-15-a-ubuntu18.04/usr/lib/swift/Block
/home/robin/sourcekit-lsp/.build/checkouts/indexstore-db/lib/Support/Logging.cpp:19:10: fatal error: 'dispatch/dispatch.h' file not found
#include <dispatch/dispatch.h>
1 error generated.
[1/88] Compiling IndexStoreDB_Support Logging-NonMac.cpp
Copy link

@benlangmuir benlangmuir commented Jul 24, 2019

It looks like you tried to do `swift build` without the extra search paths necessary on Linux. Take a look at the build instructions for Linux at

Copy link

@benlangmuir benlangmuir commented Aug 8, 2019

Marking this as "resolved", so let me know if you still run into issues after trying the instructions from the readme.

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

No branches or pull requests

2 participants