jinmingjian / sourcekite

the backend of SDE's language server
Apache License 2.0
56 stars 9 forks source link

ubuntu swift 4.2.1 build error #14

Open levinXiao opened 5 years ago

levinXiao commented 5 years ago

i tried build it on Ubuntu 16.04 LTS then i have this error:

parallels@parallels-vm:~/code/swift/sourcecode/sourcekite$ swift build -Xlinker -l:sourcekitdInProc warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): sourcekite Linking ./.build/x86_64-unknown-linux/debug/sourcekite /usr/bin/ld.gold: error: cannot open //usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../sourcekitdInProc: No such file or directory /home/parallels/code/swift/sourcecode/sourcekite/Sources/sourcekite/main.swift:985: error: undefined reference to 'sourcekitd_initialize' /home/parallels/code/swift/sourcecode/sourcekite/Sources/sourcekite/main.swift:4095: error: undefined reference to 'sourcekitd_request_create_from_yaml' /home/parallels/code/swift/sourcecode/sourcekite/Sources/sourcekite/main.swift:4111: error: undefined reference to 'sourcekitd_send_request_sync' /home/parallels/code/swift/sourcecode/sourcekite/Sources/sourcekite/main.swift:12776: error: undefined reference to 'sourcekitd_shutdown' /home/parallels/code/swift/sourcecode/sourcekite/.build/x86_64-unknown-linux/debug/sourcekite.build/main.swift.o:main.swift.o:function $S10sourcekite13printResponse10forRequest_SbSi_SvtF: error: undefined reference to 'sourcekitd_response_is_error' /home/parallels/code/swift/sourcecode/sourcekite/.build/x86_64-unknown-linux/debug/sourcekite.build/main.swift.o:main.swift.o:function $S10sourcekite13printResponse10forRequest_SbSi_SvtF: error: undefined reference to 'sourcekitd_response_description_copy' /home/parallels/code/swift/sourcecode/sourcekite/.build/x86_64-unknown-linux/debug/sourcekite.build/main.swift.o:main.swift.o:function $S10sourcekite13printResponse10forRequest_SbSi_SvtF: error: undefined reference to 'sourcekitd_response_dispose' clang: error: linker command failed with exit code 1 (use -v to see invocation)

:0: error: link command failed with exit code 1 (use -v to see invocation) error: terminated(1): /home/parallels/code/swift/sourcecode/swift-4.2.1/usr/bin/swift-build-tool -f /home/parallels/code/swift/sourcecode/sourcekite/.build/debug.yaml main output: