#13157: inline_fortran is STILL broken on OS X
----------------------------------+-----------------------------------------
Reporter: benjaminfjones | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.3
Component: interfaces | Resolution:
Keywords: fortran osx | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):
* status: new => needs_review
* author: => Jeroen Demeyer
Old description:
> Despite #7465 being closed as "worksforme", the following snippet in the
> notebook in Sage-5.2 on Mac OS X 10.7.4 fails.
>
> {{{
> %fortran
> C FILE: FIB1.F
> SUBROUTINE FIB(A,N)
> C
> C CALCULATE FIRST N FIBONACCI NUMBERS
> C
> INTEGER N
> REAL*8 A(N)
> DO I=1,N
> IF (I.EQ.1) THEN
> A(I) = 0.0D0
> ELSEIF (I.EQ.2) THEN
> A(I) = 1.0D0
> ELSE
> A(I) = A(I-1) + A(I-2)
> ENDIF
> ENDDO
> END
> C END FILE FIB1.F
> }}}
>
> Here is the error in full: http://pastebin.com/iVBkjckp
>
> Looking through the convoluted ticket relationships (#7465, #8010, etc..)
> it looks like numpy spkg was patched to fix the problem with the
> `-shared` link flag at some point, and sometime later the numpy was
> upgraded (perhaps making the patch unnecessary (??)) and now it might be
> some other issue having to do with the gcc/gfortran spkg. Just a guess.
New description:
Despite #7465 being closed as "worksforme", the following snippet in the
notebook in Sage-5.2 on Mac OS X 10.7.4 fails.
{{{
%fortran
C FILE: FIB1.F
SUBROUTINE FIB(A,N)
C
C CALCULATE FIRST N FIBONACCI NUMBERS
C
INTEGER N
REAL*8 A(N)
DO I=1,N
IF (I.EQ.1) THEN
A(I) = 0.0D0
ELSEIF (I.EQ.2) THEN
A(I) = 1.0D0
ELSE
A(I) = A(I-1) + A(I-2)
ENDIF
ENDDO
END
C END FILE FIB1.F
}}}
Here is the error in full: http://pastebin.com/iVBkjckp
'''Apply''':
1. [attachment:13157_inline_fortran.patch] to the Sage library.
2. [attachment:13157_scripts.patch] to `$SAGE_ROOT/local/bin`.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13157#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.