[MacPorts] #64161: git-2.34.1_1 fails to build on Monterey in MacPorts 2.7.1. Build error 'Security/Security.h' file not found

MacPorts noreply at macports.org
Wed Dec 8 16:50:23 UTC 2021


#64161: git-2.34.1_1 fails to build on Monterey in MacPorts 2.7.1.  Build error
'Security/Security.h' file not found
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:  (none)
  wealthychef1           |
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.1
 Keywords:  monterey     |       Port:  git (not sure how to indicate exact
                         |  version, please see text)
-------------------------+-------------------------------------------------
 Here is the command line output:
 {{{
 root at MacBook-Pro (~ ): port install git
 Warning: The macOS 12 SDK does not appear to be installed. Ports may not
 build correctly.
 Warning: You can install it as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.
 --->  Computing dependencies for git
 --->  Fetching archive for git
 --->  Attempting to fetch
 git-2.34.1_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_28.darwin_21.arm64.tbz2
 from https://packages.macports.org/git
 --->  Attempting to fetch
 git-2.34.1_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_28.darwin_21.arm64.tbz2
 from https://ywg.ca.packages.macports.org/mirror/macports/packages/git
 --->  Attempting to fetch
 git-2.34.1_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_28.darwin_21.arm64.tbz2
 from https://kmq.jp.packages.macports.org/git
 --->  Fetching distfiles for git
 --->  Verifying checksums for git
 --->  Extracting git
 --->  Applying patches to git
 --->  Configuring git
 --->  Building git
 Error: Failed to build git: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port git failed
 }}}

 Here is the error I find in the log, which I also attached:
 {{{
 :info:build /usr/bin/clang -c -I. -Wall -O2 -I/opt/local/include -arch
 arm64 git-credential-osxkeychain.c
 :info:build git-credential-osxkeychain.c:4:10: fatal error:
 'Security/Security.h' file not found
 :info:build #include <Security/Security.h>
 :info:build          ^~~~~~~~~~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build make: *** [git-credential-osxkeychain.o] Error 1
 :info:build Command failed: make CFLAGS="-I. -Wall -O2
 -I/opt/local/include -arch arm64" LDFLAGS="-L/opt/local/lib -arch arm64"
 CC=/usr/bin/clang prefix=/opt/local CURLDIR=/opt/local ICONVDIR=/opt/local
 NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 V=1
 PERL_PATH="/opt/local/bin/perl5.28" NO_PERL_CPAN_FALLBACK=1
 LIBPCREDIR=/opt/local USE_LIBPCRE2=1
 :info:build Exit code: 2
 :error:build Failed to build git: command execution failed
 :debug:build Error code: NONE
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "$post $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/main.log
 for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64161>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list