This page is a wiki. Please login or create an account to begin editing.


GCC MP 4.9


Rating:
No votes yet
Category:
Year released:
Author:
Publisher:
#1
[www].se [ftp].se [mirror].us [mirror].de
macports_gcc49_tiger_11-22-2020_r1.tgz (395.60 MB)
MD5: c79eeff8701a38bd2625db41fe06f4df
For Mac OS X
Emulation
Guides on emulating older applications

=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'.

Compatibility
Architecture: PPC

PowerPC Mac OS X 10.4+

Comments

alexfree's picture
by alexfree - 2020, November 6 - 5:31pm

perfect!

galgot's picture
by galgot - 2020, November 6 - 11:08am

Thks, it installs fine and fixes the selfupdate problem.

alexfree's picture
by alexfree - 2020, November 6 - 4:45am

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.

galgot's picture
by galgot - 2020, November 5 - 11:53pm

Yes I have the correct Xcode installed.
trying :

sudo cp /opt/local/etc/macports/archive_sites.conf.default /opt/local/etc/macports/archive_sites.conf
sudo cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports.conf

I get the same :

---> Updating MacPorts base sources using rsync

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.

receiving file list ... done

sent 16 bytes received 55 bytes 142.00 bytes/sec
total size is 85724672 speedup is 1207389.75

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.

receiving file list ... done

sent 16 bytes received 62 bytes 156.00 bytes/sec
total size is 512 speedup is 6.56
Error: Failed to verify signature for MacPorts source!
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!

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.

alexfree's picture
by alexfree - 2020, November 5 - 9:42pm

I can not reproduce this Sad , 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?

galgot's picture
by galgot - 2020, November 5 - 7:55pm

Thks for the compilation, but I have the following error installing this :

...
Error: Failed to archivefetch llvm-3.3: version @3.3_11: The requested URL returned error: 404
DEBUG: Error code: NONE
DEBUG: Backtrace: version @3.3_11: The requested URL returned error: 404
while executing
"error [msgcat::mc "version @[option version]_[option revision][option portvariants]: %s" $lastError]"
(procedure "portarchivefetch::fetchfiles" line 142)
invoked from within
"portarchivefetch::fetchfiles"
(procedure "portarchivefetch::archivefetch_main" line 5)
invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/main.log for details.
DEBUG: can't read "portutil::autoconf::xcrun_path": no such variable
while executing
"findBinary xcrun $portutil::autoconf::xcrun_path"
DEBUG: upgrade ld64 failed
while executing
"macports::_upgrade_mport_deps $mport $target"
(procedure "mportexec" line 46)
invoked from within
"mportexec $workername $target"
Error: Unable to execute port: upgrade ld64 failed

And also, if I try a sudo port -v selfupdate after that, I get :

---> Updating MacPorts base sources using rsync
Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.

receiving file list ... done

sent 16 bytes received 55 bytes 47.33 bytes/sec
total size is 85724672 speedup is 1207389.75

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.

receiving file list ... done

sent 16 bytes received 62 bytes 156.00 bytes/sec
total size is 512 speedup is 6.56
Error: Failed to verify signature for MacPorts source!
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!

:/

This on a MacMini G4 running 10.5.8, and an existing macports installation, and web sharing activated.