Closed 6d44b555-049a-4a81-86f1-5537312bcad6 closed 5 years ago
Ah, is that what's going on. cc @compnerd, @akyrtzi, Rostepher (JIRA User)
From the ninja:
# Link the shared library lib/libsourcekitdInProc.so
build lib/libsourcekitdInProc.so: CXX_SHARED_LIBRARY_LINKER__sourcekitdInProc tools/SourceKit/tools/sourcekitd/bin/InProc/CMakeFiles/sourcekitdInProc.dir/sourcekitdInProc.cpp.o |
<snip>
tools/SourceKit/libdispatch-prefix/lib/libdispatch.so
And the command providing libdispatch-prefix/lib/libdispatch.so:
build tools/SourceKit/libdispatch-prefix/src/libdispatch-stamp/libdispatch-build tools/SourceKit/libdispatch-prefix/lib/libdispatch.so tools/SourceKit/libdispatch-prefix/lib/dispatch tools/SourceKit/libdispatch-prefix/lib/libBlocksRuntime.so tools/SourceKit/libdispatch-prefix/lib/BlocksRuntime: CUSTOM_COMMAND tools/SourceKit/libdispatch-prefix/src/libdispatch-stamp/libdispatch-configure
COMMAND = cd /home/docker_user/src/s/build/buildbot_linux/swift-linux-x86_64/tools/SourceKit/libdispatch-prefix/src/libdispatch-build && /usr/local/bin/cmake --build .
DESC = Performing build step for 'libdispatch'
restat = 1
But that command just builds the library, it doesn't actually install it to libdispatch-prefix AFAICT.
I attempted to fix this by adding a dependency on the libdispatch-install step: https://github.com/apple/swift/pull/19921
This has been working for a pretty long time.
Environment
swift commit f4db1ddAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Source Tooling | |Labels | Bug, CMake | |Assignee | None | |Priority | Medium | md5: 2cbd95cf26c7fec8107e39f87391ae4dIssue Description:
It looks like libsourcekitdInProc.so tries to link in parallel with the libdispatch ExternalProject build. This causes a build failure since libdispatch.so doesn't yet exist.