Skip to content

Add job for Apple Silicon MacOS build#51

Draft
BatmanAoD wants to merge 1 commit intorigetti:mainfrom
BatmanAoD:patch-1
Draft

Add job for Apple Silicon MacOS build#51
BatmanAoD wants to merge 1 commit intorigetti: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
Copy link
Copy Markdown
Contributor

notmgsk commented Apr 3, 2024

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
Copy link
Copy Markdown

MarquessV commented Apr 3, 2024

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

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