Opened 9 years ago

Last modified 6 years ago

#13157 closed defect

%fortran in the notebook (and fortran.eval on command line) is STILL broken on OS X — at Initial Version

Reported by: benjaminfjones Owned by: was
Priority: major Milestone: sage-5.4
Component: interfaces Keywords: fortran osx
Cc: kcrisman, mvngu, flawrence Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Despite #7465 being closed as "worksforme", the following snippet in the notebook in Sage-5.0.1 (official binary) 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.

Change History (0)

Note: See TracTickets for help on using tickets.