Nimble won't compile on Arm Linux

Open
#981 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift

Research direction

Reproduce the reported failure by running swift test for Nimble in an Arm Linux or Apple Silicon Docker environment, using issue #980 for context. Inspect the throwAssertion matcher and its platform compilation conditions, then verify that the project builds and tests successfully on Arm Linux without relying on the proposed workaround.

Written by the indexing model from the issue text.

Description

bug

For all... probably 0 people running Nimble on a raspberry pi..
For those running swift in a docker container on an apple silicon mac.

Discovered while doing #980, basically, if you try to run swift test on an Arm box, you get a bunch of build errors like the following:

Screen Shot 2022-04-18 at 6 03 44 PM

Googling around, it seems like this is just a register or something that isn't in the arm version of GLIBC?

We can definitely avoid this by wrapping our throwAssertion matcher around an #if canImport(Darwin) || arch(x86_64) compilation block. But, I'd love an actual fix for this if we can do that.

Dominant language
Swift
Stars
4.8k
Forks
609
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Quick/Nimble

All issues in Quick/Nimble

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.