Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented May 26, 2021

After two reports on IRC of issues building depends on an Apple M1 machine, this option (obviously) can't be used when targeting arm-apple-darwin. For now, just use it for x86_64-apple-darwin.

Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0

error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
2 errors generated.

After two reports on IRC of issues building depends on an Apple M1
machine, it turns out that this option can't be used when targeting
arm-apple-darwin. For now, just use it for x86_64-apple-darwin.

```bash
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0

error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
2 errors generated.
```
@fanquake fanquake requested review from JeremyRubin and promag May 26, 2021 05:19
fanquake added a commit that referenced this pull request May 28, 2021
7e2a989 depends: latest config.sub (2021-04-30) (fanquake)
f16d4cd depends: latest config.guess (2021-05-24) (fanquake)

Pull request description:

  This is split out of #21851. Updating these files should be mechanical, and shouldn't have to wait for that PR. Also, having support in depends for the new `arm-apple-darwin` target (added in [2593751ef276497e312d7c4ce7fd049614c7bf80](https://git.savannah.gnu.org/cgit/config.git/commit/?id=2593751ef276497e312d7c4ce7fd049614c7bf80)) is useful when debugging. i.e #22070.

  If you try and compile depends for a `arm-apple-darwin` target using master, on a x86_64 darwin machine, currently you'll get:
  ```bash
  gmake -C depends -j9 HOST=arm64-apple-darwin
  Invalid configuration `arm64-apple-darwin': machine `arm64-apple' not recognized
  shasum: hosts/.mk: No such file or directory
  <omitted>
  Makefile:111: hosts/.mk: No such file or directory
  gmake: *** No rule to make target 'hosts/.mk'.  Stop.
  ```

ACKs for top commit:
  laanwj:
    ACK 7e2a989

Tree-SHA512: 8ed99b5d486c6cbca8929a752460338b6ee17f6bf93013c76589605678853c3a01ebd631b4d3f5d6aaeb6e5c21b7bbe39afc4454d3a697fafb27678f6d2c021e
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

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

Tested ACK 3caedb4.

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 28, 2021
7e2a989 depends: latest config.sub (2021-04-30) (fanquake)
f16d4cd depends: latest config.guess (2021-05-24) (fanquake)

Pull request description:

  This is split out of bitcoin#21851. Updating these files should be mechanical, and shouldn't have to wait for that PR. Also, having support in depends for the new `arm-apple-darwin` target (added in [2593751ef276497e312d7c4ce7fd049614c7bf80](https://git.savannah.gnu.org/cgit/config.git/commit/?id=2593751ef276497e312d7c4ce7fd049614c7bf80)) is useful when debugging. i.e bitcoin#22070.

  If you try and compile depends for a `arm-apple-darwin` target using master, on a x86_64 darwin machine, currently you'll get:
  ```bash
  gmake -C depends -j9 HOST=arm64-apple-darwin
  Invalid configuration `arm64-apple-darwin': machine `arm64-apple' not recognized
  shasum: hosts/.mk: No such file or directory
  <omitted>
  Makefile:111: hosts/.mk: No such file or directory
  gmake: *** No rule to make target 'hosts/.mk'.  Stop.
  ```

ACKs for top commit:
  laanwj:
    ACK 7e2a989

Tree-SHA512: 8ed99b5d486c6cbca8929a752460338b6ee17f6bf93013c76589605678853c3a01ebd631b4d3f5d6aaeb6e5c21b7bbe39afc4454d3a697fafb27678f6d2c021e
@DrahtBot
Copy link
Contributor

Gitian builds

File commit 7257e50
(master)
commit 5b461265764a66c11531544c16e7371ec917c65a
(master and this pull)
*-aarch64-linux-gnu-debug.tar.gz 59c9fdf6d29381f9... 9e74cca99d55f590...
*-aarch64-linux-gnu.tar.gz 3cc252b77ff7881a... 4c108d38f0dcebd1...
*-arm-linux-gnueabihf-debug.tar.gz bf8921f6e0857653... ace6ecfdd14948bd...
*-arm-linux-gnueabihf.tar.gz 4d81f0ef8ada89aa... facc0dea5b32adea...
*-osx-unsigned.dmg f6e41b7764bb1978... 9f8f2ded8c4f3d41...
*-osx64.tar.gz 3a4b894668cdcc8b... fc518bcf5eef390e...
*-powerpc64-linux-gnu-debug.tar.gz 5bc34fc1bd235b94... 3341ce854d20d6c9...
*-powerpc64-linux-gnu.tar.gz 1d794253d93f6c1f... 822bc58932366847...
*-powerpc64le-linux-gnu-debug.tar.gz 9a0c4e41b269c5f5... 3bb1f6419f39d74b...
*-powerpc64le-linux-gnu.tar.gz 89371b9a09b3c739... 126972c8fafdf201...
*-riscv64-linux-gnu-debug.tar.gz 62d7f9e7d1ef6f74... d2dd50d177744892...
*-riscv64-linux-gnu.tar.gz 3aa2b3e46d117ebb... 6a8d5e0e66c1a1c4...
*-win64-debug.zip b770bec5fac76a40... 87f47930b5a57f4e...
*-win64-setup-unsigned.exe 221a3c156349baa6... 353219ce86b43522...
*-win64.zip ffd6fa8d0fb16265... 6590821f6c5fc7c4...
*-x86_64-linux-gnu-debug.tar.gz 869babea5b9f6d6c... 8efb6cc4f7ef452b...
*-x86_64-linux-gnu.tar.gz 0bbab3c5338decbf... df29021ec3b20195...
*.tar.gz 0ae2b7e350994b6a... fbf4337837a6c8ad...
bitcoin-core-linux-22-res.yml c213362c6a72cb6b... bcc9ba083b3239e9...
bitcoin-core-osx-22-res.yml 0bb7966747cc1b77... f75a1bedf7dc3ac7...
bitcoin-core-win-22-res.yml 6748a2be6f5d3189... 393edafa1a0984fd...
linux-build.log 01da8ce01e5930c6... 26d732ba775a1325...
osx-build.log 1eb2f2c1213cb8f8... cd89b0ab4e6ef105...
win-build.log abaa78de37bf870a... 20800db63449ac3b...
bitcoin-core-linux-22-res.yml.diff e80c96e97fbf2d37...
bitcoin-core-osx-22-res.yml.diff 9bb2073ef7bbb752...
bitcoin-core-win-22-res.yml.diff 6a24b71f1e4f4da3...
linux-build.log.diff 5f003b84d9ad81ec...
osx-build.log.diff 694a0447b7630824...
win-build.log.diff a6553ecf89766269...

@fanquake fanquake merged commit 619e930 into bitcoin:master May 31, 2021
@fanquake fanquake deleted the dont_use_cfprotection_m1 branch May 31, 2021 02:21
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 1, 2021
…m-apple-darwin

3caedb4 build: don't use cf-protection when targeting arm-apple-darwin (fanquake)

Pull request description:

  After two reports on IRC of issues building depends on an Apple M1 machine, this option (obviously) can't be used when targeting `arm-apple-darwin`.  For now, just use it for `x86_64-apple-darwin`.

  ```bash
  Apple clang version 12.0.5 (clang-1205.0.22.9)
  Target: x86_64-apple-darwin20.4.0

  error: option 'cf-protection=return' cannot be specified on this target
  error: option 'cf-protection=branch' cannot be specified on this target
  2 errors generated.
  ```

ACKs for top commit:
  promag:
    Tested ACK 3caedb4.

Tree-SHA512: 8763a5b94000016b0c2f0438e66002fdfcd2cbafd9d2d2acc1972f0c6f707e820186711dbd9d3f72673c179718da75588acb4732f8d84b85f0c1dfc862b6e944
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 24, 2021
7e2a989 depends: latest config.sub (2021-04-30) (fanquake)
f16d4cd depends: latest config.guess (2021-05-24) (fanquake)

Pull request description:

  This is split out of bitcoin#21851. Updating these files should be mechanical, and shouldn't have to wait for that PR. Also, having support in depends for the new `arm-apple-darwin` target (added in [2593751ef276497e312d7c4ce7fd049614c7bf80](https://git.savannah.gnu.org/cgit/config.git/commit/?id=2593751ef276497e312d7c4ce7fd049614c7bf80)) is useful when debugging. i.e bitcoin#22070.

  If you try and compile depends for a `arm-apple-darwin` target using master, on a x86_64 darwin machine, currently you'll get:
  ```bash
  gmake -C depends -j9 HOST=arm64-apple-darwin
  Invalid configuration `arm64-apple-darwin': machine `arm64-apple' not recognized
  shasum: hosts/.mk: No such file or directory
  <omitted>
  Makefile:111: hosts/.mk: No such file or directory
  gmake: *** No rule to make target 'hosts/.mk'.  Stop.
  ```

ACKs for top commit:
  laanwj:
    ACK 7e2a989

Tree-SHA512: 8ed99b5d486c6cbca8929a752460338b6ee17f6bf93013c76589605678853c3a01ebd631b4d3f5d6aaeb6e5c21b7bbe39afc4454d3a697fafb27678f6d2c021e
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants