So I have built libgcc12 and gcc12 now on 10.6.8 Rosetta for PPC:
No special patches needed anymore on 10.6.8 (and presumably on 10.5.8), though in the portfile some minor changes are required for this to work.
Code:
10:~ svacchanda$ port -v installed libgcc12
The following ports are currently installed:
libgcc12 @12.1.0_3+stdlib_flag (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-07-17T15:46:00+0700'
10:~ svacchanda$ port -v installed gcc12
The following ports are currently installed:
gcc12 @12.1.0_3 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-07-18T01:31:17+0700'
10:~ svacchanda$ /opt/local/bin/gcc-mp-12 -v
Using built-in specs.
COLLECT_GCC=/opt/local/bin/gcc-mp-12
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/ppc-apple-darwin10/12.1.0/lto-wrapper
Target: ppc-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_PPCRosettaPorts_lang_gcc12/gcc12/work/gcc-12.1.0/configure --prefix=/opt/local --build=ppc-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc12 --includedir=/opt/local/include/gcc12 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-12 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-12 --with-gxx-include-dir=/opt/local/include/gcc12/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --with-tune-cpu=G4 --disable-tls --with-pkgversion='MacPorts gcc12 12.1.0_3'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.0 (MacPorts gcc12 12.1.0_3)
No special patches needed anymore on 10.6.8 (and presumably on 10.5.8), though in the portfile some minor changes are required for this to work.