[Pw_forum] QE 4.0.2: configure error

Sangamesh B forum.san at gmail.com
Tue Oct 21 08:54:22 CEST 2008


Hi,

     For more clarification, I'm summarising the problem in three scenarios.

Scenario 1:
    In this case, the env variables CC,F77 & MPIf90 were not set. The
configure works fine. It detects pathscale compilers. But during 'make
all', it fails.

Scenario 2:
    I switched to GCC, by setting CC, F77 and MPIF90 to GCC. This
fails in configure itself.

Scenario 3:
   I set the env variables - CC, F77 and MPIF90 to pathscale
binaries. This also fails in configure itself.

Below are the details for the three scenarios. The attachmets are
mentioned for each  scenario.

Thanks,
Sangamesh
Consultant - HPC
Locuz Enterprise Solutions,
Bangalore, India

----------------------------------------------------------------------------------------------

SCENARIO 1:

       No environment variables set.
       ./configure - completes successfully.
       make all - fails

Error during make all:

mpif90 -march=auto -O2 -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI
-D__PARA -I../include  -I./  -I../Modules  -I../iotk/src -I../PW
-I../PH -c iotk_stream.F90 -o iotk_stream.o
pathcc -E -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI -D__PARA
-I../include  iotk_str.f90 -o iotk_str.F90
pathcc WARNING: compiler not invoked with language of source file;
will compile with f90 but link with cc
..
....
pathf95-83 pathf90: ERROR IOTK_TOOL_MAN_X, File = iotk_tool.F90, Line
= 475, Column = 1
 This token is missing the " delimiter.
^
pathf95-83 pathf90: ERROR IOTK_TOOL_MAN_X, File = iotk_tool.F90, Line
= 475, Column = 1
 This token is missing the " delimiter.
.......
pathf95-505 pathf90: ERROR IOTK_TOOL_MAN_X, File = iotk_tool.F90, Line
= 475, Column = 1
 Continuation of character context in free source form requires an
"&" as the first nonblank character of the next line.
......
"It also writes informations about the version of the file format
(file_version)."
pathf95-214 pathf90: LIMIT IOTK_TOOL_MAN_X, File = iotk_tool.F90, Line = 475
 The maximum number, 100, of fatal errors has been exceeded.
make[2]: *** [iotk_tool.o] Error 2
make[2]: Leaving directory `/opt/espresso-4.0.2/iotk/src'
make[1]: *** [lib+util] Error 2
make[1]: Leaving directory `/opt/espresso-4.0.2/iotk'
make: *** [libiotk] Error 2

Attachments for this scenario:

make.sys_no-vars-set
make_terminal_out1
config.log_no-vars-set


SCENARIO 2: Setting CC, F90, MPIf90 to GCC

# gcc --version
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# gfortran --version
GNU Fortran 95 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

# /opt/mpich2GNU/bin/mpif90 -show
gfortran -I/opt/mpich2GNU/include -I/opt/mpich2GNU/include
-L/opt/mpich2GNU/lib -lmpichf90 -lmpichf90 -lmpich -lpthread -lrt

# export CC=/usr/bin/gcc
# export CXX=/usr/bin/g++
# export F77=/usr/bin/gfortran
# export MPIF90=/opt/mpich2GNU/bin/mpif90

# ./configure | tee config_GCC_output
checking build system type... x86_64-unknown-linux-gnu
checking architecture... amd64
checking for Fortran 77 compiler default output file name... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether /usr/bin/gfortran accepts -g... yes
checking for /opt/mpich2GNU/bin/mpif90... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking version of ... unknown, assuming gfortran
configure: WARNING: serial/parallel compiler mismatch detected
configure: WARNING: parallel compiler  uses gfortran, but serial
compiler is /usr/bin/gfortran
setting F90... /usr/bin/gfortran
setting MPIF90...
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ANSI C... none needed
setting CC... /usr/bin/gcc
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 8
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for /usr/bin/gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
setting F77...
using F90... /usr/bin/gfortran
setting FFLAGS... -O
setting F90FLAGS... $(FFLAGS)
setting FFLAGS_NOOPT... -O0
setting CFLAGS... -O3
setting CPP... cpp
setting CPPFLAGS... -P -traditional
setting LD...
setting LDFLAGS...
setting AR... ar
setting ARFLAGS... ruv
setting ARFLAGS_DYNAMIC...ruv
checking whether make sets $(MAKE)... yes
checking whether Fortran files must be preprocessed... yes
checking how to get verbose linking output from ... configure:
WARNING: compilation failed

checking for Fortran libraries of ...
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... configure: error: cannot
compile a simple Fortran program
See `config.log' for more details.

Attachmets:

config.log_GCC
make.sys_GCC

I observed from make.sys file, mpif90 doesn't have complete path.


SCENARIO 3: SETTING CC, F77, MPIF90 to pathscale

# export CC=/opt/pathscale/bin/pathcc
# export F77=/opt/pathscale/bin/pathf90
# export MPIF90=/opt/mpich2PS/bin/mpif90
# export CXX=/opt/pathscale/bin/pathCC

# pathcc --version
PathScale EKOPath(TM) Compiler Suite: Version 2.4
Built on: 2006-03-24 14:54:44 -0800
Thread model: posix
GNU gcc version 3.3.1 (PathScale 2.4 driver)

Copyright 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
Copyright 2002, 2003, 2004, 2005, 2006 PathScale, Inc.  All Rights Reserved.
See complete copyright, patent and legal notices in the
/opt/pathscale/share/doc/pathscale-compilers-2.4/LEGAL.pdf file.

# pathf90 --version
PathScale EKOPath(TM) Compiler Suite: Version 2.4
Built on: 2006-03-24 14:54:44 -0800
Thread model: posix
GNU gcc version 3.3.1 (PathScale 2.4 driver)

Copyright 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
Copyright 2002, 2003, 2004, 2005, 2006 PathScale, Inc.  All Rights Reserved.
See complete copyright, patent and legal notices in the
/opt/pathscale/share/doc/pathscale-compilers-2.4/LEGAL.pdf file.

]# ./configure | tee config_out_psc
checking build system type... x86_64-unknown-linux-gnu
checking architecture... amd64
checking for Fortran 77 compiler default output file name... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether /opt/pathscale/bin/pathf90 accepts -g... yes
checking for /opt/mpich2PS/bin/mpif90... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking version of ... unknown, assuming gfortran
configure: WARNING: serial/parallel compiler mismatch detected
configure: WARNING: parallel compiler  uses gfortran, but serial
compiler is /opt/pathscale/bin/pathf90
setting F90... /opt/pathscale/bin/pathf90
setting MPIF90...
checking whether we are using the GNU C compiler... yes
checking whether /opt/pathscale/bin/pathcc accepts -g... yes
checking for /opt/pathscale/bin/pathcc option to accept ANSI C... none needed
setting CC... /opt/pathscale/bin/pathcc
checking how to run the C preprocessor... /opt/pathscale/bin/pathcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 8
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for /opt/pathscale/bin/pathf90... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
setting F77...
using F90... /opt/pathscale/bin/pathf90
setting FFLAGS... -O
setting F90FLAGS... $(FFLAGS)
setting FFLAGS_NOOPT... -O0
setting CFLAGS... -O3
setting CPP... cpp
setting CPPFLAGS... -P -traditional
setting LD...
setting LDFLAGS...
setting AR... ar
setting ARFLAGS... ruv
setting ARFLAGS_DYNAMIC...ruv
checking whether make sets $(MAKE)... yes
checking whether Fortran files must be preprocessed... yes
checking how to get verbose linking output from ... configure:
WARNING: compilation failed

checking for Fortran libraries of ...
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... configure: error: cannot
compile a simple Fortran program
See `config.log' for more details.

Attachmets:
config.log_PSC
make.sys_PSC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qe_402_logfiles.tar.gz
Type: application/x-gzip
Size: 17923 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20081021/d877b21c/attachment.bin>


More information about the users mailing list