On Fri, 1 Apr 2005, Norman Gray wrote:
> Sorry, I wasn't clear. I added 'f77 -old_f77' to (the end of) the list
> of compiler+flag combinations that the Fortran support attempts, in a
> push toward making setting FC/F77 unnecessary.
OK, then that doesn't work. If I don't set FC/F77 then the f95 command is
picked up, with much the same problems as plain f77.
> Just by the way, it does seem a bit odd that this failed on your Alpha.
> The message you got was
>
> > When I run
> > .F files through it says:
> >
> > cpp: Severe: No such file or directory
> > ... file is '`-DLANGUAGE_FORTRAN_95'
> > f90: Severe: The input stream is empty
>
> The f90 and f95 compilers (which includes f77) on the Alpha explicitly
> use cpp to do their preprocessing, so if this is a cpp -D option, it
> should have been swallowed by the cpp, rather than getting through to
> the actual Fortran compiler. Does this suggest that something a bit
> more serious is wrong? Is there any other readily available context to
> this message?
See the attached config.log, that shows the whole error message, plus what
it tries (no sign of -old_f77). As I sais I think the compiler is
substantially broken in this area, not us.
> In particular, setting FPP on the Solaris builds should now be
> unnecessary: using fpp should unnecessary on Solaris, since the Solaris
> compilers can all do preprocessing, so that the FPP variable shouldn't
> be examined. It would probably be good to verify that in the nightly
> builds -- Steve, would you be able to edit that in the Solaris build?
OK, I'd gathered that and have set a build with only FC/F77 and CC/CXX set
(to avoid the GNU compilers).
> Since we've always been very disciplined about Fortran standards, I
> would expect that we've been using the F77 subset that's carried into
> F9x. If so, then we should surely expect that F9x compilers would be
> able to compile all our stuff, wouldn't we? Ought we to be pushing for
> that, do you (anyone?) think? Or is it just too much hassle?
Clearly when gfortran comes along (GCC4 is standard in FC4), this will
become more of an issue (%VAL etc. aside), so we should be thinking of
looking at this as part of any future plan.
Cheers,
Peter.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by generic configure 1.1-2, which was
generated by Starlink Autoconf 2.59. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = duomo
uname -m = alpha
uname -r = V5.1
uname -s = OSF1
uname -v = 732
/usr/bin/uname -p = alpha
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = alpha
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /loc/pwdc/pdraper/alpha/support/Perl/bin
PATH: /loc/pwdc/pdraper/jvms/j2sdk1.4.1/bin
PATH: /loc/pwdc/pdraper/alpha/build/buildsupport/bin
PATH: /loc/pwdc/pdraper/alpha/build/bin
PATH: /home2/pdraper/bin/alpha_OSF1
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/bin/mme
PATH: /loc/al2/pdraper/emacs/bin
PATH: /usr/local/avs/bin
PATH: /usr/local/teTeX/bin
PATH: /usr/local/bin
PATH: /home2/pdraper/bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/dt/bin
PATH: /usr/lsbin
PATH: /usr/ucb
PATH: /usr/bin
PATH: /etc
PATH: /usr/etc
PATH: /locals/share/bin
PATH: /usr/local/bin
PATH: /usr/local/share/bin
PATH: /locals/share/bin
PATH: /home2/pdraper/sdt-rcs
PATH: /home2/pdraper/sdt-cvs
PATH: /iraf/local/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1578: checking for a BSD-compatible install
configure:1633: result: ./../install-sh -c
configure:1644: checking whether build environment is sane
configure:1687: result: yes
configure:1744: checking for gawk
configure:1773: result: no
configure:1744: checking for mawk
configure:1773: result: no
configure:1744: checking for nawk
configure:1760: found /usr/bin/nawk
configure:1770: result: nawk
configure:1780: checking whether make sets $(MAKE)
configure:1800: result: yes
configure:1973: checking build system type
configure:1991: result: alphaev67-dec-osf5.1
configure:2011: checking for style of include used by make
configure:2039: result: GNU
configure:2110: checking for gcc
configure:2136: result: cc
configure:2380: checking for C compiler version
configure:2383: cc --version </dev/null >&5
cc: Error: No source or object files specified on the command line
configure:2386: $? = 1
configure:2388: cc -v </dev/null >&5
cc: Error: No source or object files specified on the command line
configure:2391: $? = 1
configure:2393: cc -V </dev/null >&5
Compaq C V6.3-029 on Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-030 (sys) cc Driver
configure:2396: $? = 0
configure:2419: checking for C compiler default output file name
configure:2422: cc conftest.c >&5
configure:2425: $? = 0
configure:2471: result: a.out
configure:2476: checking whether the C compiler works
configure:2482: ./a.out
configure:2485: $? = 0
configure:2502: result: yes
configure:2509: checking whether we are cross compiling
configure:2511: result: no
configure:2514: checking for suffix of executables
configure:2516: cc -o conftest conftest.c >&5
configure:2519: $? = 0
configure:2544: result:
configure:2550: checking for suffix of object files
configure:2571: cc -c conftest.c >&5
configure:2574: $? = 0
configure:2596: result: o
configure:2600: checking whether we are using the GNU C compiler
configure:2624: cc -c conftest.c >&5
cc: Error: conftest.c, line 16: In this declaration, "choke" must specify a type. (badparsedecl)
choke me
-------^
configure:2630: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "generic"
| #define PACKAGE_TARNAME "generic"
| #define PACKAGE_VERSION "1.1-2"
| #define PACKAGE_STRING "generic 1.1-2"
| #define PACKAGE_BUGREPORT "[log in to unmask]"
| #define PACKAGE "generic"
| #define VERSION "1.1-2"
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:2656: result: no
configure:2662: checking whether cc accepts -g
configure:2683: cc -c -g conftest.c >&5
configure:2689: $? = 0
configure:2693: test -z
|| test ! -s conftest.err
configure:2696: $? = 0
configure:2699: test -s conftest.o
configure:2702: $? = 0
configure:2713: result: yes
configure:2730: checking for cc option to accept ANSI C
configure:2800: cc -c -g conftest.c >&5
configure:2806: $? = 0
configure:2810: test -z
|| test ! -s conftest.err
configure:2813: $? = 0
configure:2816: test -s conftest.o
configure:2819: $? = 0
configure:2837: result: none needed
configure:2855: cc -c -g conftest.c >&5
cc: Error: conftest.c, line 2: Missing ";". (nosemi)
choke me
--------^
configure:2861: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2996: checking dependency style of cc
configure:3079: result: tru64
configure:3147: checking for lf95
configure:3176: result: no
configure:3147: checking for f95
configure:3163: found /usr/bin/f95
configure:3173: result: f95
configure:3188: checking for Fortran compiler version
configure:3191: f95 --version </dev/null >&5
ld:
Unresolved:
MAIN__
f95: Severe: Failed while trying to link.
configure:3194: $? = 1
configure:3196: f95 -v </dev/null >&5
/usr/bin/cc -v /usr/lib/cmplrs/fort90/for_main.o -O4 -qlshpf -lUfor -lfor -lFutil -lm -lots -lm_c32
/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/fort90/for_main.o -qlshpf -lUfor -lfor -lFutil -lm -lots -lm_c32 -lc
ld:
Unresolved:
MAIN__
/usr/lib/cmplrs/cc/ld:
0.00u 0.01s 0:00 7% 0+17k 4+16io 0pf+0w 17stk+1720mem
f95: Severe: Failed while trying to link.
configure:3199: $? = 1
configure:3201: f95 -V </dev/null >&5
ld:
Unresolved:
MAIN__
f95: Severe: Failed while trying to link.
configure:3204: $? = 1
configure:3217: f95 -c conftest.f >&5
configure:3223: $? = 0
configure:3225: checking for suffix of module files
configure:3256: result: mod
configure:3268: checking whether we are using the GNU Fortran compiler
configure:3282: f95 -c conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:3288: $? = 1
configure: failed program was:
| program main
| #ifndef __GNUC__
| choke me
| #endif
|
| end
configure:3314: result: no
configure:3320: checking whether f95 accepts -g
configure:3332: f95 -c -g conftest.f >&5
configure:3338: $? = 0
configure:3342: test -z
|| test ! -s conftest.err
configure:3345: $? = 0
configure:3348: test -s conftest.o
configure:3351: $? = 0
configure:3363: result: yes
configure:3455: Starlink tree located at /loc/pwdc/pdraper/alpha/build
configure:3531: checking whether we need any library fixups
configure:3658: result: no
configure:3768: checking for pax
configure:3786: found /sbin/pax
configure:3798: result: /sbin/pax
configure:3809: checking for gnutar
configure:3842: result: no
configure:3809: checking for tar
configure:3827: found /sbin/tar
configure:3839: result: /sbin/tar
configure:3951: checking for Fortran compiler version
configure:3954: f95 --version </dev/null >&5
ld:
Unresolved:
MAIN__
f95: Severe: Failed while trying to link.
configure:3957: $? = 1
configure:3959: f95 -v </dev/null >&5
/usr/bin/cc -v /usr/lib/cmplrs/fort90/for_main.o -O4 -qlshpf -lUfor -lfor -lFutil -lm -lots -lm_c32
/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/fort90/for_main.o -qlshpf -lUfor -lfor -lFutil -lm -lots -lm_c32 -lc
ld:
Unresolved:
MAIN__
/usr/lib/cmplrs/cc/ld:
0.00u 0.00s 0:00 0% 0+0k 4+16io 0pf+0w 0stk+1712mem
f95: Severe: Failed while trying to link.
configure:3962: $? = 1
configure:3964: f95 -V </dev/null >&5
ld:
Unresolved:
MAIN__
f95: Severe: Failed while trying to link.
configure:3967: $? = 1
configure:3980: f95 -c -g conftest.f >&5
configure:3986: $? = 0
configure:3988: checking for suffix of module files
configure:4019: result: mod
configure:4031: checking whether we are using the GNU Fortran compiler
configure:4077: result: no
configure:4083: checking whether f95 accepts -g
configure:4126: result: yes
configure:4155: checking how to run the C preprocessor
configure:4190: cc -E conftest.c
configure:4196: $? = 0
configure:4228: cc -E conftest.c
cc: Error: conftest.c, line 11: Cannot find file <ac_nonexistent.h> specified in #include directive. (noinclfile)
#include <ac_nonexistent.h>
-^
configure:4234: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "generic"
| #define PACKAGE_TARNAME "generic"
| #define PACKAGE_VERSION "1.1-2"
| #define PACKAGE_STRING "generic 1.1-2"
| #define PACKAGE_BUGREPORT "[log in to unmask]"
| #define PACKAGE "generic"
| #define VERSION "1.1-2"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4273: result: cc -E
configure:4297: cc -E conftest.c
configure:4303: $? = 0
configure:4335: cc -E conftest.c
cc: Error: conftest.c, line 11: Cannot find file <ac_nonexistent.h> specified in #include directive. (noinclfile)
#include <ac_nonexistent.h>
-^
configure:4341: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "generic"
| #define PACKAGE_TARNAME "generic"
| #define PACKAGE_VERSION "1.1-2"
| #define PACKAGE_STRING "generic 1.1-2"
| #define PACKAGE_BUGREPORT "[log in to unmask]"
| #define PACKAGE "generic"
| #define VERSION "1.1-2"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4437: checking for Fortran flag to compile preprocessable .F files
configure:4465: f95 -c -g conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:4471: $? = 1
configure: failed program was:
| program main
|
| end
configure:4465: f95 -c -g conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:4471: $? = 1
configure: failed program was:
| program main
|
| end
configure:4465: f95 -c -g conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:4471: $? = 1
configure: failed program was:
| program main
|
| end
configure:4465: f95 -c -g conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:4471: $? = 1
configure: failed program was:
| program main
|
| end
configure:4465: f95 -c -g conftest.F >&5
cpp: Severe: No such file or directory
... file is '`-DLANGUAGE_FORTRAN_95'
f90: Severe: The input stream is empty
configure:4471: $? = 1
configure: failed program was:
| program main
|
| end
configure:4556: result: unknown
configure:4574: Could not use .F as extension; trying .F
configure:4577: checking for Fortran flag to compile preprocessable .F files
configure:4696: result: unknown
configure:4699: error: Fortran could not compile .F files
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=alphaev67-dec-osf5.1
ac_cv_build_alias=alphaev67-dec-osf5.1
ac_cv_c_compiler_gnu=no
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXCPP_set=''
ac_cv_env_CXXCPP_value=''
ac_cv_env_CXXFLAGS_set=''
ac_cv_env_CXXFLAGS_value=''
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=cxx
ac_cv_env_F77_set=''
ac_cv_env_F77_value=''
ac_cv_env_FCFLAGS_set=''
ac_cv_env_FCFLAGS_value=''
ac_cv_env_FC_set=''
ac_cv_env_FC_value=''
ac_cv_env_FFLAGS_set=''
ac_cv_env_FFLAGS_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_STAR2HTML_set=''
ac_cv_env_STAR2HTML_value=''
ac_cv_env_STARLINK_set=''
ac_cv_env_STARLINK_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_exeext=''
ac_cv_fc_compiler_gnu=no
ac_cv_fpp_srcext_F=unknown
ac_cv_objext=o
ac_cv_path_PAX=/sbin/pax
ac_cv_path_TAR=/sbin/tar
ac_cv_prog_AWK=nawk
ac_cv_prog_CPP='cc -E'
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_ac_ct_FC=f95
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=''
ac_cv_prog_fc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=tru64
star_cv_restfp_fixup=no
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run aclocal-1.8'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run tar'
AR=''
AUTOCONF='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run autoconf'
AUTOHEADER='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run autoheader'
AUTOMAKE='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run automake-1.8'
AWK='nawk'
CC='cc'
CCDEPMODE='depmode=tru64'
CFLAGS='-g'
CPP='cc -E'
CPPFLAGS=''
CXX='cxx'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
C_FC_FCLINK_MAGIC=''
C_FC_PPFC_FCLINK_MAGIC=''
DEFS=''
DEPDIR='.deps'
ECHO='print -r'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FC='f95'
FCFLAGS='-g'
FFLAGS=''
FPP=''
FPPFLAGS=''
FPPFLAGS_DEF=''
FPPFLAGS_F=''
FPP_COMPILE_EXT=''
FPP_MAKE_FLAGS=''
FPP_OUTPUT=''
FPP_PREPROCESS_EXT=''
FPP_SRC_EXT='F'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LATEX2DVI=''
LDFLAGS=''
LIBOBJS=''
LIBS=' -L/loc/pwdc/pdraper/alpha/build/lib'
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /loc/pwdc/pdraper/alpha/source/applications/missing --run makeinfo'
OBJEXT='o'
PACKAGE='generic'
[log in to unmask]
PACKAGE_NAME='generic'
PACKAGE_STRING='generic 1.1-2'
PACKAGE_TARNAME='generic'
PACKAGE_VERSION='1.1-2'
PACKAGE_VERSION_INTEGER='1001002'
PACKAGE_VERSION_MAJOR='1'
PACKAGE_VERSION_MINOR='1'
PACKAGE_VERSION_RELEASE='2'
PATH_SEPARATOR=':'
PAX='/sbin/pax'
PREDIST='#'
RANLIB=''
SET_MAKE=''
SHELL='/bin/ksh'
STAR2HTML=''
STARLINK='/loc/pwdc/pdraper/alpha/build'
STAR_CPPFLAGS=' -I/loc/pwdc/pdraper/alpha/build/include'
STAR_DEPENDENCIES_ATTRIBUTES=''
STAR_DEPENDENCIES_CHILDREN=''
STAR_DOCUMENTATION=''
STAR_FCFLAGS=' -I/loc/pwdc/pdraper/alpha/build/include'
STAR_FFLAGS=' -I/loc/pwdc/pdraper/alpha/build/include'
STAR_LATEX_DOCUMENTATION=''
STAR_LDFLAGS=''
STAR_MANIFEST_DIR='$(prefix)/manifests'
STRIP=''
TAR='/sbin/tar'
VERSION='1.1-2'
ac_ct_AR=''
ac_ct_CC='cc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_FC='f95'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='alphaev67-dec-osf5.1'
build_alias=''
build_cpu='alphaev67'
build_os='osf5.1'
build_vendor='dec'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/loc/pwdc/pdraper/alpha/source/applications/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
oldincludedir='/usr/include'
prefix='/loc/pwdc/pdraper/alpha/build'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stardocsdir='${prefix}/docs'
staretcdir='${prefix}/etc'
starexamplesdir='${prefix}/examples'
starfacsdir='${prefix}/help'
starhelpdir='${prefix}/help'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "generic"
#define PACKAGE_BUGREPORT "[log in to unmask]"
#define PACKAGE_NAME "generic"
#define PACKAGE_STRING "generic 1.1-2"
#define PACKAGE_TARNAME "generic"
#define PACKAGE_VERSION "1.1-2"
#define VERSION "1.1-2"
configure: exit 1
|