You may redistribute copies of GNU Fortran
GNU Fortran comes with NO WARRANTY, to the extent permitted by law. Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > gfortran -version
This is free software see the source for copying conditions. And it worked perfectly thanks to the great binaries from Gaurav Khanna at > gcc -versionĬopyright (C) 2010 Free Software Foundation, Inc. bash_profile:Īfter these installations I was finally able to compile and link my fortran programs using both my Intel Fortran compiler and my new gfortran compiler. The files for GCC4.6 and gfortran installs by default into /usr/local (make sure you make a copy prior to installation), which you have to add to your PATH environment in. Sudo tar -xvf gfortran-snwleo-intel-bin.tar -C / Next I also downloaded the Fortran compiler gfortran binaries that was compiled for GCC4.6 and installed them according to the HPC website: Then I downloaded the files for GCC 4.6 for Intel Snow Leopard ( found here) and installed the files following the recipe on the website of HPC: But to my luck I found the website of which offers Intel Snow Leopard binaries for GCC 4.6! First I made a backup of my /usr/local/ directory using 7-zip ( excellent compressor): Any comments are highly appreciated as it would be nice to compile from source. I could not find a solution to his error message and I still have not understood what it means. configure: error: in `/Users/trond/GMT/gcc/OBJECTDIR/x86_64-apple-darwin10.6.0/libgcc':Ĭonfigure: error: cannot compute suffix of object files: cannot compile
Alas, after following the instructions on the GNU website my compilation of GCC ended in error with a strange error messageĬhecking for suffix of object files. I dreaded doing the compilation from source as I knew it would be error prone and time consuming, and it did not turn out to good either.
The reason I wanted to install GCC 4.6 on my machine was that my Intel Fortran compiler had trouble linking with my GCC 4.2.1 version, which is the default installation on my Snow Leopard.