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

chore(releasing): Remove -Clink-self-contained=no from musl builds #9771

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

jszwedko
Copy link
Member

@jszwedko jszwedko commented Oct 22, 2021

This was added in c7da80a but seems to break builds of Rust 1.56.0
with:

  = note: /usr/local/bin/../lib/gcc/arm-linux-musleabihf/6.4.0/../../../../arm-linux-musleabihf/bin/ld: cannot find -lunwind
          collect2: error: ld returned 1 exit status

I think this is because of these changes in Rust in 1.56.0: rust-lang/rust#85600 . Previously it looks to me that Rust always build libunwind, and now it conditionally does it based on link-self-contained.

It isn't immediately clear to me why we can't have Rust build the libraries to
link in so opening this for feedback and to see if it works for all of our
cross builds.

This was added in c7da80a but seems to break builds of Rust 1.56.0
with:

```
  = note: /usr/local/bin/../lib/gcc/arm-linux-musleabihf/6.4.0/../../../../arm-linux-musleabihf/bin/ld: cannot find -lunwind
          collect2: error: ld returned 1 exit status
```

I think this is because of these changes in Rust in 1.56.0:

rust-lang/rust@4c9896f#diff-b78a4729cc6ec9756d0e89273cb5d1b0bb906264d7d5ed5aa6f759ad07d47c62

It isn't immediately clear to me why we can't have Rust build the libraries to
link in so opening this for feedback and to see if it works for all of our
cross builds.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
@netlify
Copy link

netlify bot commented Oct 22, 2021

✔️ Deploy Preview for vector-project canceled.

🔨 Explore the source changes: 00891fc

🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/617317b24159820008c6f797

@jszwedko jszwedko requested review from blt and tobz October 22, 2021 19:47
@jszwedko
Copy link
Member Author

@japaric Apologies to bother. I'm just curious if you remember why or if this was needed.

@jszwedko
Copy link
Member Author

rust-lang/rust#85751 seems possibly relevant.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
@jszwedko jszwedko merged commit 924d002 into master Oct 26, 2021
@jszwedko jszwedko deleted the remove-self-contained branch October 26, 2021 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants