Opened 3 years ago
Closed 3 years ago
#64161 closed defect (fixed)
git-2.34.1_1 fails to build on Monterey in MacPorts 2.7.1. Build error 'Security/Security.h' file not found
Reported by: | wealthychef1 | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | monterey | Cc: | wealthychef1, herbygillot (Herby Gillot) |
Port: | git |
Description (last modified by wealthychef1)
Here is the command line output:
root@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@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.
Attachments (1)
Change History (6)
Changed 3 years ago by wealthychef1
comment:1 Changed 3 years ago by wealthychef1
Cc: | wealthychef1 added |
---|
comment:2 Changed 3 years ago by wealthychef1
Description: | modified (diff) |
---|
comment:3 Changed 3 years ago by jmroot (Joshua Root)
Cc: | herbygillot added |
---|---|
Owner: | set to ci42 |
Port: | (not sure how to indicate exact version please see text) removed |
Status: | new → assigned |
Please see ProblemHotlist#reinstall-clt
comment:4 Changed 3 years ago by wealthychef1
Fantastic. Build now proceeds. I have another error but I think it's a separate issue.
comment:5 Changed 3 years ago by reneeotten (Renee Otten)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
build log from port