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

WIP: aarch64-linux #13

Merged
merged 14 commits into from
Oct 25, 2022
Merged

WIP: aarch64-linux #13

merged 14 commits into from
Oct 25, 2022

Conversation

alexeymorozov
Copy link
Contributor

Closes #12

@alexeymorozov alexeymorozov force-pushed the arm64-linux branch 3 times, most recently from 5397c2a to 62b72dc Compare March 25, 2022 17:59
@alexeymorozov
Copy link
Contributor Author

Before merging it should be tested with Alpine to avoid issues like in lutaml/expressir#106.

@alexeymorozov
Copy link
Contributor Author

It's compiled but lacks necessary dependencies to unarchive xar. I think openssl is required for this.

# x86_64
ldd /usr/local/bundle/gems/ffi-libarchive-binary-0.2.5-x86_64-linux/lib/ffi-libarchive-binary/libarchive.so
	linux-vdso.so.1 (0x00007ffd53106000)
	libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f18a317f000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f18a3165000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f18a2fa0000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f18a2f9a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f18a2f78000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f18a35c6000)

# aarch64
ldd /usr/local/bundle/gems/ffi-libarchive-binary-0.2.5-aarch64-linux/lib/ffi-libarchive-binary/libarchive.so
	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000005501933000)
	/lib/ld-linux-aarch64.so.1 (0x0000005500000000)

@ronaldtse
Copy link
Contributor

@alexeymorozov Alpine provides a libarchive package: https://pkgs.alpinelinux.org/package/edge/main/x86/libarchive

Perhaps have a look at how they compile it?

@maxirmx maxirmx force-pushed the arm64-linux branch 3 times, most recently from 5255d0f to d276a23 Compare October 14, 2022 10:40
@maxirmx maxirmx marked this pull request as ready for review October 14, 2022 15:04
@maxirmx maxirmx marked this pull request as draft October 14, 2022 15:56
@maxirmx maxirmx linked an issue Oct 14, 2022 that may be closed by this pull request
@maxirmx maxirmx force-pushed the arm64-linux branch 4 times, most recently from 975f826 to cd5c262 Compare October 18, 2022 08:11
@maxirmx maxirmx force-pushed the arm64-linux branch 4 times, most recently from cfb7b19 to 46fac36 Compare October 20, 2022 16:02
@maxirmx maxirmx linked an issue Oct 20, 2022 that may be closed by this pull request
@maxirmx maxirmx force-pushed the arm64-linux branch 7 times, most recently from d5785a6 to e612e1c Compare October 20, 2022 20:26
@maxirmx
Copy link
Contributor

maxirmx commented Oct 20, 2022

This is a major rework with three goals in mind:

  • fix/implement robust cross compilation scripts to target aarch64-linux-gnu and arm64_apple_darwin for libarchive and previously bundled libraries (zlib, libexpat, libcrypto)
  • open a possibility to create x86_64/aarch64-linux-musl native gems
  • integrate lzma(7z) support that allows to replace seven_zip_ruby gem in excavate and further drop seven_zip_ruby support

@maxirmx maxirmx force-pushed the arm64-linux branch 4 times, most recently from 1efc5c5 to accb36e Compare October 20, 2022 21:36
@maxirmx maxirmx marked this pull request as ready for review October 21, 2022 07:38
@maxirmx maxirmx requested review from CAMOBAP and ronaldtse October 21, 2022 07:38
@ronaldtse ronaldtse merged commit d477ed8 into main Oct 25, 2022
@ronaldtse ronaldtse deleted the arm64-linux branch October 25, 2022 09:19
@ronaldtse
Copy link
Contributor

Thank you @maxirmx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants