Problems with fortran mex on MACOSX Leopard



Recently I upgraded from Tiger to Leopard MACOSX, and when I try to call –
already tested MEX files on MACOSX Tiger–, they simply crash.

I cannot even compile the first example included in the documentation:
'timestwo.F' properly, I used different configuration 'mexopts.sh' files: for
g95, gfortran and ifort compilers (which works perfectly well with MACOSX
Tiger):


%--- Using g95:

mex timestwo.F
/sw/lib/odcctools590/bin/ld: /usr/lib///libm.dylib unknown flags (type) of
section 6 (__TEXT,__dof_plockstat) in load command 0
/sw/lib/odcctools590/bin/ld: /usr/lib///libmx.dylib segment __TEXT
contains no sections and can't be link-edited
/sw/lib/odcctools590/bin/ld: /usr/lib///libSystem.dylib unknown flags (type)
of section 6 (__TEXT,__dof_plockstat) in load command 0

mex: link of 'timestwo.mexmaci' failed.

??? Error using ==> mex at 206
Unable to complete successfully.



%--- Using gfortran:

mex timestwo.F
ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib

HOWEVER when I try to run it, IT CRASHES.


%--- Using ifort:

mex timestwo.F
ifort: error #10106: Fatal error in /opt/intel/fce/10.0.016/bin/fpp,
terminated by segmentation violation

mex: compile of 'timestwo.F' failed.

??? Error using ==> mex at 206
Unable to complete successfully.


NOTE:
-The example code can be found typing:
edit([matlabroot '/extern/examples/refbook/timestwo.F']);

-I am using MATLAB Version 7.4.0.287 (R2007a)


Any suggestions?

Thank you very much indeed.


.



Relevant Pages

  • IBM XLFortran 8.1 on MacOSX 10.5 (Leopard)
    ... I am currently running IBM's XLFortran 8.1 from a terminal shell on ... MacOSX 10.4 (Tiger) without any issues (even though IBM has ... (don't care about Xcode or even debugger support). ...
    (comp.lang.fortran)
  • Re: Leopard im Oktober
    ... bei einem solchen Produkt noch nicht mal MacOSX ... MHz) nicht laufen sollte? ... Der Tiger läuft da für einfache Dinge noch akzeptabel. ...
    (de.comp.sys.mac.misc)