qe-6.4.1: compilation of plotband.f90 fails on CentOS6
FROM centos:6.10
#sudo docker build -t el6-plotband-failure .
#GNU Fortran (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
#Copyright (C) 2010 Free Software Foundation, Inc.
#
#plotband.f90:58.16:
#
# CHARACTER(len=:), ALLOCATABLE :: line
# 1
#Error: Syntax error in CHARACTER declaration at (1)
#plotband.f90:796.16:
#
# CHARACTER(len=:), ALLOCATABLE, INTENT(out) :: inline
# 1
#Error: Syntax error in CHARACTER declaration at (1)
#plotband.f90:797.16:
#
# CHARACTER(len=:), ALLOCATABLE :: tmpline
# 1
#Error: Syntax error in CHARACTER declaration at (1)
#plotband.f90:788.33:
#
#SUBROUTINE readline(aunit, inline)
# 1
#Error: Symbol 'inline' at (1) has no IMPLICIT type
#plotband.f90:172.25:
#
# CALL readline(5,line)
# 1
#Error: Symbol 'line' at (1) has no IMPLICIT type
#plotband.f90:807.15:
#
# tmpline = instr(1:size)
# 1
#Error: Symbol 'tmpline' at (1) has no IMPLICIT type
#The command '/bin/sh -c gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c plotband.f90' returned a non-zero code: 1
RUN yum install -y gcc-gfortran wget && yum clean all
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/PP/src/plotband.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/Modules/parser.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/Modules/io_global.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/Modules/kind.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/UtilXlib/mp.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/UtilXlib/util_param.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/UtilXlib/parallel_include.f90
RUN wget https://raw.githubusercontent.com/QEF/q-e/4132a64778b91c4b090d0213938e00d7b2b64b10/Modules/mp_images.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c io_global.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c kind.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c parallel_include.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c util_param.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c mp.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c mp_images.f90
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c parser.f90
RUN gfortran --version
RUN gfortran -O3 -g -x f95-cpp-input -fPIC -I./ -c plotband.f90
CMD ["/bin/bash"]