=MacPorts GCC 4.9 Binary Installer For PowerPC Mac OS X Tiger
Put together by Alex Free. Release 1, 11/25/2020.
=Background
GNU GCC 4.9 requires many dependencies and bootstrap compilers when compiling completely from source using MacPorts for PowerPC Mac OS X 10.4 Tiger. All together, compiling this can easily take a day or 2.
This installer on the other hand takes just under 2 hours on my Mac to install everything. Essentially, the installer temporarily changes the MacPorts configuration files to use a local source for obtaining the ports tree and binary archives. After doing so, the ports tree is synced, binaries are installed, all changes are reverted, and finally the ports tree is synced with MacPorts proper. Your system remains untouched, besides the addition of the new compiler and it's dependencies.
=Disclaimer
- The following MacPorts ports will be automatically uninstalled if they are found to be installed:
apple-gcc42 cctools cloog gcc_select gettext gmp gpref isl isl18 ld64 ld64-97 libgcc7 libgcc6 libiconv libmacho-headers libmpc libunwind-headers mpfr ncurses xz zlib gcc49
This is because this installer will install them. At the end of the install, 'port sync' will also be run, updating your ports tree.
=Requirements
- Mac OS X 10.4.11 PowerPC (Should also work on Leopard, and be able to compile for Tiger from Leopard).
- Xcode 2.5 (The last Xcode released for Tiger, although nothing will be compiled).
- MacPorts 2.0.0 or newer installed.
=Steps
- Open Terminal.app.
- Using sudo, execute the 'install' file in this release ('sudo ./install').
- Wait (Took 2 hours on my Mac mini).
When done, you can select your GCC 4.9 compiler using the command 'sudo port select --set gcc mp-gcc49'. Then, you can check with the command 'gcc --version'.
CompatibilityPowerPC Mac OS X 10.4+
Comments
perfect!
Thks, it installs fine and fixes the selfupdate problem.
New Release 2 is out, fixes your MacPorts errors and should install correctly for you since I changed things not to require the web sharing.
Yes I have the correct Xcode installed.
trying :
I get the same :
if I try :
sudo ./install > out_file 2>&1
it hangs there and do nothing, no prompt for 2/3 mn, then back to prompt without output...
Tried again sudo ./install, and here is the complete log and error msg (long) :
http://galgot.free.fr/transit/GCC49_install_error.zip
Don't have another PPC at hand to try for the moment.
I can not reproduce this
, you have the latest Xcode installed to /Developer too?
To restore your MacPorts (this is done after a successful install, but in the future I should always have it do this):
cp /opt/local/etc/macports/archive_sites.conf.default /opt/local/etc/macports/archive_sites.conf && cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports.conf
It can't download the file for some reason , can you run this again and send me the output of 'install':
sudo ./install > out_file 2>&1
Also, If you can, does it work with a clean new MacPorts installation?
Thks for the compilation, but I have the following error installing this :
And also, if I try a sudo port -v selfupdate after that, I get :
:/
This on a MacMini G4 running 10.5.8, and an existing macports installation, and web sharing activated.