<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580</link>
    <title>MATLAB Central Newsreader - Problems with fortran mex on MACOSX Leopard</title>
    <description>Feed for thread: Problems with fortran mex on MACOSX Leopard</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 31 Oct 2007 14:36:38 -0400</pubDate>
      <title>Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#399214</link>
      <author>Ibon </author>
      <description>Recently I upgraded from Tiger to Leopard MACOSX, and when I try to call &amp;#8211;&lt;br&gt;
already tested MEX files on MACOSX Tiger&amp;#8211;, they simply crash. &lt;br&gt;
&lt;br&gt;
I cannot even compile the first example included in the documentation: &lt;br&gt;
'timestwo.F' properly, I used different configuration 'mexopts.sh' files: for &lt;br&gt;
g95, gfortran and ifort compilers (which works perfectly well with MACOSX &lt;br&gt;
Tiger): &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
%--- Using g95: &lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
/sw/lib/odcctools590/bin/ld: /usr/lib///libm.dylib unknown flags (type) of &lt;br&gt;
section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
/sw/lib/odcctools590/bin/ld: /usr/lib///libmx.dylib segment __TEXT &lt;br&gt;
contains no sections and can't be link-edited &lt;br&gt;
/sw/lib/odcctools590/bin/ld: /usr/lib///libSystem.dylib unknown flags (type) &lt;br&gt;
of section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
&lt;br&gt;
mex: link of 'timestwo.mexmaci' failed. &lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
Unable to complete successfully. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
%--- Using gfortran: &lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib &lt;br&gt;
&lt;br&gt;
HOWEVER when I try to run it, IT CRASHES. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
%--- Using ifort: &lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
ifort: error #10106: Fatal error in /opt/intel/fce/10.0.016/bin/fpp, &lt;br&gt;
terminated by segmentation violation &lt;br&gt;
&lt;br&gt;
mex: compile of 'timestwo.F' failed. &lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
Unable to complete successfully. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
NOTE: &lt;br&gt;
-The example code can be found typing: &lt;br&gt;
edit([matlabroot '/extern/examples/refbook/timestwo.F']);&lt;br&gt;
&lt;br&gt;
-I am using MATLAB Version 7.4.0.287 (R2007a)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Any suggestions?&lt;br&gt;
&lt;br&gt;
Thank you very much indeed.</description>
    </item>
    <item>
      <pubDate>Fri, 02 Nov 2007 18:11:25 -0400</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#399618</link>
      <author>Brian Arnold</author>
      <description>Hi Ibon,&lt;br&gt;
&lt;br&gt;
When we ran our qualification tests, we used g95 (built on Tiger using &lt;br&gt;
Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;From the looks of the g95 failure below, it could be that g95 isn't &lt;br&gt;
built right, or that the version of Xcode on Leopard is wrong.  Did you &lt;br&gt;
install Xcode 3 from the DVD?&lt;br&gt;
&lt;br&gt;
- Brian&lt;br&gt;
&lt;br&gt;
Ibon wrote:&lt;br&gt;
&amp;gt; Recently I upgraded from Tiger to Leopard MACOSX, and when I try to call &amp;#8211;&lt;br&gt;
&amp;gt; already tested MEX files on MACOSX Tiger&amp;#8211;, they simply crash. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I cannot even compile the first example included in the documentation: &lt;br&gt;
&amp;gt; 'timestwo.F' properly, I used different configuration 'mexopts.sh' files: for &lt;br&gt;
&amp;gt; g95, gfortran and ifort compilers (which works perfectly well with MACOSX &lt;br&gt;
&amp;gt; Tiger): &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %--- Using g95: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libm.dylib unknown flags (type) of &lt;br&gt;
&amp;gt; section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
&amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libmx.dylib segment __TEXT &lt;br&gt;
&amp;gt; contains no sections and can't be link-edited &lt;br&gt;
&amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libSystem.dylib unknown flags (type) &lt;br&gt;
&amp;gt; of section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mex: link of 'timestwo.mexmaci' failed. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
&amp;gt; Unable to complete successfully. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %--- Using gfortran: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HOWEVER when I try to run it, IT CRASHES. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %--- Using ifort: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; ifort: error #10106: Fatal error in /opt/intel/fce/10.0.016/bin/fpp, &lt;br&gt;
&amp;gt; terminated by segmentation violation &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mex: compile of 'timestwo.F' failed. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
&amp;gt; Unable to complete successfully. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; NOTE: &lt;br&gt;
&amp;gt; -The example code can be found typing: &lt;br&gt;
&amp;gt; edit([matlabroot '/extern/examples/refbook/timestwo.F']);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -I am using MATLAB Version 7.4.0.287 (R2007a)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any suggestions?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you very much indeed.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 02 Nov 2007 23:29:10 -0400</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#399657</link>
      <author>Ibon </author>
      <description>Hi Brian,&lt;br&gt;
&lt;br&gt;
Yes, I installed Xcode 3.0 from the DVD, that should not be a problem.  &lt;br&gt;
However, you are right, it seems that my g95 is having some issues with &lt;br&gt;
Leopard (&lt;a href=&quot;http://www.mail-archive.com/fink-&quot;&gt;http://www.mail-archive.com/fink-&lt;/a&gt;&lt;br&gt;
devel@lists.sourceforge.net/msg15794.html) due to its dependency on &lt;br&gt;
odcctools590. &lt;br&gt;
&lt;br&gt;
On the other hand, do you have a clue why is 'ifort' crashing?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Many thanks!&lt;br&gt;
&lt;br&gt;
Ibon,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fgfp8d$p7a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Ibon,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When we ran our qualification tests, we used g95 (built on Tiger using &lt;br&gt;
&amp;gt; Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  From the looks of the g95 failure below, it could be that g95 isn't &lt;br&gt;
&amp;gt; built right, or that the version of Xcode on Leopard is wrong.  Did you &lt;br&gt;
&amp;gt; install Xcode 3 from the DVD?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - Brian&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ibon wrote:&lt;br&gt;
&amp;gt; &amp;gt; Recently I upgraded from Tiger to Leopard MACOSX, and when I try to &lt;br&gt;
call &amp;#8211;&lt;br&gt;
&amp;gt; &amp;gt; already tested MEX files on MACOSX Tiger&amp;#8211;, they simply crash. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I cannot even compile the first example included in the documentation: &lt;br&gt;
&amp;gt; &amp;gt; 'timestwo.F' properly, I used different configuration 'mexopts.sh' files: &lt;br&gt;
for &lt;br&gt;
&amp;gt; &amp;gt; g95, gfortran and ifort compilers (which works perfectly well with &lt;br&gt;
MACOSX &lt;br&gt;
&amp;gt; &amp;gt; Tiger): &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; %--- Using g95: &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; &amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libm.dylib unknown flags (type) &lt;br&gt;
of &lt;br&gt;
&amp;gt; &amp;gt; section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
&amp;gt; &amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libmx.dylib segment __TEXT &lt;br&gt;
&amp;gt; &amp;gt; contains no sections and can't be link-edited &lt;br&gt;
&amp;gt; &amp;gt; /sw/lib/odcctools590/bin/ld: /usr/lib///libSystem.dylib unknown flags &lt;br&gt;
(type) &lt;br&gt;
&amp;gt; &amp;gt; of section 6 (__TEXT,__dof_plockstat) in load command 0 &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; mex: link of 'timestwo.mexmaci' failed. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
&amp;gt; &amp;gt; Unable to complete successfully. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; %--- Using gfortran: &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; &amp;gt; ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; HOWEVER when I try to run it, IT CRASHES. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; %--- Using ifort: &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; mex timestwo.F &lt;br&gt;
&amp;gt; &amp;gt; ifort: error #10106: Fatal error in /opt/intel/fce/10.0.016/bin/fpp, &lt;br&gt;
&amp;gt; &amp;gt; terminated by segmentation violation &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; mex: compile of 'timestwo.F' failed. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ??? Error using ==&amp;gt; mex at 206 &lt;br&gt;
&amp;gt; &amp;gt; Unable to complete successfully. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; NOTE: &lt;br&gt;
&amp;gt; &amp;gt; -The example code can be found typing: &lt;br&gt;
&amp;gt; &amp;gt; edit([matlabroot '/extern/examples/refbook/timestwo.F']);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; -I am using MATLAB Version 7.4.0.287 (R2007a)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Any suggestions?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thank you very much indeed.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; </description>
    </item>
    <item>
      <pubDate>Sat, 29 Dec 2007 12:35:02 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#407508</link>
      <author>Ben Abbott</author>
      <description>Brian,&lt;br&gt;
&lt;br&gt;
Do I understand correclty, that TMW built g95 on Tiger, and then used it &lt;br&gt;
successfully on Leopard?&lt;br&gt;
&lt;br&gt;
In either event, any chance a pure Leopard solution might be forth coming &lt;br&gt;
with 2008a?&lt;br&gt;
&lt;br&gt;
I'd personally like to be able to use gfortran since this is the direction that &lt;br&gt;
gnu is headed with their compilers ... but would be happy with g95 0.90  &lt;br&gt;
solution.&lt;br&gt;
&lt;br&gt;
TiA&lt;br&gt;
&lt;br&gt;
Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fgfp8d$p7a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Ibon,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When we ran our qualification tests, we used g95 (built on Tiger using &lt;br&gt;
&amp;gt; Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; From the looks of the g95 failure below, it could be that g95 isn't &lt;br&gt;
&amp;gt; built right, or that the version of Xcode on Leopard is wrong.  Did you &lt;br&gt;
&amp;gt; install Xcode 3 from the DVD?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - Brian&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 02 Jan 2008 18:01:42 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#407754</link>
      <author>Brian Arnold</author>
      <description>Hi Ben,&lt;br&gt;
&lt;br&gt;
We use the same g95 built for Tiger, out-of-box from the original &lt;br&gt;
sources, using Xcode 2.4.1.  Make sure you are using Xcode 2.4.1.&lt;br&gt;
&lt;br&gt;
We would prefer to support gfortran, and it is possible to use gfortran &lt;br&gt;
instead.  However until very recently, gfortran did not support %val &lt;br&gt;
which many customers (including us) use, on multiple platforms, which is &lt;br&gt;
why we only support g95 on all Unix platforms.  Now that gfortran &lt;br&gt;
supports %val as of gcc 4.2.2, it's our intention to qualify and use &lt;br&gt;
gfortran in a future MATLAB release (barring unforeseen disasters).&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
- Brian&lt;br&gt;
&lt;br&gt;
Ben Abbott wrote:&lt;br&gt;
&amp;gt; Brian,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Do I understand correclty, that TMW built g95 on Tiger, and then used it &lt;br&gt;
&amp;gt; successfully on Leopard?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In either event, any chance a pure Leopard solution might be forth coming &lt;br&gt;
&amp;gt; with 2008a?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'd personally like to be able to use gfortran since this is the direction that &lt;br&gt;
&amp;gt; gnu is headed with their compilers ... but would be happy with g95 0.90  &lt;br&gt;
&amp;gt; solution.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; TiA&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;fgfp8d$p7a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; Hi Ibon,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; When we ran our qualification tests, we used g95 (built on Tiger using &lt;br&gt;
&amp;gt;&amp;gt; Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; From the looks of the g95 failure below, it could be that g95 isn't &lt;br&gt;
&amp;gt;&amp;gt; built right, or that the version of Xcode on Leopard is wrong.  Did you &lt;br&gt;
&amp;gt;&amp;gt; install Xcode 3 from the DVD?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; - Brian&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Thu, 03 Jan 2008 03:47:24 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#407800</link>
      <author>Ben Abbott</author>
      <description>Brian,&lt;br&gt;
&lt;br&gt;
I'm presently running Leopard (Xcode 3.0) on both PPC and Intel boxes. &lt;br&gt;
Unfortunately, I don't have a convenient method to run Xcode 2.4.1.&lt;br&gt;
&lt;br&gt;
However, as a side note, I was successful with building mex files for PPC and &lt;br&gt;
Intel on Tiger using g77, g95, and gfortran.&lt;br&gt;
&lt;br&gt;
I presently use a make file that optionally builds using g95 and gfortran on &lt;br&gt;
Tiger. If it may be of some use, I'm happy to post it.&lt;br&gt;
&lt;br&gt;
Regarding &quot;a future MATLAB release&quot;, I look forward to it.&lt;br&gt;
&lt;br&gt;
Some background on my problem: My mex file crashes when with&lt;br&gt;
&lt;br&gt;
dyld: Symbol not found: _mxgetnumberofelements_&lt;br&gt;
&lt;br&gt;
Checking libraries all I find is &quot;_mxGetNumberOfElements&quot;. Since that is in &lt;br&gt;
CamelCase, there is no way for me to link to it :-(&lt;br&gt;
&lt;br&gt;
With this small piece of information, it appears to me that the fortran &lt;br&gt;
interface for 2008b has a problem, but if Xcode 2.4.1 works then that can't &lt;br&gt;
be true.&lt;br&gt;
&lt;br&gt;
I'd be appreciative if can you give me some more detail as to what the &lt;br&gt;
problem is with 2007b and Xcode 3.0? Perhaps I can find a work around by &lt;br&gt;
using g95's f2003 bindings (soon to come for gfortran as well).&lt;br&gt;
&lt;br&gt;
TiA&lt;br&gt;
Ben&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;477BD186.1040709@mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Ben,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; We use the same g95 built for Tiger, out-of-box from the original &lt;br&gt;
&amp;gt; sources, using Xcode 2.4.1.  Make sure you are using Xcode 2.4.1.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; We would prefer to support gfortran, and it is possible to use gfortran &lt;br&gt;
&amp;gt; instead.  However until very recently, gfortran did not support %val &lt;br&gt;
&amp;gt; which many customers (including us) use, on multiple platforms, which is &lt;br&gt;
&amp;gt; why we only support g95 on all Unix platforms.  Now that gfortran &lt;br&gt;
&amp;gt; supports %val as of gcc 4.2.2, it's our intention to qualify and use &lt;br&gt;
&amp;gt; gfortran in a future MATLAB release (barring unforeseen disasters).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - Brian&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ben Abbott wrote:&lt;br&gt;
&amp;gt; &amp;gt; Brian,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Do I understand correclty, that TMW built g95 on Tiger, and then used it &lt;br&gt;
&amp;gt; &amp;gt; successfully on Leopard?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; In either event, any chance a pure Leopard solution might be forth &lt;br&gt;
coming &lt;br&gt;
&amp;gt; &amp;gt; with 2008a?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'd personally like to be able to use gfortran since this is the direction &lt;br&gt;
that &lt;br&gt;
&amp;gt; &amp;gt; gnu is headed with their compilers ... but would be happy with g95 0.90  &lt;br&gt;
&amp;gt; &amp;gt; solution.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; TiA&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;fgfp8d$p7a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Hi Ibon,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; When we ran our qualification tests, we used g95 (built on Tiger using &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Xcode 2.4.1) with MATLAB and Xcode 3 on Leopard for the MEXing.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; From the looks of the g95 failure below, it could be that g95 isn't &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; built right, or that the version of Xcode on Leopard is wrong.  Did you &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; install Xcode 3 from the DVD?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; - Brian&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 07 Jan 2008 07:55:07 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#408287</link>
      <author>Ben Abbott</author>
      <description>Update:&lt;br&gt;
&lt;br&gt;
Fink now has g95 for Leopard available.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://pdb.finkproject.org/pdb/package.php/g95&quot;&gt;http://pdb.finkproject.org/pdb/package.php/g95&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I haven't done much with it, but I did try one of Mathwork's examples.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; mex yprimef.F yprimefg.F&lt;br&gt;
ld: warning, duplicate dylib &lt;br&gt;
/Applications/MATLAB_R2007b/bin/maci/libz.1.dylib&lt;br&gt;
&amp;gt;&amp;gt; yprimef(1,1:4)&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.0000    8.9685    4.0000   -1.0947&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&lt;br&gt;
In spite of the linker warning, it appears to work!&lt;br&gt;
&lt;br&gt;
Ben</description>
    </item>
    <item>
      <pubDate>Mon, 07 Jan 2008 14:46:02 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#408342</link>
      <author>Brian Arnold</author>
      <description>Woo hoo!&lt;br&gt;
&lt;br&gt;
The linker warning is new to Xcode 3's linker, and not specific to g95. &lt;br&gt;
&amp;nbsp;&amp;nbsp;It is (correctly) warning that there are two libz's on the path.  On &lt;br&gt;
startup, MATLAB's libz is loaded first, and MATLAB requires this version &lt;br&gt;
for correct operation.  It happens to be the same version (1.2.3) &lt;br&gt;
currently provided by both Tiger and Leopard.&lt;br&gt;
&lt;br&gt;
Brian&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Ben Abbott wrote:&lt;br&gt;
&amp;gt; Update:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Fink now has g95 for Leopard available.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://pdb.finkproject.org/pdb/package.php/g95&quot;&gt;http://pdb.finkproject.org/pdb/package.php/g95&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I haven't done much with it, but I did try one of Mathwork's examples.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex yprimef.F yprimefg.F&lt;br&gt;
&amp;gt; ld: warning, duplicate dylib &lt;br&gt;
&amp;gt; /Applications/MATLAB_R2007b/bin/maci/libz.1.dylib&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; yprimef(1,1:4)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ans =&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     2.0000    8.9685    4.0000   -1.0947&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In spite of the linker warning, it appears to work!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ben&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 08 Jan 2008 01:10:19 -0500</pubDate>
      <title>Re: Problems with fortran mex on MACOSX Leopard</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158580#408434</link>
      <author>Ben Abbott</author>
      <description>Unfortunately, I'm still having troubles with my mexmaci builds. I'll spend &lt;br&gt;
some more time on this and either post what words, or post what doesn't.&lt;br&gt;
&lt;br&gt;
In any event, if libz is the &quot;the same version (1.2.3)&quot;, does it matter which one &lt;br&gt;
is loaded first?&lt;br&gt;
&lt;br&gt;
Ben&lt;br&gt;
&lt;br&gt;
Brian Arnold &amp;lt;barnold@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;47823B2A.3000006@mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Woo hoo!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The linker warning is new to Xcode 3's linker, and not specific to g95. &lt;br&gt;
&amp;gt;   It is (correctly) warning that there are two libz's on the path.  On &lt;br&gt;
&amp;gt; startup, MATLAB's libz is loaded first, and MATLAB requires this version &lt;br&gt;
&amp;gt; for correct operation.  It happens to be the same version (1.2.3) &lt;br&gt;
&amp;gt; currently provided by both Tiger and Leopard.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Brian&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ben Abbott wrote:&lt;br&gt;
&amp;gt; &amp;gt; Update:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Fink now has g95 for Leopard available.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://pdb.finkproject.org/pdb/package.php/g95&quot;&gt;http://pdb.finkproject.org/pdb/package.php/g95&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I haven't done much with it, but I did try one of Mathwork's examples.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; mex yprimef.F yprimefg.F&lt;br&gt;
&amp;gt; &amp;gt; ld: warning, duplicate dylib &lt;br&gt;
&amp;gt; &amp;gt; /Applications/MATLAB_R2007b/bin/maci/libz.1.dylib&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; yprimef(1,1:4)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ans =&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;     2.0000    8.9685    4.0000   -1.0947&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; In spite of the linker warning, it appears to work!&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Ben&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; </description>
    </item>
  </channel>
</rss>

