[issm-support] compilation trouble

Morlighem, Mathieu (334H-Affiliate) Mathieu.Morlighem at jpl.nasa.gov
Fri Mar 9 20:42:19 PST 2012


Hi Safia,

I don't know if somebody else already replied to your email. You are almost there, the problem is that the gfortran library is not the one that is specified in configure.sh.

First you need to locate where libgfortran.a is (you might need to use the "locate" command).
It might be:
/usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2/libgfortran.a
/usr/local/lib/libgfortran.a
/usr/local/lib/x86_64/libgfortran.a
or something else.

Once you know where it is, open configure.sh and change the line
--with-fortran-lib="/usr/local/lib/libgfortran.a" \
to
--with-fortran-lib="/usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2/libgfortran.a" \

(do not forget the backslash at the end of the line) then reconfigure and try to recompile.
Do not hesitate to contact us if you need more help.

Have a nice week end
Mathieu
----------------------------------------------
Mathieu Morlighem
Assistant Project Scientist
Department of Earth System Science
University of California, Irvine

(818) 354-4134 (JPL office)
(949) 824-1353 (UCI office)
(626) 429-5780 (cell)
Mathieu.Morlighem at uci.edu
________________________________________
From: issm-support-bounces at issm.ess.uci.edu [issm-support-bounces at issm.ess.uci.edu] On Behalf Of Saffia Hossainzadeh [shossainzadeh at gmail.com]
Sent: Friday, March 09, 2012 6:50 PM
To: issm-support at issm.ess.uci.edu
Subject: [issm-support] compilation trouble

Hi,
I'm having a compilation error when trying to make ISSM and am wondering if anyone has encountered something similar and may have a solution.

I get the following error during make:

i686-apple-darwin10-g++-4.2.1: /usr/local/lib/libgfortran.a: No such file or directory
make[3]: *** [issm.exe] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

The file it can't find is needed for the parameter --with-fortran-lib, which does not exist on that path in my machine. I found the file on my machine at this path: /usr/local/gfortran/lib/libgfortran.a
So I changed the path in my .sh file to that, but I still got the following error on make (after re-executing the configure.sh file):
Making all in mex
  CXX    AverageFilter.o
  CXXLD  AverageFilter.mexmaci64
ld: library not found for -largeArrayDims
collect2: ld returned 1 exit status
ld: library not found for -largeArrayDims
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/2J/2Ji9hdVREH0nCVzmYaR-aE+++TM/-Tmp-//ccc3SKt8.out (No such file or directory)
make[3]: *** [AverageFilter.mexmaci64] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

The gfortran that is being used on my machine is located here: which gfortran: /usr/local/bin/gfortran.

Any advice would be appreciated!
Thanks!
Saffia






More information about the issm-support mailing list