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

Use (x86_64/aarch64)-linux-gnu target platform for native extensions instead of (x86_64/aarch64)-linux #138

Merged
merged 4 commits into from
Dec 17, 2023

Conversation

maxirmx
Copy link
Contributor

@maxirmx maxirmx commented Dec 12, 2023

Rubygems/bundler allow (x86_64/aarch64)-linux-gnu, (x86_64/aarch64)-linux-musl, (x86_64/aarch64)-linux target platform for native extensions.

When (x86_64/aarch64)-linux-musl is not available Ruby loads (x86_64/aarch64)-linux on Alpine Linux.
Previous versions of CI for this gem optimistically used rake-compiler defaul that created (x86_64/aarch64)-linux extension although in most cases it was not compatible with musl environment even with gcompat package installed.

So in this PR native extension target is changed to (x86_64/aarch64)-linux-gnu . On Alpine Linux bundler/Rubygems build bantive extension from sources.

There is another issue (#105) that calls for publishing (x86_64/aarch64)-linux-musl native extension.

@maxirmx maxirmx force-pushed the maxirmx-issue-105 branch 6 times, most recently from ddc9c61 to ac9f98a Compare December 13, 2023 21:11
@maxirmx maxirmx force-pushed the maxirmx-issue-105 branch 4 times, most recently from 16d35d3 to 1318230 Compare December 16, 2023 09:14
@maxirmx maxirmx changed the title Issue 105 Use (x86_64/aarch64)-linux-gnu target platform for native extensions instead of (x86_64/aarch64)-linux Dec 16, 2023
@maxirmx maxirmx linked an issue Dec 16, 2023 that may be closed by this pull request
@maxirmx maxirmx force-pushed the maxirmx-issue-105 branch 2 times, most recently from bc073e6 to bffe9c9 Compare December 16, 2023 11:57
@maxirmx maxirmx marked this pull request as ready for review December 16, 2023 12:19
@ronaldtse
Copy link
Contributor

@maxirmx there’s a single test failure in the Windows test, seems that the tests weren’t even run. Is that something that can be fixed? Thanks!

@maxirmx maxirmx force-pushed the maxirmx-issue-105 branch 2 times, most recently from e289d32 to b9414c4 Compare December 16, 2023 20:19
@maxirmx
Copy link
Contributor Author

maxirmx commented Dec 17, 2023

@maxirmx there’s a single test failure in the Windows test, seems that the tests weren’t even run. Is that something that can be fixed? Thanks!

It is the same segfault as in #139. On Windows race jsut terminates without any error message.

@ronaldtse ronaldtse merged commit e1c8e98 into main Dec 17, 2023
41 checks passed
@ronaldtse ronaldtse deleted the maxirmx-issue-105 branch December 17, 2023 09:19
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.

Failure when loaded in Alpine Linux with musl-dev
3 participants