Page 1 of 1

Compiling error for v-3.2.4

Posted: Tue Aug 30, 2011 6:54 am
by sdwang
Dear developers:
Recently I move to a new system and I have to install the yambo again.
I have something wrong when I configure it , it appears:
..
configure: WIDESETUP: using build_os="linux"
configure: WIDESETUP: using F90SUFFIX=".f90"
configure: WIDESETUP: using AR="ar"
configure: WIDESETUP: using AR_FLAGS="-ru"
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files

and my configure process is:./configure FC=/opt/intel/Compiler/11.1/059/bin/intel64ifort --enable-msgs-comps F77=/opt/intel/Compiler/11.1/059/bin/intel64/ifort CC=/opt/intel/Compiler/11.1/059/bin/intel64/icc
In attachment is config.log
Thank you for your kindly help!

1) the compiler ( intel 11.1)
2) compiling in parallel

Re: Compiling error for v-3.2.4

Posted: Tue Aug 30, 2011 10:18 am
by claudio
Dear Shudong Wang

you made and error in your configuration line

instead of: FC=/opt/intel/Compiler/11.1/059/bin/intel64ifort

yuo should put: FC=/opt/intel/Compiler/11.1/059/bin/intel64/ifort

claudio

Re: Compiling error for v-3.2.4

Posted: Tue Aug 30, 2011 12:02 pm
by sdwang
I figure it ,and cinfigure is OK, but MPI is missing:
[ ] Double precision
# [X] Redundant compilation
# [ ] MPI
# [X] PW (4.0) support
# [ ] ETSF I/O support
# [ ] SCALAPACK
# [ ] LibXC
# [ ] NETCDF/HDF5/Large Files
# [XX ] Built-in BLAS/LAPACK/LOCAL
#
# [ CPP ] gcc -E -P
# [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC]
# [ F90 ] /opt/intel/Compiler/11.1/059/bin/intel64/ifort -assume bscc -O3 -ip -xHost
# [MPIF ]
# [ F77 ] /opt/intel/Compiler/11.1/059/bin/intel64/ifort -assume bscc -O3 -ip -xHost
# [Cmain] -nofor_main
# [NoOpt] -assume bscc -O0 -xHost
#
# [ MAKE ] make
# [EDITOR] vim
./configure FC=/opt/intel/Compiler/11.1/059/bin/intel64/ifort --enable-msgs-comps F77=/opt/intel/Compiler/11.1/059/bin/intel64/ifort --with-iotk=/vol-th/home/jlwang/workspace/sdwang/espresso-4.1.2/iotk --with-p2y=4.0

Re: Compiling error for v-3.2.4

Posted: Tue Aug 30, 2011 2:11 pm
by myrta gruning
Dear Shudong

apparently yambo finds the mpi fortran compiler, bu not the mpi C compiler. In fact it found the /usr/local/mpi/bin/mpicc that need icc that it is not there.

Code: Select all

configure:9692: checking for mpicc
configure:9708: found /usr/local/mpi/bin/mpicc
configure:9719: result: mpicc
configure:9862: checking for a working mpi.h
configure:9891: mpicc -c -g -O2 -D_C_US -D_FORTRAN_US  conftest.c >&5
/usr/local/mpi/bin/mpicc: line 251: icc: command not found
You need to find out which is the correct mpi C compiler on your machine.

Cheers,
m