Re: libgcc11 failed build failed on macOS 13.0.1

2023-02-12 Thread André-John Mas
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  
> 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
> 
> 



Re: libgcc11 failed build failed on macOS 13.0.1

2023-02-12 Thread Ken Cunningham
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




Re: libgcc11 failed build failed on macOS 13.0.1

2023-02-11 Thread André-John Mas
Trying to install libgcc11 directly I get the following warning, which is a bit 
of a concern:

  libgcc11 is known to fail. Try to install anyway?

I did try installing libgcc12 instead, but it insists on installing libgcc11 
anyhow.

BTW this is on an Intel Mac.

> On Feb 11, 2023, at 20:26, André-John Mas  wrote:
> 
> Hi,
> 
> I am running into a build failure of libgcc11, which is a dependency of 
> youtube-dl. Hoping someone can help. 
> 
> BTW after running into these issues the first time, I tried the following, 
> but no change:
> 
> sudo port -f clean --all all
> sudo port -f uninstall inactive
> 
> Output of doing `sudo port install youtubl-dl`, once it gets to the libgcc11 
> stage:
> 
> --->  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
> --->  Fetching distfiles for libgcc11
> --->  Attempting to fetch gcc-11.3.0.tar.xz from 
> https://distfiles.macports.org/gcc11
> --->  Verifying checksums for libgcc11
>
> --->  Extracting libgcc11
> --->  Applying patches to libgcc11
> --->  Configuring 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.
> 
> Looking into the log file:
> 
> info:build 
> MLIBS=`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/xgcc
>  
> -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/
>  -B/opt/local/x86_64-apple-darwin22/bin/ 
> -B/opt/local/x86_64-apple-darwin22/lib/ -isystem 
> /opt/local/x86_64-apple-darwin22/include -isystem 
> /opt/local/x86_64-apple-darwin22/sys-include   -fno-checking 
> --print-multi-lib | sed -e 's/;.*$//'` ; \
> :info:build   for mlib in $MLIBS ; do \
> :info:build cp ../${mlib}/libgcc/${mlib}/libgcc_s.dylib  \
> :info:build   ./libgcc_s.1.1.dylib_T_${mlib} || exit 1 ; \
> :info:build arch=`lipo -info libgcc_s.1.1.dylib_T_${mlib} | sed -e 
> 's/.*:\ //'` ; \
> :info:build 
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/xgcc
>  
> -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/
>  -B/opt/local/x86_64-apple-darwin22/bin/ 
> -B/opt/local/x86_64-apple-darwin22/lib/ -isystem 
> /opt/local/x86_64-apple-darwin22/include -isystem 
> /opt/local/x86_64-apple-darwin22/sys-include   -fno-checking -arch ${arch} 
> -nodefaultlibs -dynamiclib -nodefaultrpaths \
> :info:build   -o libgcc_s.1.dylib_T_${mlib} \
> :info:build   -Wl,-reexport_library,libgcc_s.1.1.dylib_T_${mlib} \
> :info:build   -lSystem \
> :info:build   
> -Wl,-reexported_symbols_list,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/gcc-11.3.0/libgcc/config/darwin-unwind.ver
>  \
> :info:build   -install_name @rpath/libgcc_s.1.dylib \
> :info:build   -compatibility_version 1 -current_version 1.1 ; \
> :info:build   done
> :info:build xgcc: warning: could not understand version '13.0'
> :info:build xgcc: warning: could not understand version '13.0'
> :info:build ld: targeted OS version does not support -reexported_symbols_list
> :info:build collect2: error: ld returned 1 exit status
> :info:build make[3]: *** [libgcc_s.1.dylib] Error 1
> :info:build make[3]: Leaving directory 
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/x86_64-apple-darwin22/libgcc'
> :info:build make[2]: *** [all-stage1-target-libgcc] Error 2
> :info:build make[2]: Leaving directory 
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build'
> :info:build make[1]: *** [stage1-bubble] Error 2
> :info:build make[1]: Leaving directory 
> 

libgcc11 failed build failed on macOS 13.0.1

2023-02-11 Thread André-John Mas
Hi,

I am running into a build failure of libgcc11, which is a dependency of 
youtube-dl. Hoping someone can help. 

BTW after running into these issues the first time, I tried the following, but 
no change:

sudo port -f clean --all all
sudo port -f uninstall inactive

Output of doing `sudo port install youtubl-dl`, once it gets to the libgcc11 
stage:

--->  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
--->  Fetching distfiles for libgcc11
--->  Attempting to fetch gcc-11.3.0.tar.xz from 
https://distfiles.macports.org/gcc11
--->  Verifying checksums for libgcc11  
 
--->  Extracting libgcc11
--->  Applying patches to libgcc11
--->  Configuring 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.

Looking into the log file:

info:build 
MLIBS=`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/xgcc
 
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin22/bin/ 
-B/opt/local/x86_64-apple-darwin22/lib/ -isystem 
/opt/local/x86_64-apple-darwin22/include -isystem 
/opt/local/x86_64-apple-darwin22/sys-include   -fno-checking --print-multi-lib 
| sed -e 's/;.*$//'` ; \
:info:build for mlib in $MLIBS ; do \
:info:build   cp ../${mlib}/libgcc/${mlib}/libgcc_s.dylib  \
:info:build ./libgcc_s.1.1.dylib_T_${mlib} || exit 1 ; \
:info:build   arch=`lipo -info libgcc_s.1.1.dylib_T_${mlib} | sed -e 
's/.*:\ //'` ; \
:info:build   
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/xgcc
 
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin22/bin/ 
-B/opt/local/x86_64-apple-darwin22/lib/ -isystem 
/opt/local/x86_64-apple-darwin22/include -isystem 
/opt/local/x86_64-apple-darwin22/sys-include   -fno-checking -arch ${arch} 
-nodefaultlibs -dynamiclib -nodefaultrpaths \
:info:build -o libgcc_s.1.dylib_T_${mlib} \
:info:build -Wl,-reexport_library,libgcc_s.1.1.dylib_T_${mlib} \
:info:build -lSystem \
:info:build 
-Wl,-reexported_symbols_list,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/gcc-11.3.0/libgcc/config/darwin-unwind.ver
 \
:info:build -install_name @rpath/libgcc_s.1.dylib \
:info:build -compatibility_version 1 -current_version 1.1 ; \
:info:build done
:info:build xgcc: warning: could not understand version '13.0'
:info:build xgcc: warning: could not understand version '13.0'
:info:build ld: targeted OS version does not support -reexported_symbols_list
:info:build collect2: error: ld returned 1 exit status
:info:build make[3]: *** [libgcc_s.1.dylib] Error 1
:info:build make[3]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/x86_64-apple-darwin22/libgcc'
:info:build make[2]: *** [all-stage1-target-libgcc] Error 2
:info:build make[2]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build'
:info:build make[1]: *** [stage1-bubble] Error 2
:info:build make[1]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build'
:info:build make: *** [bootstrap-lean] Error 2
:info:build make: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build'
:info:build Command failed:  cd