conda-forge / ctng-compilers-feedstock

A conda-smithy repository for ctng-compilers.
BSD 3-Clause "New" or "Revised" License
12 stars 26 forks source link

Fortran compiler lacks ISO_Fortran_binding.h #122

Closed aradi closed 8 months ago

aradi commented 10 months ago

Solution to issue cannot be found in the documentation.

Issue

When installing a Fortran compiler (either via the fortran-compiler package as user or via {{ compiler('fortran') }} in a recipe), the C-include file include/ISO_Fortran_binding.h is not installed. Missing this file prevents the compilation of modern Fortran-C interfaces. It also prevents autotools from recognizing the Fortran compiler (gfortran) being F2008-compliant. For example, this seems to be the reason, why MPICH does not build the mpi_f08 module (conda-forge/mpich-feedstock#84) preventing the usage of the modern MPI-interface in Fortran programs.

If I build gcc myself, the include file gets installed. (I use the --enable-languages=c,c++,fortran option).

Installed packages

_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
binutils                  2.40                 hdd6e379_0    conda-forge
binutils_impl_linux-64    2.40                 hf600244_0    conda-forge
binutils_linux-64         2.40                 hbdbef99_2    conda-forge
c-compiler                1.6.0                hd590300_0    conda-forge
fortran-compiler          1.6.0                heb67821_0    conda-forge
gcc                       12.3.0               h8d2909c_2    conda-forge
gcc_impl_linux-64         12.3.0               he2b93b0_3    conda-forge
gcc_linux-64              12.3.0               h76fc315_2    conda-forge
gfortran                  12.3.0               h499e0f7_2    conda-forge
gfortran_impl_linux-64    12.3.0               hfcedea8_3    conda-forge
gfortran_linux-64         12.3.0               h7fe76b4_2    conda-forge
kernel-headers_linux-64   2.6.32              he073ed8_16    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libgcc-devel_linux-64     12.3.0             h8bca6fd_103    conda-forge
libgcc-ng                 13.2.0               h807b86a_3    conda-forge
libgfortran5              13.2.0               ha4646dd_3    conda-forge
libgomp                   13.2.0               h807b86a_3    conda-forge
libsanitizer              12.3.0               h0f45ef3_3    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_3    conda-forge
sysroot_linux-64          2.12                he073ed8_16    conda-forge

Environment info

active environment : fortran-compiler
    active env location : /home/aradi/opt/miniconda3/envs/fortran-compiler
            shell level : 2
       user config file : /home/aradi/.condarc
 populated config files : /home/aradi/.condarc
          conda version : 23.7.4
    conda-build version : not installed
         python version : 3.9.16.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.35=0
                          __linux=5.18.19=0
                          __unix=0=0
       base environment : /home/aradi/opt/miniconda3  (writable)
      conda av data dir : /home/aradi/opt/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/aradi/opt/miniconda3/pkgs
                          /home/aradi/.conda/pkgs
       envs directories : /home/aradi/opt/miniconda3/envs
                          /home/aradi/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.4 requests/2.31.0 CPython/3.9.16 Linux/5.18.19-051819-generic ubuntu/22.04.3 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
aradi commented 8 months ago

Just a ping for this bug report. If this is not the right place to report it, can you please direct me to the proper site? It is really annoying, that one can not use modern Fortran features with the Conda compilers due to this installation bug.