Thread Subject: after mex-file Matlab exists with "Alarm clock"

Subject: after mex-file Matlab exists with "Alarm clock"

From: Ben Abbott

Date: 23 Jun, 2007 13:14:56

Message: 1 of 5

I've been using g95 to produce mex-files for Matlab (r2006b) on a PPC
Mac running OS X 10.4.10.

A short period after running the mex-file, Matlab exists. Running
Matlab from a terminal window (command line), an error/comment is
issued as Matlab exists. The error is simply "Alarm clock".

Any thoughts?

TiA

Subject: after mex-file Matlab exists with

From: Ben Abbott

Date: 25 Jun, 2007 08:41:42

Message: 2 of 5

Ben Abbott wrote:
>
>
> I've been using g95 to produce mex-files for Matlab (r2006b) on a
> PPC
> Mac running OS X 10.4.10.
>
> A short period after running the mex-file, Matlab exists. Running
> Matlab from a terminal window (command line), an error/comment is
> issued as Matlab exists. The error is simply "Alarm clock".
>
> Any thoughts?
>
> TiA
  
I did a timing and found that the "alarm" occurs 10 minutes after the
mex-file is run.

When the mex-file is run several times the timing increases. However,
I'm not yet sure of the progression.

Of course, the progression is not directly relevant. What I need is a
way to turn if off!

Any thoughts?

Subject: after mex-file Matlab exists with

From: Eric Sampson

Date: 25 Jun, 2007 09:16:34

Message: 3 of 5

Ben Abbott wrote:
>
>
> Ben Abbott wrote:
>>
>>
>> I've been using g95 to produce mex-files for Matlab (r2006b) on
a
>> PPC
>> Mac running OS X 10.4.10.
>>
>> A short period after running the mex-file, Matlab exists.
Running
>> Matlab from a terminal window (command line), an error/comment
is
>> issued as Matlab exists. The error is simply "Alarm clock".
>>
>> Any thoughts?
>>
>> TiA
>
> I did a timing and found that the "alarm" occurs 10 minutes after
> the
> mex-file is run.
>
> When the mex-file is run several times the timing increases.
> However,
> I'm not yet sure of the progression.
>
> Of course, the progression is not directly relevant. What I need is
> a
> way to turn if off!
>
> Any thoughts?
  
Ben, please see this thread on the g95 mailing list:

 <http://groups.google.com/group/gg95/browse_thread/thread/28b03df56928b9a5/9597671f8d02000c%239597671f8d02000c>

I believe the developers of g95 have produced a fix for this issue in
v0.91. You may want to contact them to check that this is the case
before upgrading.

Sincerely,
Eric Sampson
The MathWorks, In.c

Subject: after mex-file Matlab exists with

From: Gadi Reinhorn

Date: 25 Jun, 2007 11:42:02

Message: 4 of 5

> I believe the developers of g95 have produced a fix for this issue in
> v0.91. You may want to contact them to check that this is the case
> before upgrading.

I have confirmed with Andy the developer of g95. He says that the fix is in
0.91. I've run rudimentary testing and this issue goes away if you use
version 0.91.

Note that g95 0.91 has not been qualified with MATLAB. Use it at your own
risk.

Gadi


Subject: after mex-file Matlab exists with

From: Ben Abbott

Date: 25 Jun, 2007 21:01:29

Message: 5 of 5

Eric Sampson wrote:
>
>
> Ben Abbott wrote:
>>
>>
>> Ben Abbott wrote:
>>>
>>>
>>> I've been using g95 to produce mex-files for Matlab
(r2006b)
> on
> a
>>> PPC
>>> Mac running OS X 10.4.10.
>>>
>>> A short period after running the mex-file, Matlab exists.
> Running
>>> Matlab from a terminal window (command line), an
> error/comment
> is
>>> issued as Matlab exists. The error is simply "Alarm clock".
>>>
>>> Any thoughts?
>>>
>>> TiA
>>
>> I did a timing and found that the "alarm" occurs 10 minutes
after
>> the
>> mex-file is run.
>>
>> When the mex-file is run several times the timing increases.
>> However,
>> I'm not yet sure of the progression.
>>
>> Of course, the progression is not directly relevant. What I
need
> is
>> a
>> way to turn if off!
>>
>> Any thoughts?
>
> Ben, please see this thread on the g95 mailing list:
>
> <http://groups.google.com/group/gg95/browse_thread/thread/28b03df56928b9a5/9597671f8d02000c%239597671f8d02000c>
>
> I believe the developers of g95 have produced a fix for this issue
> in
> v0.91. You may want to contact them to check that this is the case
> before upgrading.
>
> Sincerely,
> Eric Sampson
> The MathWorks, In.c

Thanks Eric

I checked my g95 version ...

Using built-in specs.
Target:
Configured with: ../configure
--prefix=/sw/lib/gcc-lib/powerpc-apple-darwin8/4.0.3
--enable-languages=c --with-as=/sw/lib/odcctools590/bin/as
--with-ld=/sw/lib/odcctools590/bin/ld
--with-nm=/sw/lib/odcctools590/bin/nm --with-included-gettext
Thread model: posix
gcc version 4.0.3 (g95 0.90!) May 5 2007

Unfortunately, Fink doesn't have a more recent g95 available. I'll
contact Fink's maintainer for g95 to see if he can do an update.

In the meantime, can you put in a work ar Mathworks to have other
Fortran compilers supported on the Mac (other than Absoft, pls). I'd
love to be able to mex with both g95 and gfortran ... Intel Fortran
would be great as well!

Thanks again!
Ben

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com