Skip to content

Refactor binary-compatible-builds for releases#4171

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:more-compatible-builds
May 20, 2022
Merged

Refactor binary-compatible-builds for releases#4171
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:more-compatible-builds

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

I was poking around this yesterday and noticed a few things that could
be improved for our release builds:

  • The centos container for the x86_64 builds contained a bunch of extra
    tooling we no longer need such as python3 and a C++ compiler. Along
    with custom toolchain things this could all get removed since the C we
    include now is quite simple.

  • The aarch64 and s390x cross-compiled builds had relatively high glibc
    version requirements compared to the x86_64 build. This was because we
    don't use a container to build the cross-compiled binaries. I added
    containers here along the lines of the x86_64 build to use an older
    glibc to build the release binary to lower our version requirement.
    This lower the aarch64 version requirement from glibc 2.28 to 2.17.
    Additionally the s390x requirement dropped from 2.28 to 2.16.

  • To make the containers a bit easier to read/write I added
    Dockerfiles for them in a new ci/docker directory instead of
    hardcoding install commands in JS.

This isn't intended to be a really big change or anything for anyone,
but it's intended to keep our Linux-based builds consistent at least as
best we can.

I was poking around this yesterday and noticed a few things that could
be improved for our release builds:

* The centos container for the x86_64 builds contained a bunch of extra
  tooling we no longer need such as python3 and a C++ compiler. Along
  with custom toolchain things this could all get removed since the C we
  include now is quite simple.

* The aarch64 and s390x cross-compiled builds had relatively high glibc
  version requirements compared to the x86_64 build. This was because we
  don't use a container to build the cross-compiled binaries. I added
  containers here along the lines of the x86_64 build to use an older
  glibc to build the release binary to lower our version requirement.
  This lower the aarch64 version requirement from glibc 2.28 to 2.17.
  Additionally the s390x requirement dropped from 2.28 to 2.16.

* To make the containers a bit easier to read/write I added
  `Dockerfile`s for them in a new `ci/docker` directory instead of
  hardcoding install commands in JS.

This isn't intended to be a really big change or anything for anyone,
but it's intended to keep our Linux-based builds consistent at least as
best we can.
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexcrichton alexcrichton merged commit 08b7c87 into bytecodealliance:main May 20, 2022
@alexcrichton alexcrichton deleted the more-compatible-builds branch May 20, 2022 17:13
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