[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:53:45 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:  wealthychef1                        |      Owner:  (none)
      Type:  defect                              |     Status:  new
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.7.1
Resolution:                                      |   Keywords:  monterey
      Port:  git (not sure how to indicate       |
  exact version, please see text)                |
-------------------------------------------------+-------------------------
Description changed by wealthychef1:

Old description:

> 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.
> }}}

New description:

 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.
 }}}
 Notes:
 XCode is installed and up to date.  Running xcode-select --install results
 in this:
 {{{
 root at MacBook-Pro (~ ): xcode-select --install
 xcode-select: error: command line tools are already installed, use
 "Software Update" to install updates
 }}}
 I don't know what "Software Update" is.  The App store says I'm up to date
 and XCode is installed and up to date including developer tools, from what
 I can tell.  I'm not an OS X developer though.

--

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


More information about the macports-tickets mailing list