Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Problems with fortran mex on MACOSX Leopard
Date: Wed, 31 Oct 2007 14:36:38 +0000 (UTC)
Organization: CSIC
Lines: 58
Message-ID: <fga3tm$1p6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1193841398 1830 172.30.248.37 (31 Oct 2007 14:36:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Oct 2007 14:36:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 60336
Xref: news.mathworks.com comp.soft-sys.matlab:435441



Recently I upgraded from Tiger to Leopard MACOSX, and when I try to call &#8211;
already tested MEX files on MACOSX Tiger&#8211;, 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.