Skip to content

[package] gfortran/10.2: Missing files causing execution error #4696

Closed
@uilianries

Description

@uilianries

First appearance on #4681

There are some missing files in gfortran which are necessary its execution.

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: gfortran/10.2
  • Operating System+version: Linux Ubuntu 18.04
  • Compiler+version: GCC 10
  • Docker image: conanio/gcc10
  • Conan version: conan 1.33.1
  • Python version: Python 3.8.2

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

Put your profile output here

Steps to reproduce (Include if Applicable)

  • Add Fortran as project in your CMake file:

    add_project(foobar C++ Fortran)

  • Add gfortran/10.2 as requirement

  • Run any Conan command which invokes build step.

Logs (Include/Attach if Applicable)

Click to expand log
himalaya/4.1.1: 
gfortran: fatal error: cannot execute ‘cc1’: execvp: No such file or directory
compilation terminated.
CMake Error at /opt/pyenv/versions/3.7.5/lib/python3.7/site-packages/cmake/data/share/cmake-3.18/Modules/CMakeTestFortranCompiler.cmake:51 (message):
  The Fortran compiler

    "/home/conan/w/BuildSingleReference/.conan/data/gfortran/10.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/gfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/conan/w/BuildSingleReference/.conan/data/himalaya/4.1.1/_/_/build/b08e4f558500f42873bab1a4177938467ada1451/build_subfolder/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_1476c/fast && /usr/bin/make  -f CMakeFiles/cmTC_1476c.dir/build.make CMakeFiles/cmTC_1476c.dir/build
    make[1]: Entering directory '/home/conan/w/BuildSingleReference/.conan/data/himalaya/4.1.1/_/_/build/b08e4f558500f42873bab1a4177938467ada1451/build_subfolder/CMakeFiles/CMakeTmp'
    Building Fortran object CMakeFiles/cmTC_1476c.dir/testFortranCompiler.f.o
    /home/conan/w/BuildSingleReference/.conan/data/gfortran/10.2/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/gfortran    -c /home/conan/w/BuildSingleReference/.conan/data/himalaya/4.1.1/_/_/build/b08e4f558500f42873bab1a4177938467ada1451/build_subfolder/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_1476c.dir/testFortranCompiler.f.o
    gfortran: fatal error: cannot execute ‘f951’: execvp: No such file or directory
    compilation terminated.
    make[1]: *** [CMakeFiles/cmTC_1476c.dir/build.make:85: CMakeFiles/cmTC_1476c.dir/testFortranCompiler.f.o] Error 1
    make[1]: Leaving directory '/home/conan/w/BuildSingleReference/.conan/data/himalaya/4.1.1/_/_/build/b08e4f558500f42873bab1a4177938467ada1451/build_subfolder/CMakeFiles/CMakeTmp'
    make: *** [Makefile:140: cmTC_1476c/fast] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions