TL;DR Found the solution: uninstall gcc11, since it turned out to be broken
In depth: I just ran `port rdeps youtube-dl` and apparently nothing depends on gcc or libgcc. Reading the messages a bit more I missed, or ignored, the following line: "Found 1 broken port, determining rebuild order" Based on having tried everything else I decided to uninstall gcc11 and try again. It all worked. This would suggest Macports was doing a post install step to fix the broken ports, but it wasn't clear that it was unrelated to the port being installed. Since youtube-dl didn't have the libgcc11 dependency in its tree, it helped indicate the issue was probably elsewhere - thanks Ken. Just for for anyone searching in the future full output on the CLI, for the build ---> Computing dependencies for youtube-dl ---> Cleaning youtube-dl ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 8 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: gcc11 @11.2.0 Continue? [Y/n]: ---> Computing dependencies for libgcc11 ---> Fetching archive for libgcc11 ---> Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.x86_64.tbz2 from https://packages.macports.org/libgcc11 ---> Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc11 ---> Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/libgcc11 ---> Building libgcc11 Error: Failed to build libgcc11: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/main.log for details. Error: Problem while installing libgcc11 Error: rev-upgrade failed: Error rebuilding gcc11 Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. > On Feb 12, 2023, at 11:40, Ken Cunningham <[email protected]> > wrote: > > On Ventura arm64, libgcc11 is not part of the youtube-dl dependency tree. You > can use: > > port rdeps youtube-dl > > so see what is on the tree. > > I can install youtube-dl without any trouble. > > % port -v installed youtube-dl > The following ports are currently installed: > youtube-dl @2021.12.17_1+ffmpeg+python311 (active) requested_variants='' > platform='darwin 22' archs='noarch' date='2023-02-12T08:36:26-0800' > > and nothing related to gcc is installed in the process. > > % port -v installed | grep active | grep gcc > > > Could you run: > > port rdeps youtube-dl > > and help us see what is calling in libgcc11 on your system? > > Thanks, > > Ken > >
