<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Preprocessing flags -P for ifort 19.0.5 causes the configure step to fail in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessing-flags-P-for-ifort-19-0-5-causes-the-configure-step/m-p/1202732#M151410</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am installing a program called Octopus and having an issue with, apparently, preprocessing of Fortran code. The Fortran compiler I am using is mpiifort based on intel 19.0.5.281 compiler version. During configure, I set, among others&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FC=/path/to/mpiifort  FCFLAGS="-O3"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and during the subsequent make I got the following warning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/usr/local/compilers/Intel/parallel_studio_xe_2019.5/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin/mpiifort -O3 -I ../../src/basic -I ../../src/math -I ../../src/species -I ../../src/ions -I ../../src/grid -I ../../src/poisson -I ../../src/frozen -I ../../src/basis_set -I ../../src/states -I ../../src/system -I ../../src/hamiltonian -I ../../src/scf -I ../../src/td -I ../../src/opt_control -I ../../src/sternheimer -I ../../external_libs/bpdn -I ../../external_libs/dftd3 -I ../../external_libs/spglib-1.9.9/src/ -I /home/myname/bin/libxc-4.3.4/intel-19.0.5/include   -I/home/myname/bin/fftw-3.3.8/intel-19.0.5_impi-2019.5.281/include  -c  -o gauss_legendre.o gauss_legendre_oct.f90
&amp;lt;command-line&amp;gt;(1): warning #5117: Bad # preprocessor line
# 1 "/usr/include/stdc-predef.h" 1 3 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it looks like it's due to the compiler not preprocessing those #lines before compilation. Therefore I try to repeat the configure process by setting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FCFLAGS="-O3 -fpp"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then make, and I got another similarly looking warnings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/usr/local/compilers/Intel/parallel_studio_xe_2019.5/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin/mpiifort -O3 -fpp -I ../../src/basic -I ../../src/math -I ../../src/species -I ../../src/ions -I ../../src/grid -I ../../src/poisson -I ../../src/frozen -I ../../src/basis_set -I ../../src/states -I ../../src/system -I ../../src/hamiltonian -I ../../src/scf -I ../../src/td -I ../../src/opt_control -I ../../src/sternheimer -I ../../external_libs/bpdn -I ../../external_libs/dftd3 -I ../../external_libs/spglib-1.9.9/src/ -I /home/myname/bin/libxc-4.3.4/intel-19.0.5/include   -I/home/myname/bin/fftw-3.3.8/intel-19.0.5_impi-2019.5.281/include  -c  -o io.o io_oct.f90
/usr/include/stdc-predef.h(1): warning #5117: Bad # preprocessor line
# 1 "&amp;lt;command-line&amp;gt;" 2 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The inclusion of preprocessing flag -fpp seems to do something but does not entirely solve the issue.&lt;/P&gt;
&lt;P&gt;Then finally, I used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FCFLAGS="-O3 -fpp -P"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this time the configure step failed complaining that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how come? -P flag is a valid flag for ifort, and how to solve this issue in general. For your information, I have successfully installed the same program previously without any preprocessing flags using ifort 18.0.0.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Aug 2020 16:40:19 GMT</pubDate>
    <dc:creator>efnacy</dc:creator>
    <dc:date>2020-08-22T16:40:19Z</dc:date>
    <item>
      <title>Preprocessing flags -P for ifort 19.0.5 causes the configure step to fail</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessing-flags-P-for-ifort-19-0-5-causes-the-configure-step/m-p/1202732#M151410</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am installing a program called Octopus and having an issue with, apparently, preprocessing of Fortran code. The Fortran compiler I am using is mpiifort based on intel 19.0.5.281 compiler version. During configure, I set, among others&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FC=/path/to/mpiifort  FCFLAGS="-O3"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and during the subsequent make I got the following warning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/usr/local/compilers/Intel/parallel_studio_xe_2019.5/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin/mpiifort -O3 -I ../../src/basic -I ../../src/math -I ../../src/species -I ../../src/ions -I ../../src/grid -I ../../src/poisson -I ../../src/frozen -I ../../src/basis_set -I ../../src/states -I ../../src/system -I ../../src/hamiltonian -I ../../src/scf -I ../../src/td -I ../../src/opt_control -I ../../src/sternheimer -I ../../external_libs/bpdn -I ../../external_libs/dftd3 -I ../../external_libs/spglib-1.9.9/src/ -I /home/myname/bin/libxc-4.3.4/intel-19.0.5/include   -I/home/myname/bin/fftw-3.3.8/intel-19.0.5_impi-2019.5.281/include  -c  -o gauss_legendre.o gauss_legendre_oct.f90
&amp;lt;command-line&amp;gt;(1): warning #5117: Bad # preprocessor line
# 1 "/usr/include/stdc-predef.h" 1 3 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it looks like it's due to the compiler not preprocessing those #lines before compilation. Therefore I try to repeat the configure process by setting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FCFLAGS="-O3 -fpp"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then make, and I got another similarly looking warnings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/usr/local/compilers/Intel/parallel_studio_xe_2019.5/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin/mpiifort -O3 -fpp -I ../../src/basic -I ../../src/math -I ../../src/species -I ../../src/ions -I ../../src/grid -I ../../src/poisson -I ../../src/frozen -I ../../src/basis_set -I ../../src/states -I ../../src/system -I ../../src/hamiltonian -I ../../src/scf -I ../../src/td -I ../../src/opt_control -I ../../src/sternheimer -I ../../external_libs/bpdn -I ../../external_libs/dftd3 -I ../../external_libs/spglib-1.9.9/src/ -I /home/myname/bin/libxc-4.3.4/intel-19.0.5/include   -I/home/myname/bin/fftw-3.3.8/intel-19.0.5_impi-2019.5.281/include  -c  -o io.o io_oct.f90
/usr/include/stdc-predef.h(1): warning #5117: Bad # preprocessor line
# 1 "&amp;lt;command-line&amp;gt;" 2 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The inclusion of preprocessing flag -fpp seems to do something but does not entirely solve the issue.&lt;/P&gt;
&lt;P&gt;Then finally, I used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FCFLAGS="-O3 -fpp -P"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this time the configure step failed complaining that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how come? -P flag is a valid flag for ifort, and how to solve this issue in general. For your information, I have successfully installed the same program previously without any preprocessing flags using ifort 18.0.0.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 16:40:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessing-flags-P-for-ifort-19-0-5-causes-the-configure-step/m-p/1202732#M151410</guid>
      <dc:creator>efnacy</dc:creator>
      <dc:date>2020-08-22T16:40:19Z</dc:date>
    </item>
  </channel>
</rss>

