Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,027
1,407
Hello everyone, I have a couple questions. I have built gcc10-bootstrap on my G5 using macports. Can this be used to build ports other than newer versions of gcc? I'm trying to get numpy building again on ppc and one of the issues is the lack of gcc >= 8.4. My second question is, does it take much more than adding three lines to the gcc11+ portfiles to get them to build?

Hi, thanks for the interest.

As long as you builds for ppc (not ppc64 and not universal), getting gcc13 should be smooth: https://github.com/macports/macports-ports/pull/16843

I suggest going that way rather than making a custom hack to one portfile, which may work, but potentially introduces a further mess with Python stuff.

P. S. If the procedure does work and you have an extra minute, please comment in the PR linked, otherwise some folks there are uninterested to test personally but insist on multiple third-party confirmations… What can I say.
 

alphaer

macrumors newbie
Oct 6, 2021
12
1
Hi all,
I read the thread, but still cant get in mind: I have 10.5.8 ppc32 , what steps I should do to compile gcc 11 or 12
Please help
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,027
1,407
Hi all,
I read the thread, but still cant get in mind: I have 10.5.8 ppc32 , what steps I should do to compile gcc 11 or 12
Please help

Wait a couple of days in fact, I am sorting that out for Macports now.

P. S. If this is urgent, you can try from here: https://github.com/barracuda156/macports-ports/tree/gcc_move
(Do not use gcc-powerpc port yet (!): it builds fine, but will not work with the current Macports base. gcc13 should be usable.)
 
  • Like
Reactions: Aaferti_Kuazar

iMacker20

macrumors newbie
May 12, 2020
10
5
I use Mac OS 10.5 x86 64-bit, so maybe I could use the PowerPC version thru Rosetta. If a native x86 version was made that would be better. Thank you.
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,027
1,407
I use Mac OS 10.5 x86 64-bit, so maybe I could use the PowerPC version thru Rosetta. If a native x86 version was made that would be better. Thank you.

Oh. Why won’t you just use 10.6 on Intel? If Rosetta is a requirement, 10.6 has it.

If you plan to use the compiler for building native x86_64 code, Rosetta one is useless, since it is not universal (it will only build ppc binaries). You could build gcc10-bootstrap first (this should work on 10.5 with official MacPorts) and then use that to build gcc14. While I have never tried that on 10.5 x86, there is no reason why it should not work. If anything, GCC upstream should be able to test Intel better than PPC (due to hardware availability).
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,027
1,407
I use Mac OS 10.5 x86 64-bit, so maybe I could use the PowerPC version thru Rosetta. If a native x86 version was made that would be better. Thank you.

P. S. I don’t have hardware to run 10.5 on 64-bit Intel (there is a 32-bit old MacMini, which can run 10.5, but as 32-bit, and MacMini i7, which can run 10.6 with a hacked kernel, but not earlier OS), but if you like pain LOL, I can give suggestions how to tweak MacPorts to use gcc14 instead of gcc7. (Probably it will be the same as for ppc, I need to check what MacPorts has for x86.)
 

iMacker20

macrumors newbie
May 12, 2020
10
5
I wish MacPorts would provide binaries instead of making us build from source. I spend hours on the gcc10 bootstrap only for the Terminal application freeze. Would you know of a way to download binaries of compilers for Mac OS 10.5?
 

doctor_dog

macrumors regular
Dec 19, 2022
106
105
As a matter of fact, we do. Barracuda and I provide unofficial binary repos for Macports on 10.6 and 10.5, respectively. You can find his thread on 10.6 PPC if you also have a 10.6 PPC machine: https://forums.macrumors.com/thread...lt-ports-unofficial-testing-welcomed.2433458/

I have gcc 7,11,12, and 13 for 10.5 available through the repo, along with many other packages. The main issue right now is I have not done an upgrade in several months, so you may find some ports are out of date. If you only want a compiler, you can always create a local Macports repository and change the version of the port you want to match what I have on my server. As an aside, I'm in the misdst of planning my next build run, so there should be freshly updated binaries on my repo in the next week or so.

You can view the full list of 10.5 packages here: http://hairypotter.org (yes, that is the domain I chose, I have no rational explanation).
Instructions on how to use my 10.5 repo here: https://forums.macrumors.com/threads/unofficial-macports-10-5-binary-repo.2376248/post-31879173

@barracuda156 I think we need to find a better way to advertise these repos lol =)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.