Skip to content

Build for Apple Silicon MacOS - #51

Closed
BatmanAoD wants to merge 2 commits into
rigetti:mainfrom
BatmanAoD:patch-1
Closed

Build for Apple Silicon MacOS#51
BatmanAoD wants to merge 2 commits into
rigetti:mainfrom
BatmanAoD:patch-1

Conversation

@BatmanAoD

Copy link
Copy Markdown

No description provided.

@BatmanAoD
BatmanAoD marked this pull request as draft November 27, 2023 17:18
@notmgsk

notmgsk commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Some notes from building libquil on an M1

  • successfully built SBCL tag sbcl-2.4.3 (with same flags as in github workflow definition)
  • updated the quilc branch to pull in changes from quil-lang/quilc
  • followed instructions from .github/workflows/build.yaml
  • bumped the dynamic space sizes
  • removed the page-zero size (from libquil and libquil-sys)
    • will need to conditionally apply this to only intel macos
  • tests needed extra -L/usr/local/lib for build and for running the executable
  • Makefile needed -L/usr/local/lib when building library
  • Maybe not required but we did a make cleanall in the quilc repo after updating the quilc branch
  • libquil: build with make and move libquil.h to /usr/local/include/libquil/libquil.h, and libquil.dylib libquil.core to /usr/local/lib
  • libquil-sys: one of the tests is failing, though it should be passing (test_multishot_measure_deterministic)

@MarquessV

MarquessV commented Apr 3, 2024

Copy link
Copy Markdown

I also needed to make sure that the ARM version of libclang was in a search path with:

export DYLD_LIBRARY_PATH=/opt/homebrew/opt/llvm@13/lib:$DYLD_LIBRARY_PATH

@BatmanAoD BatmanAoD closed this Aug 11, 2026
@BatmanAoD
BatmanAoD deleted the patch-1 branch August 11, 2026 20:43
@BatmanAoD BatmanAoD changed the title Add job for Apple Silicon MacOS build Build for Apple Silicon MacOS Aug 11, 2026
@BatmanAoD BatmanAoD mentioned this pull request Aug 11, 2026
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.

3 participants