Skip to content

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Jan 2, 2023

In https://github.com/mkurz/sbtn-dist/commits/aarch64-support I am setting up a GitHub actions job to build a sbtn binary for Linux aarch64. To make this happen, the changes in this PR are necessary. I am almost done, binary can be downloaded here already: https://github.com/mkurz/sbtn-dist/actions/runs/3825258120

@lightbend-cla-validator
Copy link

Hi @mkurz,

Thank you for your contribution! We really value the time you've taken to put this together.

We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it.
Please review the new CLA and sign it before we proceed with reviewing this pull request:

https://www.lightbend.com/contribute/cla

@mkurz mkurz changed the title Prepare aarch64 support for sbtn binary [1.8.x] Prepare aarch64 support for sbtn binary Jan 2, 2023
),
) ++ (if (isLinux && isArmArchitecture)
Seq("-H:PageSize=65536") // Make sure binary runs on kernels with page size set to 4k, 16 and 64k
else Nil),
Copy link
Member Author

Choose a reason for hiding this comment

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

We need to set the page size to 64k for aarch64 binaries to make sure it runs on all kind of kernels.
I did lots of research, collected here: coursier/coursier#2636 (comment)

scala-ci already merged the same fix: VirtusLab/scala-cli#1726
coursier should follow soon: coursier/coursier#2641

@mkurz
Copy link
Member Author

mkurz commented Jan 2, 2023

@eed3si9n If you could take a look, that would be nice. More pull requests are coming afterwards. (Also, I just signed the CLA). Thanks!

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM
If possible, could you target the default branch (currently 1.9.x branch), and backport next time?

@mkurz
Copy link
Member Author

mkurz commented Jan 3, 2023

If possible, could you target the default branch (currently 1.9.x branch), and backport next time?

Sure 👍

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