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

Update SDK to 0.12.0 #1014

Merged
merged 2 commits into from
Aug 10, 2020
Merged

Update SDK to 0.12.0 #1014

merged 2 commits into from
Aug 10, 2020

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Aug 7, 2020

Issue number:

n/a

Description of changes:

Move to SDK v0.12.0 (bottlerocket-os/bottlerocket-sdk#30). Two changes on the Bottlerocket side:

  • The new embed-bitcode flag conflicts with -C lto. error: options -C bitcode-in-rlib=no and -C lto are incompatible rust-lang/rust#71848 suggests using Cargo-specific environment variables to get correct behavior, as "Cargo has much more intrusive knowledge of LTO now for compile time speedups".
  • Updated to glibc 2.32 in this PR, otherwise our Rust code doesn't build on aarch64 due to missing symbol versions. This will probably conflict with @tjkirch's version-bumps-in-progress, and I can cherry-pick his commit over here to replace mine to get rid of the conflict (I think). Looks like glibc updates need to be lockstep across the SDK and the OS.

Testing done:

It builds, need to do a boot test.

CI will fail until I actually perform an SDK release.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

rustc's `lto` flag is incompatible with the new `embed-bitcode=no`. The
release notes for Rust 1.45 recommend controlling LTO with Cargo
profiles, and one way to do that is setting `CARGO_PROFILE_<name>_LTO`
in the environment.
@tjkirch tjkirch requested a review from bcressey August 7, 2020 23:21
Copy link
Contributor

@tjkirch tjkirch left a comment

Choose a reason for hiding this comment

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

Presuming we have an answer for host/target glibc symbol mismatches -- which this lockstep update might address, but I don't fully understand, so help me @bcressey...

[edit] ✅

@iliana iliana marked this pull request as ready for review August 10, 2020 06:50
@iliana iliana merged commit 7e7a68f into bottlerocket-os:develop Aug 10, 2020
@iliana iliana deleted the sdk-0.12 branch August 10, 2020 18:55
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.

3 participants