This page is maintained by James Wookey ( ).
This page provides instructions for getting a working g77 compiler running on Intel-based Macs. It requires you to download the source code for gcc 3.4.0, apply some patches and compile. Instructions and the hacks that make it work come from George Helffrich.
This information is provided in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Any views represented here are entirely personal; they do not reflect the views of the School of Earth Sciences, or the University of Bristol.
gcc-3.4.0.tar.gz
) from the Gnu source repository: ftp.gnu.org/gnu/gcc/gcc-3.4.0/gcc-3.4.0.tar.gz. If this site is overloaded, try one of the many mirrors.
/usr/local/src/gcc-3.4.0/
.
/tmp
.
cd /usr/local/src patch -p0 < /tmp/gcc-3.4.0.diffs
mkdir /usr/local/src/gcc-3.4.0-darwin
cd /usr/local/src/gcc-3.4.0-darwin ../gcc-3.4.0/configure --enable-altivec --enable-languages=c,f77
make bootstrap make install
/usr/local/bin
) to gcc-3.4.0-patched or something. This should prevent collisions between this and the Xcode version.
WARNING! Installing gcc in /usr/local can cause (avoidable) problems with Software Update.
/var/tmp/ccKRSYUy.s:8065:indirect jmp without `*'
g77 -O0 myprog.f
), so that is probably worth a try if you do encounter this problem.