This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfortran on mac OS 10.6, uninstalling an old version


I'd like to get a version of gfortran working under Snow Leopard.  I had an older version installed that wasn't work.

So, I first removed *gfort* from  /usr/local/bin, /usr/local/lib, and /usr/local/include.
Then I followed the instructions on this page: http://hpc.sourceforge.net/
using the "Snow Leopard gfortran only" binary, since my other gcc compilers (that came with XCode?) are working fine.

When I try to compile a fortran program (for example, this file: http://www.personal.psu.edu/jhm/f90/examples/add.f ), I get the following messages:

$ gfortran add.f
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld: warning unknown -macosx_version_min parameter value: 10.6.2 ignored (using 10.4)
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld: /usr/local/lib/libgfortran.dylib bad magic number (not a Mach-O file)
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld: /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../libSystem.dylib unknown flags (type) of section 5 (__TEXT,__dof_magmalloc) in load command 0
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld: /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../libSystem.dylib unknown flags (type) of section 5 (__TEXT,__dof_magmalloc) in load command 0
collect2: ld returned 1 exit status


Maybe I didn't completely uninstall the older version of gfortran?

Any help would be greatly appreciated.


Best,
Robert






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]