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-3771] error while loading shared libraries: libkqueue.so.0 #700

Closed
ankitspd opened this issue Jan 28, 2017 · 7 comments
Closed

[SR-3771] error while loading shared libraries: libkqueue.so.0 #700

ankitspd opened this issue Jan 28, 2017 · 7 comments

Comments

@ankitspd
Copy link
Member

Previous ID SR-3771
Radar None
Original Reporter @aciidb0mb3r
Type Bug
Status Resolved
Resolution Done
Environment

Ubuntu 16.04 LTS

Additional Detail from JIRA
Votes 1
Component/s libdispatch, Project Infrastructure
Labels Bug
Assignee dgrove-oss (JIRA)
Priority Medium

md5: bd3be70001bfaa1eaa33223eb009833f

relates to:

  • SR-3751 libdispatch build script error on Linux (Gentoo and LFS)

Issue Description:

This error appeared in Jan 27 toolchain. Toolchain works fine in Jan 24 toolchain.

$ swift package
/home/ubuntu/swift-DEVELOPMENT-SNAPSHOT-2017-01-27-a-ubuntu16.04/usr/bin/swift-package: error while loading shared libraries: libkqueue.so.0: cannot open shared object file: No such file or directory

@swift-ci
Copy link

Comment by David Grove (JIRA)

This may be related to SR-3751. We should be building libkqueue into libdispatch.so; not depending on an external libkqueue.so.

@swift-ci
Copy link

Comment by David Grove (JIRA)

Could you point me to the build log for the toolchain that is having the problem. Complete wild guess, but I wonder if the change to build libdispatch.so twice to support building SourceKit on Linux is resulting in a 'dummy' libdispatch.so lying around during part of the build that has an improper dependency on an external libkqueue.so.

@ankitspd
Copy link
Member Author

https://github.com/apple/swift/releases says SHA 52601c0 for swift-DEVELOPMENT-SNAPSHOT-2017-01-27-a so I am guessing it was this job https://ci.swift.org/view/Packages/job/oss-swift-package-linux-ubuntu-16_04/401/

Maybe @shahmishal can help in confirming if thats correct

@swift-ci
Copy link

Comment by David Grove (JIRA)

ok, I see the problem. The upstream libkqueue removed the autotools-based build system. When I picked up latest libkqueue to get a different bug fix, building libkqueue embedded in libdispatch broke.

The fix is going to be to switch back to a slightly different version of libkqueue in the git submodule. I will submit a PR to dispatch shortly.

@swift-ci
Copy link

Comment by David Grove (JIRA)

Submitted #207 to drop back to most recent libkqueue version that does not have the problematic change to the build system.

@ankitspd
Copy link
Member Author

Awesome! We should get some kind of test somewhere to prevent this breakage in future

@swift-ci
Copy link

swift-ci commented Feb 1, 2017

Comment by David Grove (JIRA)

PR merged to dispatch

@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
Projects
None yet
Development

No branches or pull requests

2 participants