<p dir="ltr"><br>
On Nov 20, 2014 2:41 AM, "PRATIK DAS" <<a href="mailto:pratikdas63@gmail.com">pratikdas63@gmail.com</a>> wrote:<br>
><br>
> Dear everybody,<br>
>  I want to compile QHA package in Quantum espresso. I have only gfortran installed. So I modified the make files and replace ifort by gfortran. Now when I ran the Compile script, it is giving me the following error. Can anyone help me out of this problem. Actually I'm a newbie in linux.</p>
<p dir="ltr">The first issue can be solved by deleting the -static flag in the makefile. The second issue requires correcting the fortan code that is violating the fortran standard as indicated by the error messages. </p>
<p dir="ltr">Axel.<br></p>
<p dir="ltr">><br>
> Thanking you in advance.<br>
><br>
> Pratik Kumar Das<br>
> JRF,<br>
> Jadavpur University<br>
> Kolkata-700032<br>
> INDIA<br>
><br>
> [pratik@localhost QHA]$ ./Compile <br>
> gfortran -O3  -c  tetra.f<br>
> gfortran -O3  -c  k_brillouin.f<br>
> gfortran -O3  -c  generate_tetra.f<br>
> gfortran -O3  -c  det3.f<br>
> gfortran -O3  -c  det4.f<br>
> gfortran -static -o tetra.x tetra.o k_brillouin.o generate_tetra.o  det3.o det4.o   <br>
> /usr/bin/ld: cannot find -lgfortran<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lquadmath<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lc<br>
> collect2: error: ld returned 1 exit status<br>
> make: *** [tetra] Error 1<br>
> gfortran -O3   -c  Debye.f90<br>
> Debye.f90:144.8:<br>
><br>
>      do T = T_low_start, T_low, T_low_delta<br>
>         1<br>
> Warning: Deleted feature: Loop variable at (1) must be integer<br>
> Debye.f90:144.11:<br>
><br>
>      do T = T_low_start, T_low, T_low_delta<br>
>            1<br>
> Warning: Deleted feature: Start expression in DO loop at (1) must be integer<br>
> Debye.f90:144.24:<br>
><br>
>      do T = T_low_start, T_low, T_low_delta<br>
>                         1<br>
> Warning: Deleted feature: End expression in DO loop at (1) must be integer<br>
> Debye.f90:144.31:<br>
><br>
>      do T = T_low_start, T_low, T_low_delta<br>
>                                1<br>
> Warning: Deleted feature: Step expression in DO loop at (1) must be integer<br>
> Debye.f90:177.4:<br>
><br>
>  do T = T_low+5, T_high, T_high_delta<br>
>     1<br>
> Warning: Deleted feature: Loop variable at (1) must be integer<br>
> Debye.f90:177.7:<br>
><br>
>  do T = T_low+5, T_high, T_high_delta<br>
>        1<br>
> Warning: Deleted feature: Start expression in DO loop at (1) must be integer<br>
> Debye.f90:177.16:<br>
><br>
>  do T = T_low+5, T_high, T_high_delta<br>
>                 1<br>
> Warning: Deleted feature: End expression in DO loop at (1) must be integer<br>
> Debye.f90:177.24:<br>
><br>
>  do T = T_low+5, T_high, T_high_delta<br>
>                         1<br>
> Warning: Deleted feature: Step expression in DO loop at (1) must be integer<br>
> gfortran -O3  -c  Debye_T.f<br>
> gfortran -O3  -c  debye3.f<br>
> gfortran -O3  -c  cheval.f<br>
> gfortran -O3  -c  d1mach.f<br>
> gfortran -static -o Debye.x Debye.o Debye_T.o debye3.o cheval.o d1mach.o <br>
> /usr/bin/ld: cannot find -lgfortran<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lquadmath<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lc<br>
> collect2: error: ld returned 1 exit status<br>
> make: *** [Debye_x] Error 1<br>
> gfortran -FR -c  Mean_square_displacement.f90<br>
> Mean_square_displacement.f90:162.7:<br>
><br>
>     do T=T_start,T_end,T_delta<br>
>        1<br>
> Warning: Deleted feature: Loop variable at (1) must be integer<br>
> gfortran -static -o Mean_square_displacement.x Mean_square_displacement.o   <br>
> /usr/bin/ld: cannot find -lgfortran<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lquadmath<br>
> /usr/bin/ld: cannot find -lm<br>
> /usr/bin/ld: cannot find -lc<br>
> collect2: error: ld returned 1 exit status<br>
> make: *** [MSD] Error 1<br>
> ln: failed to create symbolic link ‘tetra.x’: File exists<br>
> ln: failed to create symbolic link ‘phonon_dos.x’: File exists<br>
> ln: failed to create symbolic link ‘Debye.x’: File exists<br>
> ln: failed to create symbolic link ‘Atom_projected_properties.x’: File exists<br>
> ln: failed to create symbolic link ‘F_QHA.x’: File exists<br>
> ln: failed to create symbolic link ‘Ghost_DOS.x’: File exists<br>
> ln: failed to create symbolic link ‘Partial_phonon_DOS.x’: File exists<br>
> ln: failed to create symbolic link ‘Mean_square_displacement.x’: File exists<br>
> ln: failed to create symbolic link ‘atom_info.x’: File exists<br>
><br>
><br>
> _______________________________________________<br>
> Pw_forum mailing list<br>
> <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
> <a href="http://pwscf.org/mailman/listinfo/pw_forum">http://pwscf.org/mailman/listinfo/pw_forum</a><br>
</p>