error in compilation of yambo 4.0.0

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
fchemam
Posts: 10
Joined: Sat May 03, 2014 3:14 pm

error in compilation of yambo 4.0.0

Post by fchemam » Fri May 01, 2015 4:32 pm

ive this error in the compilation of yambo 4.00


>>>[Making parallel]<<<
make[1]: Entering directory `/home/chemam/yambo/src/parallel'
PARALLEL_defaults.f90:53.83:

RALLEL_live_message('CPU structure provided for the '//trim(ENVIRONMENT)//' ENV
1
Error: Unterminated character constant beginning at (1)
PARALLEL_defaults.f90:57.81:

roduct(PARALLEL_CPU_used(:PARALLEL_n_structures_active))/=ncpu) call error('Imp
1
Error: Missing ')' in statement at or before (1)
make[1]: *** [PARALLEL_defaults.o] Error 1
make[1]: Leaving directory `/home/chemam/yambo/src/parallel'
make: *** [yambo] Error 2

[/color]
best regards
#
# [VER] 4.0.0 r.78
#
# - GENERAL CONFIGURATIONS -
#
# [SYS] linux@x86_64
# [SRC] /home/chemam/yambo
# [BIN] /home/chemam/yambo/bin
# [-] Double precision
# [X] Redundant compilation
# [-] Run-Time timing profile
#
# - PARALLEL SUPPORT -
#
# [-] MPI ()
# [-] OpenMP
# [-] Blue-Gene specific procedures
#
# - LIBRARIES (E=external library; I=internal library; -=not used;) -
#
# I/O
# [ I ] IOTK : -liotk (QE 5.0)
# [ - ] ETSF_IO:
# [ I ] NETCDF : -lnetcdff -lnetcdf (No large files support)
# [ - ] HDF5 :
#
# MATH
# [FFT] Goedecker Fast Fourier transform with 0 cache
# [ I ] BLAS : -lblas
# [ I ] LAPACK : -llapack
# [ - ] SCALAPACK:
#
# OTHER
# [ I ] LibXC : -lxc
# [ - ] MPI library:
#
# - COMPILERS, MAKE and EDITOR -
#
# [ CPP ] gcc -E -P -D_NETCDF_IO -D_FFTSG
# [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC]
# [ F90 ] gfortran -g -O3 -mtune=native
# [MPIF ]
# [ F77 ] gfortran -g -O3 -mtune=native
# [Cmain]
# [NoOpt] -g -O0 -mtune=native
#
# [ MAKE ] make
# [EDITOR] vi
#
Pr.Chemam Faical
Laboratoire de la Physique Appliquée et Théorique,
Université de Tebessa, Algérie

User avatar
Daniele Varsano
Posts: 4198
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: error in compilation of yambo 4.0.0

Post by Daniele Varsano » Fri May 01, 2015 9:23 pm

Dear Pr.Chemam Faical,
In order to inspect what is going on, can you please post your config.log file?
Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

andrea.ferretti
Posts: 214
Joined: Fri Jan 31, 2014 11:13 am

Re: error in compilation of yambo 4.0.0

Post by andrea.ferretti » Fri May 01, 2015 9:41 pm

Hi Chemam,

eventually I think I was able to reproduce the error you reported. It seems to be related to the use of gfortran, which complains because of some source lines that are too long.
The problem can be fixed (in my case) by changing lines 51-58 of src/parallel/PARALLEL_defaults.F to

Code: Select all

 call PARALLEL_live_message('CPU structure provided for the '//&
&     trim(ENVIRONMENT)//' ENVIRONMENT is incomplete. Switching to defaults')
 !
 call DEFAULT_action("define")
 !
 if (product(PARALLEL_CPU_used(:PARALLEL_n_structures_active))/=ncpu) &
&     call error('Impossible to define an appropriate parallel structure')
 !
take care

Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

fchemam
Posts: 10
Joined: Sat May 03, 2014 3:14 pm

Re: error in compilation of yambo 4.0.0

Post by fchemam » Sat May 02, 2015 7:15 am

Hi again
this my config.log in attached file
For the changement in the 51 to 58 isnt work its the error with parallel files
>>>[Making parallel]<<<
make[1]: Entering directory `/home/chemam/yambo/src/parallel'
PARALLEL_defaults.f90:61.3:

subroutine DEFAULT_action(what)
1
Error: Unclassifiable statement at (1)
PARALLEL_defaults.f90:63.25:

character(*) :: what
1
Error: Unexpected data declaration statement at (1)
PARALLEL_defaults.f90:180.3:

end subroutine
1
Error: Expecting END PROGRAM statement at (1)
PARALLEL_defaults.f90:67.15:

if (what/="check") cycle
1
Error: Symbol 'what' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:106.49:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:108.49:

CPU_structure(i_PAR_structure)%CPU(2)=assign_cpu(n_v_bands(2)-n_v_ba
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:110.49:

CPU_structure(i_PAR_structure)%CPU(3)=assign_cpu(K_range)
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:114.49:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:116.49:

CPU_structure(i_PAR_structure)%CPU(2)=assign_cpu(n_v_bands(2)-n_v_ba
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:118.49:

CPU_structure(i_PAR_structure)%CPU(3)=assign_cpu(K_range)
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:120.49:

CPU_structure(i_PAR_structure)%CPU(4)=assign_cpu(Q_range(2)-Q_range(
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:124.49:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_bands(2)-n_bands(
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:126.49:

CPU_structure(i_PAR_structure)%CPU(2)=assign_cpu(QP_range)
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
PARALLEL_defaults.f90:128.49:

CPU_structure(i_PAR_structure)%CPU(3)=assign_cpu(Q_range(2))
1
Error: Function 'assign_cpu' at (1) has no IMPLICIT type
PARALLEL_defaults.f90:106.59:

CPU_structure(i_PAR_structure)%CPU(1)=assign_cpu(n_c_bands(2)-n_c_ba
1
Error: Return type mismatch of function 'assign_cpu' at (1) (UNKNOWN/INTEGER(4))
Fatal Error: Error count reached limit of 25.
make[1]: *** [PARALLEL_defaults.o] Error 1
make[1]: Leaving directory `/home/chemam/yambo/src/parallel'
make: *** [yambo] Error 2


Best regards
You do not have the required permissions to view the files attached to this post.
Pr.Chemam Faical
Laboratoire de la Physique Appliquée et Théorique,
Université de Tebessa, Algérie

andrea.ferretti
Posts: 214
Joined: Fri Jan 31, 2014 11:13 am

Re: error in compilation of yambo 4.0.0

Post by andrea.ferretti » Tue May 05, 2015 10:26 am

Dear Chemam,

have you tried a make clean_all before recompiling ?
If the error persists, could you send the file
src/parallel/PARALLEL_defaults.F ?
it looks like some rubbish (hidden chars, bad line terminators etc) may have sneaked in...

Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Post Reply