Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add job for Apple Silicon MacOS build #51

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BatmanAoD
Copy link

No description provided.

@BatmanAoD BatmanAoD marked this pull request as draft November 27, 2023 17:18
@notmgsk
Copy link
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

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