doc: Install Rosetta on M1-macOS for qt in depends #22402

pull hebasto wants to merge 1 commits into bitcoin:master from bitcoin:210705-rosetta changing 1 files +8 −0
  1. hebasto commented at 10:45 am on July 5, 2021: member

    On master (c609e10545492aba480ff17aff7eefc13a0b5cd8) make -C depends qt on Apple Silicon based macOS 11.4 ends with an error:

    0/bin/sh: /Users/hebasto/bitcoin/depends/work/build/aarch64-apple-darwin20.5.0/qt/5.12.11-6c4d47a8f8f/qtbase/bin/moc: Bad CPU type in executable
    

    Installing Rosetta 2 fixes it.

    Explanation. On Apple Silicon macOS the qt package in depends actually is cross compiled. All native tools (including moc) are x86_64 binaries, that require Rosetta 2 to run.

  2. doc: Install Rosetta on M1-macOS for qt in depends cdb41d5573
  3. hebasto commented at 10:46 am on July 5, 2021: member
  4. fanquake added the label Docs on Jul 5, 2021
  5. promag commented at 9:47 pm on July 5, 2021: member
    ACK cdb41d5573b1e2ed1bc1d8d1dc9f77e82672ee1f.
  6. sipa closed this on Jul 6, 2021

  7. sipa deleted the branch on Jul 6, 2021
  8. MarcoFalke restored the branch on Jul 6, 2021
  9. MarcoFalke reopened this on Jul 6, 2021

  10. MarcoFalke commented at 5:59 am on July 6, 2021: member
    branch can be deleted after close or merge
  11. fanquake approved
  12. fanquake commented at 12:35 pm on July 7, 2021: member
    ACK cdb41d5573b1e2ed1bc1d8d1dc9f77e82672ee1f - I have not tested after installing Rosetta 2, but I saw the same issue during my first cross-compile on an M1 box.
  13. Zero-1729 approved
  14. Zero-1729 commented at 12:51 pm on July 7, 2021: contributor

    ACK cdb41d5573b1e2ed1bc1d8d1dc9f77e82672ee1f

    I had the same issue on an initial compile on the M1, glad to see this make it to the docs.

  15. fanquake merged this on Jul 7, 2021
  16. fanquake closed this on Jul 7, 2021

  17. MarcoFalke commented at 1:04 pm on July 7, 2021: member
  18. laanwj deleted the branch on Jul 7, 2021
  19. sidhujag referenced this in commit 62f22a2ee5 on Jul 10, 2021
  20. fanquake referenced this in commit 0d7ecd5bef on Nov 25, 2021
  21. sidhujag referenced this in commit dbd410944e on Nov 25, 2021
  22. gwillen referenced this in commit 3f5b803a26 on Jun 1, 2022
  23. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-06 16:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me