Skip to content

Document workaround for Apple Silicon#2893

Merged
rv-jenkins merged 2 commits intomasterfrom
apple-silicon-docs
Oct 26, 2021
Merged

Document workaround for Apple Silicon#2893
rv-jenkins merged 2 commits intomasterfrom
apple-silicon-docs

Conversation

@Baltoli
Copy link
Contributor

@Baltoli Baltoli commented Oct 25, 2021

This adds a pointer to documentation I've found that explains how to
build using stack on Apple Silicon. It's a temporary change until
better support is merged upstream, and requires no changes to the actual code of the project.

This adds a pointer to documentation I've found that explains how to
build using `stack` on Apple Silicon. It's a temporary change until
better support is merged upstream, and requires no changes to the actual
code of the project.
@Baltoli Baltoli requested a review from ana-pantilie October 25, 2021 14:06
Copy link
Contributor

@ana-pantilie ana-pantilie left a comment

Choose a reason for hiding this comment

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

The latest LTS comes with GHC 8.10.7. Do you think updating to this LTS will fix the issue?

@github-actions
Copy link

name diff_allocated_bytes diff_max_live_bytes
test/regression-evm/test-sha3_bigSize.sh -0.000022 -0.000022
test/regression-evm/test-sum-to-n.sh 0.000002 0.000024
test/regression-evm/test-straight-line.sh 0.000018 0.079468
test/regression-evm/test-storagevar03.sh -0.000010 -0.000052
test/regression-evm/test-straight-line-no-invalid.sh 0.000000 -0.003683
test/regression-evm/test-lemmas.sh -0.000021 0.047497
test/regression-evm/test-sumTo10.sh -0.000000 -0.020828
test/regression-evm/test-totalSupply.sh 0.000001 -0.005287
test/regression-evm/test-pop1.sh 0.000000 0.008921
test/regression-evm/test-branching-no-invalid.sh -0.000000 0.000220
test/regression-evm/test-mul0.sh 0.000000 -0.084272
test/regression-evm/test-branching-invalid.sh -0.000000 -0.003163
test/regression-evm/test-add0.sh -0.000000 -0.051529
test/regression-evm/test-addu48u48.sh -0.000004 0.055657
test/regression-evm/test-and0.sh 0 -0.010303
test/regression-wasm/test-locals.sh 0.000000 0.000001
test/regression-wasm/test-loops.sh -0.000010 -0.000000
test/regression-wasm/test-wrc20.sh 0.000001 -0.007064
test/regression-wasm/test-memory.sh 0.000008 -0.000031
test/regression-wasm/test-simple-arithmetic.sh -0.000021 0.000000

@Baltoli
Copy link
Contributor Author

Baltoli commented Oct 25, 2021

Not quite, unfortunately - the compiler support is one part of the problem, but the other part is that stack itself hasn't yet been updated to support Apple Silicon. It seems like the current approaches are to either rebuild stack from source, or use the flags proposed in this PR to force it to get an appropriate compiler.

Copy link
Contributor

@ana-pantilie ana-pantilie left a comment

Choose a reason for hiding this comment

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

I see, thank you for looking into this! 😄

@github-actions
Copy link

name diff_allocated_bytes diff_max_live_bytes
test/regression-evm/test-sha3_bigSize.sh -0.000006 -0.004043
test/regression-evm/test-sum-to-n.sh 0.000032 0.016449
test/regression-evm/test-straight-line.sh -0.000001 0.000105
test/regression-evm/test-storagevar03.sh -0.000005 0.000896
test/regression-evm/test-straight-line-no-invalid.sh -0.000001 0.008210
test/regression-evm/test-lemmas.sh 0.000002 0.047210
test/regression-evm/test-sumTo10.sh -0.000000 -0.002783
test/regression-evm/test-totalSupply.sh -0.000002 0.000001
test/regression-evm/test-pop1.sh -0.000009 0.000642
test/regression-evm/test-branching-no-invalid.sh -0.000000 -0.027207
test/regression-evm/test-mul0.sh -0.000000 -0.077935
test/regression-evm/test-branching-invalid.sh -0.000000 0.023511
test/regression-evm/test-add0.sh -0.000000 -0.088995
test/regression-evm/test-addu48u48.sh 0.000002 -0.106989
test/regression-evm/test-and0.sh -0.000000 0.019284
test/regression-wasm/test-locals.sh 0.000001 0.000003
test/regression-wasm/test-loops.sh 0.000041 0.000170
test/regression-wasm/test-wrc20.sh -0.000005 -0.002869
test/regression-wasm/test-memory.sh -0.000016 0.000263
test/regression-wasm/test-simple-arithmetic.sh 0.000046 -0.000003

@rv-jenkins rv-jenkins merged commit d2e8c49 into master Oct 26, 2021
@rv-jenkins rv-jenkins deleted the apple-silicon-docs branch October 26, 2021 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants