Opened 4 years ago

Closed 3 years ago

#62539 closed defect (fixed)

git-2.31.0_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_30 fails to build credential_osxkeychain

Reported by: rswail (Ron Wail) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc:
Port: git

Description

On Big Sur 11.3 beta 4 (20E5210c), Xcode + CLI 12.4 (12D4e)

port compiles if -credential_osxkeychain variant is used.

git fails to build with error when compiling credential_osxkeychain:

  :debug:build Executing proc-post-org.macports.build-build-0
  :debug:build system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarball  s_ports_devel_git/git/work/git-2.31.0/contrib/credential/osxkeychain: make CFLAGS="-I. -Wall -O2 -I/opt/local/include -arch x86_  64" LDFLAGS="-L/opt/local/lib -arch x86_64" CC=/usr/bin/clang prefix=/opt/local CURLDIR=/opt/local OPENSSLDIR=/opt/local ICONVDI  R=/opt/local PERL_PATH="/opt/local/bin/perl5.30" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 NO_PERL_CPAN_FALLBACK=1 V=1 LI  BPCREDIR=/opt/local USE_LIBPCRE2=1
  :info:build /usr/bin/clang -c -I. -Wall -O2 -I/opt/local/include -arch x86_64 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 x86_64" LDFLAGS="-L/opt/local/lib -arch x86_64  " CC=/usr/bin/clang prefix=/opt/local CURLDIR=/opt/local OPENSSLDIR=/opt/local ICONVDIR=/opt/local PERL_PATH="/opt/local/bin/per  l5.30" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 NO_PERL_CPAN_FALLBACK=1 V=1 LIBPCREDIR=/opt/local USE_LIBPCRE2=1
  :info:build Exit code: 2

Change History (4)

comment:1 Changed 4 years ago by rswail (Ron Wail)

Note, comparing the two different SDKs in

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk (linked to ./MacOSX.sdk)

and

/Library/Developer/CommandLineTools//SDKs/MacOSX11.1.sdk

there is the file:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/Security.h

that is not present in the Command Line Tools SDK.

# diff -r /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
Only in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library: Frameworks
Only in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library: PrivateFrameworks
Only in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/iOSSupport: System
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/python2.7: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tcl.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tclDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tclPlatDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tclTomMath.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tclTomMathDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tk.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tkDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tkIntXlibDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tkMacOSX.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tkPlatDecls.h: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libblas.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libcblas.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libclapack.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libcom_err.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libdes425.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libextension.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libf77lapack.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libgssapi_krb5.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libk5crypto.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libkrb4.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libkrb5.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libkrb524.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libkrb5support.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/liblapack.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/liblber.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libldap.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libldap_r.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libpython.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libpython2.7.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtcl.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtcl8.5.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtclstub8.5.a: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtk.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtk8.5.tbd: No such file or directory
diff: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libtkstub8.5.a: No such file or directory
Only in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr: libexec

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ci42
Status: newassigned

As with any build failure bug report, please attach the main.log file.

See also #59417, #60246, #61371; these may all be describing the same underlying problem.

/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/Security.h does exist on our macOS Big Sur x86_64 buildbot worker, where we have macOS 11.2.3 and Xcode 12.4 and the Xcode 12.4 version of the command line tools installed. If that file does not exist on your system, try reinstalling the Xcode 12.4 version of the command line tools.

A problem may be that the credential_osxkeychain variant performs its building using system in a post-build block. This would not use the environment variables that MacPorts sets during a normal build, including the SDKROOT environment variable that tells it which SDK to use, so it may be that this part of the build is not using the right SDK and therefore can't find the header.

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 4 years ago by rswail (Ron Wail)

Removed /Library/Developer/CommandLineTools and reinstalled and that seems to have fixed the SDK installation.

Can close this ticket, thanks.

comment:4 Changed 3 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.