Opened 5 years ago
Last modified 4 years ago
#60246 assigned defect
git 2.25.1_0 +credential_osxkeychain +diff_highlight +doc +pcre +perl5_28]: fails to install, 'unistd.h' file not found
Reported by: | jlargentaye (John de Largentaye) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | xcode12 | Cc: | |
Port: | git |
Description
Upgrading Git on Cataline 15.3, with a developer seed of XCode 12 & associated CommandLineTools.
Of note in the logs:
- include paths used at compile time,
/opt/local/include
and/usr/local/include
, indeed do not contain the header file unistd.h DEVELOPER_DIR
is reported to beDEVELOPER_DIR='/Library/Developer/CommandLineTools'
even though, in my environment, it is set to/Applications/Xcode.app/Contents/Developer
, and the output ofxcode-select -p
is also {/Applications/Xcode.app/Contents/Developer}}} (and the path exists)
Additionally, unistd.h exists at various locations in SDKs under /Library/Developer/CommandLineTools
and /Applications/Xcode.app/Contents/Developer
. Specific paths can be provided on request.
Attachments (1)
Change History (3)
Changed 5 years ago by jlargentaye (John de Largentaye)
comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jlargentaye:
Upgrading Git on Cataline 15.3, with a developer seed of XCode 12 & associated CommandLineTools.
Of note in the logs:
- include paths used at compile time,
/opt/local/include
and/usr/local/include
, indeed do not contain the header file unistd.h
That is correct. It is a system header. It is not provided by MacPorts.
We should fix the build so that it does not look in /usr/local/include.
DEVELOPER_DIR
is reported to beDEVELOPER_DIR='/Library/Developer/CommandLineTools'
even though, in my environment, it is set to/Applications/Xcode.app/Contents/Developer
, and the output ofxcode-select -p
is also/Applications/Xcode.app/Contents/Developer
(and the path exists)
That is correct. That is an intentional change as of MacPorts 2.6.0.
Additionally, unistd.h exists at various locations in SDKs under
/Library/Developer/CommandLineTools
and/Applications/Xcode.app/Contents/Developer
. Specific paths can be provided on request.
Does /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk exist? Because that's where MacPorts is going to look for system headers on your system. Make sure that you have command line tools for macOS 10.15 installed; it should provide that SDK.
Note that we can't really help with prerelease software. If you can't get it to work with Xcode 12 preview, use Xcode 11.4 which should work.
comment:2 Changed 4 years ago by mf2k (Frank Schima)
Keywords: | xcode12 added |
---|---|
Owner: | set to ci42 |
Status: | new → assigned |
Build failure log for git-2.25.1 with Xcode 12 preview