<p>
        thanks for all the quick replies!
</p>
<p>
        I have created a github repo for my project.
</p>
<p>
        https://github.com/algorithmx/QE/
</p>
<p>
        I am trying to break QE into small modules so that I can use Julia "ccall()" to wrap up some functions.
</p>
<p>
        ( As you can see from the .jl files (Julia source code) in the repo, I start with the kpoint generation. )
</p>
<p>
        What I wanted to do is to compile several relevant files into a minimal dynamical library "QE_minimal.so", and then wrap up the functions.
</p>
<p>
        ************************************************************
</p>
<p>
        To Lorenzo :
</p>
<p>
        The "Makefile" I use to compile is
</p>
<p>
        https://github.com/algorithmx/QE/blob/master/minimal/src/Makefile
</p>
<p>
        (you need to download the folder "1/" from the repo and modify "Makefile" by changing the workspace folder and the QE source code path in the copy section)
</p>
<p>
        and the output of command `bash Makefile` on my laptop is
</p>
<p>
        <br>
</p>
<p>
        (base) xxx@XXXX:~/jianguoyun/Workspace/QE/minimal/src$ bash Makefile <br>
|----------------------  gcc --version  ----------------------<br>
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0<br>
Copyright (C) 2018 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
<br>
|----------------------  gfortran --version  -----------------<br>
GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br>
Copyright (C) 2017 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
<br>
|----------------------  mpif90 --version  -------------------<br>
GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br>
Copyright (C) 2017 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
<br>
|----------------------  mpif90 -showme  ---------------------<br>
gfortran -I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread -I/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,--enable-new-dtags -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi<br>
|----------------------  rm *.o  *.mod *.so *.f90  ------------<br>
REMOVING ALL *.f90 SOURCE CODES !!!<br>
rm: remove 73 arguments? y<br>
|----------------------  copying files  ...  -----------------<br>
|----------------------  compile -----------------------------<br>
f951: Fatal Error: Reading module ‘input_parameters’ at line 1703 column 5: Unexpected EOF<br>
compilation terminated.<br>
(base) xxx@XXXX:~/jianguoyun/Workspace/QE/minimal/src$
</p>
<p>
        <br>
</p>
<p>
        *******************************************************
</p>
<p>
        <br>
</p>
<p>
        To Paolo:
</p>
<p>
        Yes I am also confused ... I compile with QE version 6.6.
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<p>
        <br>
</p>
<br>
<br>
<span>--<br>
-------------------
连云龙  |    Yunlong LIAN
ORCID : https://orcid.org/0000-0002-9474-2181
中国散裂中子源 | CSNS
中子科学部 | Dongguan Neutron Science Center
中国广东省东莞市  |    Dongguan, Guangdong, P. R. China</span><br>
<blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0;">
        -----Original Messages-----<br>
<b>From:</b><span id="rc_from">pdelugas@sissa.it</span><br>
<b>Sent Time:</b><span id="rc_senttime">2020-10-12 19:46:20 (Monday)</span><br>
<b>To:</b> "Quantum ESPRESSO users Forum" <users@lists.quantum-espresso.org><br>
<b>Cc:</b> <br>
<b>Subject:</b> Re: [QE-users] Is "block" a FORTRAN keyword? I see funny color in line qe-6.6/Modules/input_parameters.f90:656 when I open the file with VSCode or gedit<br>
<br>
        <div dir="auto">
                It should be something related to reading of the .mod file I guess. The error  says "reading module". Try to touch input_parameters.f90 and restart the compilation. 
        </div>
        <div class="gmail_extra">
                <br>
                <div class="gmail_quote">
                        Il 12 ott 2020 1:19 PM, Paolo Giannozzi <p.giannozzi@gmail.com> ha scritto:<br type="attribution">
                        <blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
                                <div dir="ltr">
                                        <div dir="ltr">
                                                On Mon, Oct 12, 2020 at 11:09 AM 连云龙 <<a href="mailto:lianyl@ihep.ac.cn">lianyl@ihep.ac.cn</a>> wrote:
                                        </div>
                                        <div dir="ltr">
                                                <br>
                                        </div>
                                        <div class="elided-text">
                                                <blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid #CCCCCC;padding-left:1ex;">
                                                        When I open the source file input_parameters.f90 with VSCode or gedit, I saw a highlighted word "block" in line 656.
                                                </blockquote>
                                                <div>
                                                        <br>
                                                </div>
                                                <div>
                                                        "block" is a bad choice for a variable name (it is also a fortran statement) but I don't think it is related to your compilation problem. If it were, you would get a different error message.<br>
                                                </div>
                                                <div>
                                                        <br>
                                                </div>
                                                <div>
                                                        The current (development version) file input_parameters.f90 has less than 1662 lines, by the way, so I don't see how it can fail at line 1703.<br>
                                                </div>
                                                <div>
                                                        <br>
                                                </div>
Paolo<br>
                                        </div>
-- <br>
                                        <div dir="ltr">
                                                <div dir="ltr">
                                                        <div>
                                                                <div dir="ltr">
                                                                        <div>
                                                                                Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone +39-0432-558216, fax +39-0432-558222<br>
<br>
                                                                        </div>
                                                                </div>
                                                        </div>
                                                </div>
                                        </div>
                                </div>
                        </blockquote>
                </div>
<br>
        </div>
</blockquote>