[MacPorts] #61474: Macports failures with BigSur

MacPorts noreply at macports.org
Sun Nov 15 14:54:37 UTC 2020


#61474: Macports failures with BigSur
-----------------------+--------------------------
  Reporter:  pavibhai  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:            |   Keywords:  BigSur clang
      Port:            |
-----------------------+--------------------------
Description changed by pavibhai:

Old description:

> I recently upgraded to MacOS BigSur. After the upgrade was completed I
> tried to install the new MacPorts with the pkg installer for BigSur.
>
> When I try to install ports I get errors.
>

> {{{
> Warning: The macOS 11.0 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'.
> --->  Fetching archive for gmp
> --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
> https://packages.macports.org/gmp
> --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
> https://ywg.ca.packages.macports.org/mirror/macports/packages/gmp/gmp
> --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
> https://kmq.jp.packages.macports.org/gmp
> --->  Fetching distfiles for gmp
> --->  Attempting to fetch gmp-6.2.0.tar.bz2 from
> https://distfiles.macports.org/gmp
> --->  Verifying checksums for gmp
> --->  Extracting gmp
> --->  Applying patches to gmp
> --->  Configuring gmp
> Error: Failed to configure gmp, consult
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.0/config.log
> Error: Failed to configure gmp: configure failure: command execution
> failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port gnupg2 failed
> lanka-imac:~$ less
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log
> lanka-imac:~$ less
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.0/config.log
> }}}
>
> When I look at the config.log, I have the following:
>
> {{{
> configure:5847: /usr/bin/clang
> -isysroot/Library/Developer/CommandLineTools/SDKs
> /MacOSX.sdk -c conftest.c >&5
> clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'
> }}}
>
> I have attached the config.log to the ticket. I can provide other details
> as needed. Additionally I keep on seeing this warning
>
> {{{
> Warning: The macOS 11.0 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'.
> }}}
>
> Not sure if these are related, but xcode-select --install tells me that
> it is already installed.
>
> I have finally tried an
> [https://guide.macports.org/chunked/installing.macports.uninstalling.html
> uninstall], followed by an [https://www.macports.org/install.php install]
> but still get the same error.

New description:

 I recently upgraded to MacOS BigSur. After the upgrade was completed I
 tried to install the new MacPorts with the pkg installer for BigSur.

 When I try to install ports I get errors.


 {{{
 Warning: The macOS 11.0 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'.
 --->  Fetching archive for gmp
 --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
 https://packages.macports.org/gmp
 --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/gmp/gmp
 --->  Attempting to fetch gmp-6.2.0_1.darwin_20.x86_64.tbz2 from
 https://kmq.jp.packages.macports.org/gmp
 --->  Fetching distfiles for gmp
 --->  Attempting to fetch gmp-6.2.0.tar.bz2 from
 https://distfiles.macports.org/gmp
 --->  Verifying checksums for gmp
 --->  Extracting gmp
 --->  Applying patches to gmp
 --->  Configuring gmp
 Error: Failed to configure gmp, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.0/config.log
 Error: Failed to configure gmp: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port gnupg2 failed
 lanka-imac:~$ less
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log
 lanka-imac:~$ less
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.0/config.log
 }}}

 When I look at the config.log, I have the following:

 {{{
 configure:5847: /usr/bin/clang
 -isysroot/Library/Developer/CommandLineTools/SDKs
 /MacOSX.sdk -c conftest.c >&5
 clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'
 }}}

 I have attached the config.log to the ticket. I can provide other details
 as needed. Additionally I keep on seeing this warning

 {{{
 Warning: The macOS 11.0 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'.
 }}}

 Not sure if these are related, but xcode-select --install tells me that it
 is already installed.

 I have finally tried an
 [https://guide.macports.org/chunked/installing.macports.uninstalling.html
 uninstall], followed by an [https://www.macports.org/install.php install]
 but still get the same error.

 Update:
 I see that macports is looking for the SDK in the location

 {{{
 ll /Library/Developer/CommandLineTools/SDKs/

 lrwxr-xr-x  1 root  wheel   15 Oct 13  2019 MacOSX.sdk -> MacOSX10.15.sdk
 drwxr-xr-x  7 root  wheel  224 Jul 15  2019 MacOSX10.14.sdk
 drwxr-xr-x  8 root  wheel  256 Aug 29  2019 MacOSX10.15.sdk
 }}}

 How the 11 SDK is in the following location:

 {{{
 ll
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
 total 0
 drwxr-xr-x  5 root  wheel  160 Oct 19 13:33 DriverKit20.0.sdk
 drwxr-xr-x  7 root  wheel  224 Nov 14 21:41 MacOSX.sdk
 lrwxr-xr-x  1 root  wheel   10 Nov 14 21:36 MacOSX11.0.sdk -> MacOSX.sdk
 }}}

--

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


More information about the macports-tickets mailing list