On Fri, Oct 31, 2025 at 8:45 AM Bruno Haible <[email protected]> wrote:
> Sergey Fedorov wrote: > > I can test whatever is needed, provided it is something specific enough > and > > can be done on macOS. > > The needed information is, again, the set of compiler predefines. Like > in the earlier mails. > gcc 4.2 / 10.5.8 $ gcc -arch ppc -E -dM - < /dev/null | grep -i '\(ppc\|powerpc\)' | sort #define _ARCH_PPC 1 #define __POWERPC__ 1 #define __ppc__ 1 $ gcc -arch ppc64 -E -dM - < /dev/null | grep -i '\(ppc\|powerpc\)' | sort #define _ARCH_PPC 1 #define _ARCH_PPC64 1 #define __POWERPC__ 1 #define __ppc64__ 1 gcc 14 (only ppc64, I do not have ppc32 version on 10.5) $ gcc-mp-14 -arch ppc64 -E -dM - < /dev/null | grep -i '\(ppc\|powerpc\)' | sort #define _ARCH_PPC 1 #define _ARCH_PPC64 1 #define _ARCH_PPCGR 1 #define __POWERPC__ 1 #define __PPC64__ 1 #define __PPC__ 1 #define __powerpc64__ 1 #define __ppc64__ 1 > http://macos-powerpc.org/packages_ppc64 (not many ports there and not too > > up-to-date, since I prioritize 10.6, where only 32-bit ppc is supported, > > Since macOS 10.5.x is the last release to support PowerPC natively [1][2], > you may encounter wrong configure guesses when doing it on macOS 10.6.x > with Rosetta (especially in areas like signals and floating-point > operations). > 10.6.8 runs natively now on PowerPC, though it is not an official release, of course, as ppc was supported in developer builds only. The official kernel of 10.6.8 can still run on PowerPC though. A few secondary components had to be replaced/rebuilt. I have a setup in a VM with Rosetta too, but do not use it for normal builds. For the most part Rosetta is okay, may need explicit triple to be specified, but I agree, it is not 100% reliable and some software will not work at all in Rosetta (SBCL or GHC, for example, and surprisingly 3.x versions of Ruby – don’t ask, I have no idea why, since they all work on 10.4–10.6 ppc natively).
