Open WinterMute opened 3 years ago
I have added patches to make the ppc-test branch build. However it's totally broken and abandoned.
$ target/bin/i386-apple-darwin8-clang oclang/test.c -arch ppc
ld: in section __TEXT,__text reloc 1: sectionForNum(4) section number not for any section file '[...]/MacOSX10.4u.sdk/usr/lib/crt1.o' for architecture ppc
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Is it possible to target powerpc now?
Therefore, no, it's not possible. Sorry.
I guess this failing is normal as clang
targeting powerpc OS X was never implemented (you can google about this, LLVM darwin-ppc support was never complete and was completely removed a few years ago).
Supporting powerpc should be theoretically possible using gcc
though.
I also have the same question. Recently I bought the Mac Mini G4 to make my experiments on it, however, it's a very slow build process on it, and I really feel better to have a cross-compiler on my main machine which has enough power to build the same program quickly.
10.5 SDK
Such old SDKs are designed to use the GCC as was told above. At my end, there is an SDK for 10.4 and I run Mac OS 10.4 Tiger. And, here GCC 4.0.1 is being used. However, I am fully able to obtain GCC 7 using Tigerbrew (a fork of Homebrew with a goal to get it to work on Tiger).
As per title.
I've attempted to build using 10.5 SDK using master which told me to build using the 'osxcross-1.1' branch instead. That branch built fine but only produces binaries to target i386 & x86_64.
Building from ppc-test branch is failing for me with this error building cctools
Is it possible to target powerpc now?