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

build: make libunwind linked dynamically #36697

Merged
merged 1 commit into from
Jul 27, 2020
Merged

build: make libunwind linked dynamically #36697

merged 1 commit into from
Jul 27, 2020

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jul 16, 2020

Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.

@vtjnash vtjnash added the building Build system, or building Julia or its dependencies label Jul 16, 2020
@ararslan
Copy link
Member

Nearly all other libraries that we use are linked dynamically.

Off topic here, but linking libuv dynamically would likely fix #34627. Generally 👍 to dynamically linking more dependencies. 🙂

@vtjnash
Copy link
Member Author

vtjnash commented Jul 20, 2020

This is now dependent on us building libosxunwind.dylib correctly (JuliaLang/libosxunwind#16)

@vtjnash vtjnash force-pushed the jn/libunwind-dylib branch from 040c196 to 104ba90 Compare July 20, 2020 19:25
@Keno
Copy link
Member

Keno commented Jul 20, 2020

IIRC the problem was that we would pick up libosxunwind from libSystem. Do your build system tweaks fix that? Also, separate from this PR, but we should switch our upstream to the LLVM copy to pick up aarch64 support.

@vtjnash
Copy link
Member Author

vtjnash commented Jul 21, 2020

Possibly—our dylib had accidentally just been an empty shell re-exporting libSystem. Can’t say it will work now, but definitely wouldn’t have worked before. And agreed we should attempt to apply our diff on top of a newer release.

Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.
@vtjnash vtjnash force-pushed the jn/libunwind-dylib branch from 104ba90 to 76a6f64 Compare July 22, 2020 20:48
@vtjnash vtjnash requested a review from staticfloat July 23, 2020 03:33
Copy link
Member

@staticfloat staticfloat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'm happy to have more things used through a more regularized interface

@vtjnash vtjnash requested a review from Keno July 23, 2020 13:19
@vtjnash vtjnash merged commit 9267bbf into master Jul 27, 2020
@vtjnash vtjnash deleted the jn/libunwind-dylib branch July 27, 2020 16:57
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.
@non-Jedi non-Jedi mentioned this pull request Aug 12, 2020
25 tasks
KristofferC pushed a commit that referenced this pull request Aug 13, 2020
Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.

(cherry picked from commit 9267bbf)
KristofferC pushed a commit that referenced this pull request Aug 14, 2020
Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.

(cherry picked from commit 9267bbf)
KristofferC pushed a commit that referenced this pull request Aug 18, 2020
Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.

(cherry picked from commit 9267bbf)
KristofferC pushed a commit that referenced this pull request Aug 19, 2020
Not sure why this was first linked statically, as the commit that
introduced this simply had the message "restoring stuff that seems to
have been clobbered by the revert of the unintended merge to master".

Nearly all other libraries that we use are linked dynamically.

(cherry picked from commit 9267bbf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants