Ticket #213: f90_compilers.dat

File f90_compilers.dat, 11.2 KB (added by Huw Lewis, 15 years ago)

Candidate replacement file for f90_compilers.dat with support for AIX build

Line 
1# $Id: f90compilers.dat $
2#---------------------------------------------------------------------
3# NAME
4# f90_compilers.dat
5#
6# SYNOPSIS
7# Defines known compilers & their flag options supporting this
8# package for various platforms.
9#
10# USED BY
11# f90_select (shell script)
12#
13# DESCRIPTION
14# This file defines known Fortran-90 and C compilers and their command
15# line switches. Add new ones or replace the 'default' entry.
16# The ID in square brackets [OS-FID] represents
17# - OS: the platform O/S, as returned by uname (but truncated to
18# 6 characters and in uppercase)
19# - FID: an arbitrary ID for the Fortran compiler, to be used as an
20# argument to the -f switch in the master build script.
21# The DEF compiler is a copy of your favourite compiler
22# to be used as a default if no specific one is given to the
23# build script for each OS.
24# This compiler definitions file must have the following structure:
25#
26# [<OS>-<FID>]
27# f90name=<compiler name>
28# f90version=<version> (for info only, not used here)
29# FF=<f90 command>
30# FFLAGS=<f90 flags>
31# VFFLAG=<f90 version ID flag> (to print Fortran compiler details)
32# CC=<C command>
33# CFLAGS=<C flags>
34# VCFLAG=<C version ID flag> (to print C compiler details)
35#
36# Path variable to find include and module files in FFLAGS (argument
37# to -I or equivalent) must given as "$INCDIR" or the paths will not
38# be translated correctly.
39#
40# Compiler-specific notes
41# GFortran:
42# Note CC=gcc is set to use the default GNU C compiler with GFortran
43# (e.g. 3.x.x). If a later version of GCC has been installed directly
44# from the GFortran website (e.g. v4.x.x), you may wish to point CC=gcc
45# to use the newer gcc (e.g. CC=gcc-4) that comes with the GFortran
46# package, or set up a softlink for gcc to point to a non-default
47# local version of gcc. E.g: edit CC=gcc-4 plus
48# $ ln -s <path-to-gfortran>/bin/gcc $HOME/bin/gcc-4
49#
50# AUTHOR
51# Dave Offiler
52#
53# CHANGE HISTORY
54#
55# Vers Date Description By
56# -----------------------------------------------------------------------
57# 1.0 20-Aug-2004 First Release D. Offiler
58# 1.1 14-Dec-2004 Add Linux g95 D. Offiler
59# 1.2 23-Mar-2005 Add Cygwin g95 and Linux+Cygwin GFortran (gfc)
60# NB Under Cygwin, g95 works with gcc-3.3.x
61# or gcc-3.4.x; gcc-4.1.0 does NOT work, even
62# though recent releases of g95 are built on the
63# gcc-4.1.0 back-end. So far, I haven't managed
64# to get gfc to work with any version of
65# gcc under Cygwin :-( D. Offiler
66# 1.3 25-May-2005 Add Linux efc (NEC SX6/SX8 front-end) D. Offiler
67# 1.4 12-Aug-2005 Rename Linux PG --> PGF90
68# Rename Linux INTEL --> IFC (Intel v7)
69# Rename Linux LF --> LF95
70# Rename Cygwin INTEL --> IFORT (Intel v8)
71# Add Linux PGF95
72# Add Linux IFORT (Intel v8)
73# Add -kind to FFLAGS for HP-UX NAG
74# Add VFLAG keyword to all blocks. D. Offiler
75# Modify details for Linux EFC for ia64:
76# - add -i8 & -size_lp64 to FFLAGS
77# - use ecc instead of gcc
78# - add -size_lp64 to CFLAGS A. von Engeln
79# - add -m D. Offiler
80# Add +U77 & -lnsl to HP-UX HP D. Offiler
81# 1.5 09-Sep-2005 Use gcc-4 with Linux/Cygwin gfc
82# (latest releases of this combo work ok).
83# Change 'VFLAG' keyword to 'VFFLAG' and
84# add keyword 'VCFLAG' D. Offiler
85# 1.6 22-Sep-2005 Add SunOS Fujitsu D. Offiler
86# 1.7 13-Oct-2005 Add Linux ifort9 (Intel v9) D. Offiler
87# 1.8 11-Apr-2006 Add HP-UX G95 D. Offiler
88# 1.9 16-Oct-2006 Modify Linux details:
89# - set DEF (default) to ifort (Intel v9)
90# - change IFORT9 to IFORT (Intel v9)
91# - change IFORT to IFORT8 (Intel v8)
92# - change PGF90 to PGF (pgf90 now at v6.1)
93# - PGF95 removed (was v6.0; use 'pgf')
94# - updated G95 & GFortran version strings. D. Offiler
95# 1.10 17-Jan-2007 Modify flag details for latest efc v5.4 on NEC
96# 1.11 08-Feb-2008 Add to Linux:
97# - IFORT9 (Intel v9 - alias for IFORT)
98# - IFORT10 (Intel v10)
99# - PGF6 (Portland Group v6 - alias for PGF)
100# - PGF7 (Portland Group v7) D. Offiler
101# 1.12 27-Jun-2008 Removed all entries in FFLAG to specify
102# output path for module files so module
103# files are created in PWD. We leave it to
104# the build application (script or make file)
105# to install to $INCDIR (or wherever). D. Offiler
106# 1.13 27-Aug-2008 Changed assumed commands for Linux Portland
107# compilers for better consistency:
108# - PGF invokes 'pgf95' (was 'pgf90')
109# - PGF6 invokes 'pgf6' (was 'pgf956')
110# - PGF7 invokes 'pgf7' (was 'pgf957') D. Offiler
111# 1.14 29-Jun-2009 Add NAGFOR for NAGWare 'nagfor' (v5.2) on Linux
112# Add SUNF95 for SUN 'sunf95' (v8.3) on Linux
113# Add IFORT11 for Intel 'ifort11' (v11) on Linux
114# Modify LINUX-IFORT* details:
115# - '-Vaxlib' deprecated after v8; removed from
116# v9 & later entries (including LINUX-DEF)
117# - added '-vec-report0' from v9 & later entries to
118# suppress remarks about vector optimisations (not
119# required for v11.1)
120# Copy 'gfc' to 'gfortran' (Linux & Cygwin),
121# removed '-static' flag and use default 'gcc'
122# in place of non-standard 'gcc-4' D. Offiler
123# 1.15 24-July-2009 Package no longe uses 'portability.fi' file which
124# contained backslash characters supporting MS-DOS
125# file path syntax, so F90 compiler switches '-nbs' and
126# -Mbackslash' etc are redundant and have been removed.
127# Removed 'GFC' blocks (use 'GFORTRAN)'.
128# Make GFortran default under Cygwin. D. Offiler
129#
130#---------------------------------------------------------------------
131#
132# --- Linux ---
133
134[LINUX-DEF]
135f90name=Intel f95 (v9)
136f90version=v9.1
137FF=ifort
138FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
139VFFLAG=--version
140CC=gcc
141CFLAGS=-DUNDERSCORE
142VCFLAG=--version
143
144[LINUX-IFORT]
145f90name=Intel f95 (v9)
146f90version=v9.1
147FF=ifort
148FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
149VFFLAG=--version
150CC=gcc
151CFLAGS=-DUNDERSCORE
152VCFLAG=--version
153
154[LINUX-IFORT8]
155f90name=Intel f95 (v8)
156f90version=v8.1
157FF=ifort8
158FFLAGS=-DBPATH -O2 -cm -w -Vaxlib -I $INCDIR
159VFFLAG=-V
160CC=gcc
161CFLAGS=-DUNDERSCORE
162VCFLAG=--version
163
164[LINUX-IFORT9]
165f90name=Intel f95 (v9)
166f90version=v9.1
167FF=ifort9
168FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
169VFFLAG=--version
170CC=gcc
171CFLAGS=-DUNDERSCORE
172VCFLAG=--version
173
174[LINUX-IFORT10]
175f90name=Intel f95 (v10)
176f90version=v10.0
177FF=ifort10
178FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
179VFFLAG=--version
180CC=gcc
181CFLAGS=-DUNDERSCORE
182VCFLAG=--version
183
184[LINUX-IFORT11]
185f90name=Intel f95 (v11)
186f90version=v11.1
187FF=ifort11
188FFLAGS=-DBPATH -O2 -cm -w -I $INCDIR
189VFFLAG=--version
190CC=gcc
191CFLAGS=-DUNDERSCORE
192VCFLAG=--version
193
194[LINUX-NAG]
195f90name=NAGWare f95 (Linux)
196f90version=v5.1
197FF=f95
198FFLAGS=-DBPATH -O2 -w -I $INCDIR
199VFFLAG=-V
200CC=gcc
201CFLAGS=-DUNDERSCORE
202VCFLAG=--version
203
204[LINUX-NAGFOR]
205f90name=NAGWare f95 (Linux)
206f90version=v5.2
207FF=nagfor
208FFLAGS=-DBPATH -O2 -w -I $INCDIR
209VFFLAG=-V
210CC=gcc
211CFLAGS=-DUNDERSCORE
212VCFLAG=--version
213
214[LINUX-PGF]
215f90name=Portland Group f95 (v6)
216f90version=v6.2-3
217FF=pgf95
218FFLAGS=-DBPATH -O2 -I$INCDIR
219VFFLAG=-V
220CC=gcc
221CFLAGS=-DUNDERSCORE
222VCFLAG=--version
223
224[LINUX-PGF6]
225f90name=Portland Group f95 (v6)
226f90version=v6.2-3
227FF=pgf6
228FFLAGS=-DBPATH -O2 -I$INCDIR
229VFFLAG=-V
230CC=gcc
231CFLAGS=-DUNDERSCORE
232VCFLAG=--version
233
234[LINUX-PGF7]
235f90name=Portland Group f95 (v7)
236f90version=v7.0-2
237FF=pgf7
238FFLAGS=-DBPATH -O2 -I$INCDIR
239VFFLAG=-V
240CC=gcc
241CFLAGS=-DUNDERSCORE
242VCFLAG=--version
243
244[LINUX-LF95]
245f90name=Lahay-Fujitsu f95
246f90version=v6.20
247FF=lf95
248FFLAGS=-DBPATH -O0 -I$INCDIR
249VFFLAG=--version
250CC=gcc
251CFLAGS=-DUNDERSCORE
252VCFLAG=--version
253
254[LINUX-SUNF95]
255f90name=SUN f95
256f90version=v8.3
257FF=sunf95
258FFLAGS=-DBPATH -O2 -I$INCDIR -M$INCDIR
259VFFLAG=-V
260CC=suncc
261CFLAGS=-DUNDERSCORE
262VCFLAG=-V
263
264[LINUX-IFC]
265f90name=Intel f95
266f90version=v7.1
267FF=ifc
268FFLAGS=-DBPATH -O2 -cm -w -Vaxlib -I $INCDIR
269VFFLAG=-V
270CC=gcc
271CFLAGS=-DUNDERSCORE
272VCFLAG=--version
273
274[LINUX-G95]
275f90name=GNU G95
276f90version=v0.92 (GCC 4.0.3)
277FF=g95
278FFLAGS=-DBPATH -O2 -I $INCDIR
279VFFLAG=--version
280CC=gcc
281CFLAGS=-DDUNDERSCORE
282VCFLAG=--version
283
284[LINUX-GFORTRAN]
285f90name=GNU GFortran
286f90version=v4.4.0
287FF=gfortran
288FFLAGS=-DBPATH -O2 -I $INCDIR
289VFFLAG=--version
290CC=gcc
291CFLAGS=-DUNDERSCORE -w
292VCFLAG=--version
293
294[LINUX-EFC]
295f90name=NEC Fortran for Itanium
296f90version=v5.4
297FF=efc
298FFLAGS=-DBPATH -O2 -integer_size 64 -cm -w -nowarn -Vaxlib -I $INCDIR
299VFFLAG=-V
300CC=ecc
301CFLAGS=-DUNDERSCORE -DL64
302VCFLAG=-V
303
304# --- AIX ---
305
306[AIX-DEF]
307f90name=AIX Fortran for IBM p6
308f90version=v12.1
309FF=xlf
310FFLAGS=-WF,-DBPATH -O2 -q64 -qextname -I $INCDIR
311VFFLAG=-V
312CC=xlc
313CFLAGS=-O2 -q64 -Dextname -DUNDERSCORE
314VCFLAG=-V
315
316# --- Cygwin ---
317
318[CYGWIN-DEF]
319f90name=GNU GFortran
320f90version=v4.3.2
321FF=gfortran
322FFLAGS=-DBPATH -O2 -I $INCDIR
323VFFLAG=--version
324CC=gcc
325CFLAGS=-DUNDERSCORE -w
326VCFLAG=--version
327
328[CYGWIN-IFORT]
329f90name=Intel Visual Fortran
330f90version=v8.1
331FF=ifort
332FFLAGS=/nologo /DBPATH /optimize:2 /nowarn /Qlowercase /fpp /I $INCDIR
333VFFLAG=/logo
334CC=cl
335CFLAGS=/nologo
336VCFLAG=
337
338[CYGWIN-G95]
339f90name=GNU G95
340f90version=v0.92 (GCC 4.0.3)
341FF=g95
342FFLAGS=-DBPATH -O2 -I $INCDIR
343VFFLAG=--version
344CC=gcc
345CFLAGS=-DDUNDERSCORE
346VCFLAG=--version
347
348[CYGWIN-GFORTRAN]
349f90name=GNU GFortran
350f90version=v4.3.2
351FF=gfortran
352FFLAGS=-DBPATH -O2 -I $INCDIR
353VFFLAG=--version
354CC=gcc
355CFLAGS=-DUNDERSCORE -w
356VCFLAG=--version
357
358# --- HP-UX ---
359
360[HP-UX-DEF]
361f90name=HP f90/95
362f90version=v2.4.10
363FF=/opt/fortran90/bin/f90
364FFLAGS=-DBPATH -O2 +U77 -I $INCDIR -lnsl
365VFFLAG=+version
366CC=cc
367CFLAGS=
368VCFLAG=-V
369
370[HP-UX-HP]
371f90name=HP f90/95
372f90version=v2.4.10
373FF=/opt/fortran90/bin/f90
374FFLAGS=-DBPATH -O2 +U77 -I $INCDIR -lnsl
375VFFLAG=+version
376CC=cc
377CFLAGS=
378VCFLAG=-V
379
380[HP-UX-NAG]
381f90name=NAGWare f95 (HP-UX)
382f90version=v4.2
383FF=f95
384FFLAGS=-DBPATH -O2 -w -kind=byte -I $INCDIR -lnsl
385VFFLAG=-version
386CC=cc
387CFLAGS=-DUNDERSCORE
388VCFLAG=-V
389
390[HP-UX-G95]
391f90name=Gnu G95
392f90version=v4.0.1
393FF=hpg95
394FFLAGS=-DBPATH -O2 -I $INCDIR
395VFFLAG=--version
396CC=gcc
397CFLAGS=-DDUNDERSCORE
398VCFLAG=--version
399
400# --- Sun-OS ---
401
402[SUNOS-DEF]
403f90name=Fujitsu Fortran
404f90version=4.0.1.1
405FF=f95
406FFLAGS=-DBPATH -O2 -AEm -fs -I$INCDIR
407VFFLAG=-V
408CC=gcc
409CFLAGS=-DUNDERSCORE
410VCFLAG=--version
411
412[SUNOS-FUJITSU]
413f90name=Fujitsu Fortran
414f90version=4.0.1.1
415FF=f95
416FFLAGS=-DBPATH -O2 -AEm -fs -I$INCDIR
417VFFLAG=-V
418CC=gcc
419CFLAGS=-DUNDERSCORE
420VCFLAG=--version