Skip to content

fix: #170 compile fail on aarch64 - #171

Merged
tkaitchuck merged 10 commits into
tkaitchuck:masterfrom
PureWhiteWu:fix/compile_fail_on_apple_silicon
Oct 23, 2023
Merged

tkaitchuck merged 10 commits into
tkaitchuck:masterfrom
PureWhiteWu:fix/compile_fail_on_apple_silicon

Conversation

@PureWhiteWu

Copy link
Copy Markdown
Contributor

fixes #170

@PureWhiteWu PureWhiteWu changed the title fix: #170 compile fail on apple silicon fix: #170 compile fail on aarch64 Oct 23, 2023
Comment thread src/operations.rs Resolved
Comment thread src/operations.rs Resolved
Comment thread src/operations.rs Resolved
Comment thread src/operations.rs Resolved
@joshlf

joshlf commented Oct 23, 2023

Copy link
Copy Markdown
Contributor

If you're feeling really ambitious, maybe you could add CI jobs for arm and aarch64? @tkaitchuck would have to say whether they're interested in taking such a change, but I assume they'd be interested.

@PureWhiteWu

Copy link
Copy Markdown
Contributor Author

@joshlf Hi, I'd love to, but I'm not quite sure if github action provides aarch64 machines?

@joshlf

joshlf commented Oct 23, 2023

Copy link
Copy Markdown
Contributor

Yeah you'd probably want to cross-compile using cargo build --tests --target. You can also use cargo miri test --target to emulate tests on another target. Since this crate uses intrinsics, that might not work, but at least cross-compiling with cargo build should.

If you want to do a fuller overhaul (I'd run it by @tkaitchuck and probably do it in a different PR), you could use a job matrix like we do in zerocopy: https://github.com/google/zerocopy/blob/e2ae4f821fea88ad2a4c4ca3478cf595bef4b5f6/.github/workflows/ci.yml#L23

@PureWhiteWu

Copy link
Copy Markdown
Contributor Author

Thanks for your suggestion!
I've added aarch64-apple-darwin target in ci.

@tkaitchuck
tkaitchuck requested a review from joshlf October 23, 2023 17:38
Comment thread src/operations.rs Resolved
Comment thread src/operations.rs Resolved
tkaitchuck and others added 2 commits October 23, 2023 11:18
Co-authored-by: Joshua Liebow-Feeser <[email protected]>
Co-authored-by: Joshua Liebow-Feeser <[email protected]>
@tkaitchuck
tkaitchuck merged commit 7bbbd83 into tkaitchuck:master Oct 23, 2023
dignifiedquire added a commit to n0-computer/iroh that referenced this pull request Oct 23, 2023
@PureWhiteWu
PureWhiteWu deleted the fix/compile_fail_on_apple_silicon branch October 24, 2023 00:52
github-merge-queue Bot pushed a commit to n0-computer/iroh that referenced this pull request Oct 24, 2023
github-merge-queue Bot pushed a commit to n0-computer/iroh that referenced this pull request Oct 24, 2023
dignifiedquire added a commit to n0-computer/iroh that referenced this pull request Oct 24, 2023
rklaehn pushed a commit to n0-computer/iroh-blobs that referenced this pull request Oct 22, 2024
rklaehn pushed a commit to n0-computer/iroh-blobs that referenced this pull request Oct 22, 2024
matheus23 pushed a commit to n0-computer/iroh-doctor that referenced this pull request Oct 22, 2024
matheus23 pushed a commit to n0-computer/iroh that referenced this pull request Nov 14, 2024
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.

Compile error on aarch64 in version 0.8.4

3 participants