Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problems with fortran mex on MACOSX Leopard
Date: Fri, 2 Nov 2007 23:29:10 +0000 (UTC)
Organization: CSIC
Lines: 95
Message-ID: <fggbs6$o05$1@fred.mathworks.com>
References: <fga3tm$1p6$1@fred.mathworks.com> <fgfp8d$p7a$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 1194046150 24581 172.30.248.37 (2 Nov 2007 23:29:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Nov 2007 23:29:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 60336
Xref: news.mathworks.com comp.soft-sys.matlab:435884



Hi Brian,

Yes, I installed Xcode 3.0 from the DVD, that should not be a problem.  
However, you are right, it seems that my g95 is having some issues with 
Leopard (http://www.mail-archive.com/fink-
devel@lists.sourceforge.net/msg15794.html) due to its dependency on 
odcctools590. 

On the other hand, do you have a clue why is 'ifort' crashing?


Many thanks!

Ibon,


Brian Arnold <barnold@mathworks.com> wrote in message 
<fgfp8d$p7a$1@fred.mathworks.com>...
> Hi Ibon,
> 
> When we ran our qualification tests, we used g95 (built on Tiger using 
> Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.
> 
>  From the looks of the g95 failure below, it could be that g95 isn't 
> built right, or that the version of Xcode on Leopard is wrong.  Did you 
> install Xcode 3 from the DVD?
> 
> - Brian
> 
> Ibon wrote:
> > 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.
> > 
> >