If you use
10A190 with Xcode from 10A190, you may follow steps here:
https://forums.macrumors.com/thread...-6-powerpc-10a190-and-10-6-8-rosetta.2332711/
(10A96 is broken at the moment, at least with Macports.)
P. S. Alternatively, if you prefer building without Macports, you can bootstrap gcc10ppc from here
on 10.6.8 Rosetta against 10A190 SDK:
[April 2021] 10.3 plus Darwin additions, initial 10.3 Arm64. - GitHub - iains/gcc-10-branch at gcc-10-3-ppc
github.com
You will need to use this patch:
Code:
--- /Users/svacchanda/darwin.h 2022-01-30 15:16:32.000000000 +0800
+++ /Users/svacchanda/gcc-10-branch/gcc/config/darwin.h 2022-01-30 02:12:29.000000000 +0800
@@ -202,7 +202,7 @@
*/
#define DARWIN_NOCOMPACT_UNWIND \
-" %:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) "
+" %:version-compare(>= 10.7 mmacosx-version-min= -no_compact_unwind) "
/* In Darwin linker specs we can put -lcrt0.o and ld will search the library
path for crt0.o or -lcrtx.a and it will search for for libcrtx.a. As for
@@ -437,14 +437,14 @@
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC \
"%{static-libgcc|static: \
- %:version-compare(!> 10.6 mmacosx-version-min= -lgcc_eh) \
- %:version-compare(>= 10.6 mmacosx-version-min= -lemutls_w); \
+ %:version-compare(!> 10.7 mmacosx-version-min= -lgcc_eh) \
+ %:version-compare(>= 10.7 mmacosx-version-min= -lemutls_w); \
shared-libgcc|fexceptions|fobjc-exceptions|fgnu-runtime: \
%:version-compare(!> 10.11 mmacosx-version-min= -lgcc_s.1.1) \
%:version-compare(>= 10.11 mmacosx-version-min= -lemutls_w) \
%:version-compare(!> 10.3.9 mmacosx-version-min= -lgcc_eh) \
%:version-compare(>< 10.3.9 10.5 mmacosx-version-min= -lgcc_s.10.4) \
- %:version-compare(>< 10.5 10.6 mmacosx-version-min= -lgcc_s.10.5); \
+ %:version-compare(>< 10.5 10.7 mmacosx-version-min= -lgcc_s.10.5); \
: -lemutls_w \
} -lgcc "
@@ -480,8 +480,8 @@
#define DARWIN_CRT1_SPEC \
"%:version-compare(!> 10.5 mmacosx-version-min= -lcrt1.o) \
- %:version-compare(>< 10.5 10.6 mmacosx-version-min= -lcrt1.10.5.o) \
- %:version-compare(>< 10.6 10.8 mmacosx-version-min= -lcrt1.10.6.o) \
+ %:version-compare(>< 10.5 10.7 mmacosx-version-min= -lcrt1.10.5.o) \
+ %:version-compare(>< 10.7 10.8 mmacosx-version-min= -lcrt1.10.6.o) \
%{fgnu-tm: -lcrttms.o}"
#define DARWIN_CRT2_SPEC ""
@@ -496,10 +496,10 @@
#define DARWIN_DYLIB1_SPEC \
"%:version-compare(!> 10.5 mmacosx-version-min= -ldylib1.o) \
- %:version-compare(>< 10.5 10.6 mmacosx-version-min= -ldylib1.10.5.o)"
+ %:version-compare(>< 10.5 10.7 mmacosx-version-min= -ldylib1.10.5.o)"
#define DARWIN_BUNDLE1_SPEC \
-"%{!static:%:version-compare(< 10.6 mmacosx-version-min= -lbundle1.o) \
+"%{!static:%:version-compare(< 10.7 mmacosx-version-min= -lbundle1.o) \
%{fgnu-tm: -lcrttms.o}}"
#ifdef HAVE_AS_MMACOSX_VERSION_MIN_OPTION
Once built, it can be installed into 10A190.
This option has a very limited testing so far.