Skip to content

Conversation

@fanquake
Copy link
Member

Starting with Xcode 10.0, installing the macOS Command Line Tools no longer installs the macOS system headers into /usr/include/ (this behaviour is seemingly deprecated).

This means that building some dependencies using depends will fail like:

fatal error: 'unistd.h' file not found

/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg is provided as a work around to install the system headers into /usr/include/. This has come up once already, so probably worth documenting in the macOS build notes.

@fanquake fanquake force-pushed the macos-no-more-headers branch from 63364a1 to 9860689 Compare September 29, 2018 10:32
@promag
Copy link
Contributor

promag commented Oct 1, 2018

I guess this not necessary for those that update from a working development environment?

@theuni
Copy link
Member

theuni commented Oct 1, 2018

I don't think this is the right thing to do. Instead, we should be making sure that the SDK is used as the sysroot as intended.

@fanquake
Copy link
Member Author

fanquake commented Oct 9, 2018

@theuni I'll close this for now. Anyone that runs into the problem can find this PR, or the discussion in other issues.

@fanquake fanquake closed this Oct 9, 2018
@fanquake fanquake deleted the macos-no-more-headers branch October 9, 2018 05:18
@Sjors
Copy link
Member

Sjors commented Oct 12, 2019

Trying the proper (?) solution in #17118

laanwj added a commit that referenced this pull request Oct 16, 2019
a0daea4 [build] depends macOS: point --sysroot to SDK (Sjors Provoost)

Pull request description:

  Fixes errors like `fatal error: 'unistd.h' file not found` when building depends on macOS.

  Replaces #14352 (which doesn't work on Catalina).

ACKs for top commit:
  jonasschnelli:
    utACK a0daea4

Tree-SHA512: 995b1e1e84e635b32d1d4038bc63730c94a7c318b7240f6d62825977e5c97fe52c5aa5a0f39070beb0df8271dd294b36d6b5cf7f09ad07494fb15d5bd4d77f68
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Oct 17, 2019
a0daea4 [build] depends macOS: point --sysroot to SDK (Sjors Provoost)

Pull request description:

  Fixes errors like `fatal error: 'unistd.h' file not found` when building depends on macOS.

  Replaces bitcoin#14352 (which doesn't work on Catalina).

ACKs for top commit:
  jonasschnelli:
    utACK a0daea4

Tree-SHA512: 995b1e1e84e635b32d1d4038bc63730c94a7c318b7240f6d62825977e5c97fe52c5aa5a0f39070beb0df8271dd294b36d6b5cf7f09ad07494fb15d5bd4d77f68
UdjinM6 added a commit to dashpay/dash that referenced this pull request Oct 19, 2019
)

a0daea4 [build] depends macOS: point --sysroot to SDK (Sjors Provoost)

Pull request description:

  Fixes errors like `fatal error: 'unistd.h' file not found` when building depends on macOS.

  Replaces bitcoin#14352 (which doesn't work on Catalina).

ACKs for top commit:
  jonasschnelli:
    utACK a0daea4

Tree-SHA512: 995b1e1e84e635b32d1d4038bc63730c94a7c318b7240f6d62825977e5c97fe52c5aa5a0f39070beb0df8271dd294b36d6b5cf7f09ad07494fb15d5bd4d77f68
codablock pushed a commit to codablock/dash that referenced this pull request Nov 19, 2019
…shpay#3161)

a0daea4 [build] depends macOS: point --sysroot to SDK (Sjors Provoost)

Pull request description:

  Fixes errors like `fatal error: 'unistd.h' file not found` when building depends on macOS.

  Replaces bitcoin#14352 (which doesn't work on Catalina).

ACKs for top commit:
  jonasschnelli:
    utACK a0daea4

Tree-SHA512: 995b1e1e84e635b32d1d4038bc63730c94a7c318b7240f6d62825977e5c97fe52c5aa5a0f39070beb0df8271dd294b36d6b5cf7f09ad07494fb15d5bd4d77f68
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
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.

5 participants