Platform: Mac OS X
Problem Details:
OS Version: Mac OS X 10.2
Product Version: 7.0
Date: 23-Aug-02
Q. I just upgraded to OS X 10.2 (or purchased a new computer which runs OS X 10.2.)
My compiler no longer works and I get an obscure error.
A. Apple upgraded a version of the Apple Developer Tools. This causes an error for Pro Fortran versions 7.0 and 8.0. We suggest that you follow the instructions (README file) in the following directories concerning the fix.
Pro Fortran v7.0 and v8.0 users:
Go to http://www.absoft.com
Please read the instructions.
index
Platform: Mac OS X
Problem Details:
OS Version: Mac OS X
Product Version: 7.0
Date: 03-Oct-01
Q. I just upgraded to Mac OS 10.1. Every time I
try to create a new project using Absoft Tools
it crashes.
A. Apple made significant enough changes to Mac OS 10.1 that Absoft needed to create a new version of Absoft tools which is in the service pack for Pro Fortran 7.0. Go to the Absoft download site: http://www.absoft.com Follow the instructions.
index
Platform: Mac OS X
Problem Details:
OS Version: Mac OS X
Product Version: all
Date: 08-Oct-01
Q. I receive the error message:
"Fixup of 32904 too large for field width of 16 bits"
A. From the Command line add the –N11 option. In
Absoft Tools, Options, Target put a check in Use
32- bit Branches.
This is happening because in certain types of unusually
large program units, the 16-bit addressing ability of the
PowerPC can be exceeded.
index
|
Platform: Mac OS X
Problem Details:
OS Version: any
Product Version: All
Date: 12-Sep-01
Q. I am trying to link to one of the Absoft supplied libraries:
IMSL
LAPACK
UNIX/VMS compatibility
AltiVec
BLAS
However, I receive an undefined reference for any routine
that I try to use. For example:
[localhost:~] absoft% cat imsl.f
!C Declare variables
INTEGER NDEG
PARAMETER (NDEG=3)
REAL COEFF(NDEG+1)
COMPLEX ZERO(NDEG)
EXTERNAL WRCRN, ZPORC
! Set values of COEFF
!COEFF = (-2.0 4.0 -3.0 1.0)
DATA COEFF/-2.0, 4.0, -3.0, 1.0/
CALL ZPORC (NDEG, COEFF, ZERO)
CALL WRCRN ('The zeros found are', 1, NDEG, ZERO, 1, 0)
END
[localhost:~] absoft% f77 imsl.f
FORTRAN 77 Compiler 7.0, Copyright (c) 1987-2001, Absoft Corp.
/usr/bin/ld: Undefined symbols:
_WRCRN
_ZPORC
A. All of the Absoft supplied library symbols are lower case with a
trailing underscore.
If you change ZPORC and WRCRN to zporc_ and wrcrn_ then imsl.f
will compile and link with out error.
If you are using .f files with Absoft Tools then go to
Configure, Set Project Options…, Plug-ins and select
the desired library. If you are using .f90 of .f95 files
then after selecting the desired plug-in go to the F95
tab and select Compatibility from the drop down list.
Then add an underscore in the External Symbol Suffix
text box. Then select Format and in External Names
select Lower Case.
If you are using the command line here is how you link
to the IMSL libraries:
[localhost:~] absoft% f77 imsl.f -limsl -limslblas -N15 -f
FORTRAN 77 Compiler 7.0, Copyright (c) 1987-2001, Absoft Corp.
[localhost:~] absoft% f90 imsl.f -limsl -limslblas -YEXT_SFX=_ -YEXT_NAMES=LCS
The IMSL routines are documented on the CDROM in the
IMSL Documentation folder
Unix/VMS libraries:
The Unix/VMS libraries contain three entry points for
each routine. One in all upper case, one in all upper
case with a trailing underscore, and one in all lower
case with a trailing underscore:
DATE
DATE_
date_
[localhost:~] absoft% cat test.f
character*40 argument
n = IARGC()
do i=1,n
call GETARG(i,argument)
print *,trim(argument)
end do
end
[localhost:~] absoft% f77 test.f -lU77
FORTRAN 77 Compiler 7.0, Copyright (c) 1987-2001, Absoft Corp.
[localhost:~] absoft% a.out I am on the command line!
I
am
on
the
command
line!
The Unix/VMS routines are documented in
/Applications/absoft/doc/SupportLibrary.pdf
LAPACK:
To use the LAPACK libraries you must also link in the BLAS libraries
from the command line like this:
[localhost:~] absoft% f90 -YEXT_NAMES=LCS -YEXT_SFX=_ t.f -llapack -lblas
[localhost:~] absoft% f77 -f -N15 t.f -llapack -lblas
FORTRAN 77 Compiler 7.0b, Copyright (c) 1987-2002, Absoft Corp.
From Absoft Tools go to Configure, Plug-ins and put a check in LAPACK
Library and BLAS Library, Standered.
You can recompile any of the Absoft supplied
libraries with any case folding/underscore combination
that suits your programs linking requirements.
We supply the complete source codes and makefiles
for all of the Absoft supplied libraries except for
the IMSL libraries which is proprietary code.
All of the Absoft supplied libraries are maintained in:
/Applications/Absoft/lib
You can find out what the entry points for any library
are by typing nm and the name of the library from the
command line.
index
Platform: All
Problem Details:
OS Version: Any
Product Version: 7.0
Date: 19-Apr-02
Q. Using more than 2GB of addressable memory
A. The following table shows the maximum process size (code+data) on each operating system:
OS | Max process size
---------------------+--------------------
x86 Linux kernel 2.4 | 3GB
x86 Linux kernel 2.2 | 2GB
PPC Linux | 2GB
Windows | 2GB
Mac OSX | 2GB, 64MB max stack
In addition to those limits, f90 has a limit of a maximum of 512MB
for any single array or common block. This limit is scheduled to be
removed from f90 in the next release after version 7.5.
F77 has a limit of 2GB for any single array, and 2,000,000,000 bytes
for any single common block.
To have the maximum amount of memory available for data on Linux,
it is necessary to link your application statically. This is done
by using the "-X -static" option for either f77 or f90.
On x86 Linux there is also a limit in the GNU assembler that
you can't have more than 2GB of static data (either save
statements, or the -s switch) in a single file. If you try,
you will get the following error: Error: attempt to .org backwards ignored
To work around this, you can put some data into a common block.
index
Platform: Mac OS X
Problem Details:
OS Version: 10.2 or later
Product Version: 7.0 and later
Date: 18-Sept-02
Q. What is Apple's vecLib and how do I link to it using Absoft Pro Fortran?
A. Apple's vecLib is a library of routines coded to take advantage of PowerPC architecture known as Velocity Engine or AltiVec. Of particular interest to Fortran programmers is the fact that the vecLib shipping with OS X 10.2 includes a complete BLAS implementation (although only the single and complex routines take advantage of Altivec.) Further information about vecLib can be found at Apple's web site.
Linking vecLib with Absoft Pro Fortran is a simple procedure. You
need to compile your source code with the appropriate name
decoration options (external routine names folded to lower-case
with a trailing underscore appended) and then include vecLib when
building your application. The following two command lines illustrate
this procedure for FORTRAN 77 and Fortran 90 for a simple, one file
application.
f77 -f -N15 file.f -X -framework -X vecLib
f90 -YEXT_NAMES=LCS -YEXT_SFX=_ file.f90 -X -framework -X vecLib
index
Platform: Mac OS X
Problem Details:
OS Version: OSX
Product Version: 7.0 and later
Date: 31-Mar-03
Q. Whenever I do file I/O with my program, I see this error:
? FORTRAN Runtime Error: ? Attempt to read past end of file ? READ(UNIT=26,...
A. The problem is that your files are in Mac format. In OS 9 lines are terminated with a carriage return, in UNIX like systems lines are terminated with a line feed. OSX is a UNIX like operating system, and so your input file must be in UNIX format.
The simplest way to convert these files is to do an ASCII FTP
transfer of them between the two computers.
You can use the command line utility provided,
/Applications/Absoft/bin/unixformat, to ensure that your files are in the
correct format. This will also leave a copy of your original file in the
directory with a .mac file extension added.
Important Note: If you run the command as "unixformat *" the utility will
rename of all the directories in the current directory with a .mac
extension and create a big mess. Use the unixformat command with with
some kind of specifier so that it is only run on the desired files, such
as "unixformat *.dat".
Also, you can control the file format in the Absoft Editor by going to the
"Format" menu and choosing "Show Info". Select the desired style from the
"Line Style" drop down box and save. The current format is displayed in
the lower right corner of the editor window.
index
|