Opened 19 months ago

Last modified 17 months ago

#65987 new defect

libgcc9 fails to upgrade on BigSur 11.7

Reported by: bradman1972 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: cjones051073 (Chris Jones), cooljeanius (Eric Gallager)
Port: libgcc9

Description (last modified by jmroot (Joshua Root))

I receive the following output when updating outdated packages (specifically with libgcc9):

# /opt/local/bin/port upgrade outdated
--->  Computing dependencies for libgcc9
--->  Fetching archive for libgcc9
--->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/libgcc9
--->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc9
--->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc9
--->  Fetching distfiles for libgcc9
Error: gcc9 9.5.0 is not supported on Darwin 20 i386
Error: Failed to fetch libgcc9: incompatible macOS version
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.

Here is the log output:

cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log
version:1
:debug:clean Starting logging for libgcc9 @9.5.0_2
:debug:sysinfo macOS 11.7 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.2.1
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:msg:clean --->  Computing dependencies for libgcc9:info:clean .:debug:clean libgcc9 has no conflicts
:debug:clean Searching for dependency: xz
:debug:clean Found Dependency: receipt exists for xz
:debug:clean Searching for dependency: cctools
:debug:clean Found Dependency: receipt exists for cctools
:debug:clean Searching for dependency: gmp
:debug:clean Found Dependency: receipt exists for gmp
:debug:clean Searching for dependency: isl
:debug:clean Found Dependency: receipt exists for isl
:debug:clean Searching for dependency: ld64
:debug:clean Found Dependency: receipt exists for ld64
:debug:clean Searching for dependency: libiconv
:debug:clean Found Dependency: receipt exists for libiconv
:debug:clean Searching for dependency: libmpc
:debug:clean Found Dependency: receipt exists for libmpc
:debug:clean Searching for dependency: mpfr
:debug:clean Found Dependency: receipt exists for mpfr
:debug:clean Searching for dependency: zlib
:debug:clean Found Dependency: receipt exists for zlib
:debug:clean Searching for dependency: libgcc10
:debug:clean Found Dependency: receipt exists for libgcc10
:debug:main Executing org.macports.main (libgcc9)
:debug:main dropping privileges: euid changed to 504, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Oct 12 18:10:36 CDT 2022
:msg:archivefetch --->  Fetching archive for libgcc9
:debug:archivefetch Executing org.macports.archivefetch (libgcc9)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 504/501
:info:archivefetch --->  libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 18:10:40 CDT 2022
:notice:fetch --->  Fetching distfiles for libgcc9
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:error:fetch gcc9 9.5.0 is not supported on Darwin 20 i386
:error:fetch Failed to fetch libgcc9: incompatible macOS version
:debug:fetch Error code: NONE
:debug:fetch Backtrace: incompatible macOS version
:debug:fetch     while executing
:debug:fetch "$pre $targetname"
:error:fetch See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
version:1
:debug:main Starting logging for libgcc9 @9.5.0_2
:debug:sysinfo macOS 11.7 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.2.1
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:msg:main --->  Computing dependencies for libgcc9:info:main .:debug:main libgcc9 has no conflicts
:debug:main Searching for dependency: xz
:debug:main Found Dependency: receipt exists for xz
:debug:main Searching for dependency: cctools
:debug:main Found Dependency: receipt exists for cctools
:debug:main Searching for dependency: gmp
:debug:main Found Dependency: receipt exists for gmp
:debug:main Searching for dependency: isl
:debug:main Found Dependency: receipt exists for isl
:debug:main Searching for dependency: ld64
:debug:main Found Dependency: receipt exists for ld64
:debug:main Searching for dependency: libiconv
:debug:main Found Dependency: receipt exists for libiconv
:debug:main Searching for dependency: libmpc
:debug:main Found Dependency: receipt exists for libmpc
:debug:main Searching for dependency: mpfr
:debug:main Found Dependency: receipt exists for mpfr
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: libgcc10
:debug:main Found Dependency: receipt exists for libgcc10
:debug:main Executing org.macports.main (libgcc9)
:debug:main dropping privileges: euid changed to 504, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Oct 12 18:28:43 CDT 2022
:msg:archivefetch --->  Fetching archive for libgcc9
:debug:archivefetch Executing org.macports.archivefetch (libgcc9)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 504/501
:info:archivefetch --->  libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 18:28:46 CDT 2022
:notice:fetch --->  Fetching distfiles for libgcc9
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:error:fetch gcc9 9.5.0 is not supported on Darwin 20 i386
:error:fetch Failed to fetch libgcc9: incompatible macOS version
:debug:fetch Error code: NONE
:debug:fetch Backtrace: incompatible macOS version
:debug:fetch     while executing
:debug:fetch "$pre $targetname"
:error:fetch See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
version:1
:debug:main Starting logging for libgcc9 @9.5.0_2
:debug:sysinfo macOS 11.7 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.2.1
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:msg:main --->  Computing dependencies for libgcc9:info:main .:debug:main libgcc9 has no conflicts
:debug:main Searching for dependency: xz
:debug:main Found Dependency: receipt exists for xz
:debug:main Searching for dependency: cctools
:debug:main Found Dependency: receipt exists for cctools
:debug:main Searching for dependency: gmp
:debug:main Found Dependency: receipt exists for gmp
:debug:main Searching for dependency: isl
:debug:main Found Dependency: receipt exists for isl
:debug:main Searching for dependency: ld64
:debug:main Found Dependency: receipt exists for ld64
:debug:main Searching for dependency: libiconv
:debug:main Found Dependency: receipt exists for libiconv
:debug:main Searching for dependency: libmpc
:debug:main Found Dependency: receipt exists for libmpc
:debug:main Searching for dependency: mpfr
:debug:main Found Dependency: receipt exists for mpfr
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: libgcc10
:debug:main Found Dependency: receipt exists for libgcc10
:debug:main Executing org.macports.main (libgcc9)
:debug:main dropping privileges: euid changed to 504, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Oct 12 18:31:53 CDT 2022
:msg:archivefetch --->  Fetching archive for libgcc9
:debug:archivefetch Executing org.macports.archivefetch (libgcc9)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 504/501
:info:archivefetch --->  libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 18:31:54 CDT 2022
:notice:fetch --->  Fetching distfiles for libgcc9
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:error:fetch gcc9 9.5.0 is not supported on Darwin 20 i386
:error:fetch Failed to fetch libgcc9: incompatible macOS version
:debug:fetch Error code: NONE
:debug:fetch Backtrace: incompatible macOS version
:debug:fetch     while executing
:debug:fetch "$pre $targetname"
:error:fetch See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
version:1
:debug:main Starting logging for libgcc9 @9.5.0_2
:debug:sysinfo macOS 11.7 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.2.1
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:msg:main --->  Computing dependencies for libgcc9:info:main .:debug:main libgcc9 has no conflicts
:debug:main Searching for dependency: xz
:debug:main Found Dependency: receipt exists for xz
:debug:main Searching for dependency: cctools
:debug:main Found Dependency: receipt exists for cctools
:debug:main Searching for dependency: gmp
:debug:main Found Dependency: receipt exists for gmp
:debug:main Searching for dependency: isl
:debug:main Found Dependency: receipt exists for isl
:debug:main Searching for dependency: ld64
:debug:main Found Dependency: receipt exists for ld64
:debug:main Searching for dependency: libiconv
:debug:main Found Dependency: receipt exists for libiconv
:debug:main Searching for dependency: libmpc
:debug:main Found Dependency: receipt exists for libmpc
:debug:main Searching for dependency: mpfr
:debug:main Found Dependency: receipt exists for mpfr
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: libgcc10
:debug:main Found Dependency: receipt exists for libgcc10
:debug:main Executing org.macports.main (libgcc9)
:debug:main dropping privileges: euid changed to 504, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Oct 12 18:32:10 CDT 2022
:msg:archivefetch --->  Fetching archive for libgcc9
:debug:archivefetch Executing org.macports.archivefetch (libgcc9)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 504/501
:info:archivefetch --->  libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch libgcc9-9.5.0_2.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc9
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 18:32:11 CDT 2022
:notice:fetch --->  Fetching distfiles for libgcc9
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:error:fetch gcc9 9.5.0 is not supported on Darwin 20 i386
:error:fetch Failed to fetch libgcc9: incompatible macOS version
:debug:fetch Error code: NONE
:debug:fetch Backtrace: incompatible macOS version
:debug:fetch     while executing
:debug:fetch "$pre $targetname"
:error:fetch See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.

Change History (10)

comment:1 Changed 19 months ago by jmroot (Joshua Root)

Cc: cjones051073 added
Description: modified (diff)
Summary: libgcc9 fails to upgrade on BigSur 11.7, 404 error fetching libgcc9-9.5.0_2.darwin_20.x86_64.tbz2libgcc9 fails to upgrade on BigSur 11.7

Chris, is there a reason why the various libgccs can't be marked as replaced_by an appropriate other version (or the libgcc wrapper port) on the platforms where they're no longer supported?

comment:2 Changed 19 months ago by cjones051073 (Chris Jones)

That will not really help in this case, and it isn't really how the gccX port works, they don't replace each other but exist along side (where they can).

The issue is the (lib)gcc9 dep usually come from the compilers PG, that picks a variant for ports to use. Once a user installs a port with a certain variant, even if its just because its the default, if that default changes in the future that user is not automatically migrated to the new (default) variant, so stay with the old one. I am not aware of a way to handle this, other than the user having to manually reinstall any ports that have a (lib)gcc9 dep, using the more recent defaults. if you know a way to do this please let me know.

Last edited 19 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:3 Changed 19 months ago by jmroot (Joshua Root)

Requested vs unrequested variants are handled correctly in MP 2.7+, though of course a requested variant could still become unsupported in future. Seems like the compilers PG should not create variants for compilers that are not supported on the current platform?

comment:4 in reply to:  3 ; Changed 19 months ago by cjones051073 (Chris Jones)

Replying to jmroot:

Requested vs unrequested variants are handled correctly in MP 2.7+, though of course a requested variant could still become unsupported in future. Seems like the compilers PG should not create variants for compilers that are not supported on the current platform?

It doesn't. But the issue is users (who do not update that often) will have ports installed that do still depend on the old gcc versions, and it seems running an update tries to update the gcc dependency (and fails) before it updates the port itself, which would then I gather migrate to the newer dep.

Version 0, edited 19 months ago by cjones051073 (Chris Jones) (next)

comment:5 Changed 19 months ago by cjones051073 (Chris Jones)

Just to add. Most ports that just need the gcc runtime (e.g. because they need to compile fortran code, for example) should declare a dependency on libgcc and not a specific libgccN. This is precisely why the stub libgcc port exists.

Last edited 19 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:6 Changed 19 months ago by cjones051073 (Chris Jones)

we need to see *why* the OP has libgcc9 installed. Please run

port list installed and depends:libgcc9

and post what you get.

Last edited 19 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:7 in reply to:  4 Changed 19 months ago by jmroot (Joshua Root)

Replying to cjones051073:

Replying to jmroot:

Requested vs unrequested variants are handled correctly in MP 2.7+, though of course a requested variant could still become unsupported in future. Seems like the compilers PG should not create variants for compilers that are not supported on the current platform?

It doesn't. But the issue is users (who do not update that often) will have ports installed that do still depend on the old gcc versions, and it seems running an update tries to update the gcc dependency (and fails) before it updates the port itself, which would then I gather migrate to the newer dep and thus remove the dep on the old no-longer supported gcc version.

OK, so wouldn't setting replaced_by in the unsupported gcc* and libgcc* ports solve this?

comment:8 Changed 19 months ago by bradman1972

@cjones051073 - It's now OBE... I removed libgcc8 and libgcc9 and the packages that depended on them. The packages I wanted which were deleted in the process of getting rid of libgcc8 and 9 (gnuradio, gqrx, etc.) have been reinstalled and I was able to perform a selfupdate/upgrade outdated with no issues.

comment:9 Changed 18 months ago by aberezin (Alan Berezin)

I had a similar issue:

Error: gcc9 9.5.0 is not supported on Darwin 21 i386

Followed @bradman1972 instructions above. Specifically, uninstalled everything that depended on libgcc9 and then uninstalled libgcc9 and that solved my issue.

comment:10 Changed 17 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.