# get\_runtime\_dependencies unresolved libgfortran.so

**URL:** <https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131>\
**Category:** Code\
**Created:** [April 13, 2021, 9:15am UTC](https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131 "2021-04-13T09:15:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grimgort](https://discourse.cmake.org/user_avatar/discourse.cmake.org/grimgort/32/1002_2.png) [@grimgort](https://discourse.cmake.org/u/grimgort)\
**Post date:** [April 13, 2021, 9:15am UTC](https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131/1 "2021-04-13T09:15:00Z")

</div>

I use the following code to install the depences of the dynamic libraries, but libgfortran remains unresolved although it seems to be well detected by the system.

 ![image](https://discourse.cmake.org/uploads/default/original/2X/2/2b1fe9e9eb1b934ca9475fa57738206feed660a4.png)

 ![image](https://discourse.cmake.org/uploads/default/original/2X/b/ba27335dffe9d34b3d0c6b5e629e86ebce24e61c.png)  
 ![image](https://discourse.cmake.org/uploads/default/original/2X/9/924320a6fdb38cef1c96a5084a962f5635f56980.png)

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [April 13, 2021, 11:17am UTC](https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131/2 "2021-04-13T11:17:00Z")

</div>

That is…interesting. Is `libgfortran.so.5` an actual ELF binary or is it a linker script? `file` should be able to tell the difference, but if not, peeking at it with `less` should help.

Cc: @kyle.edwards

---

<div class="post-metadata">

**Author:** ![grimgort](https://discourse.cmake.org/user_avatar/discourse.cmake.org/grimgort/32/1002_2.png) [@grimgort](https://discourse.cmake.org/u/grimgort)\
**Post date:** [April 14, 2021, 12:33pm UTC](https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131/3 "2021-04-14T12:33:27Z")

</div>

![image](https://discourse.cmake.org/uploads/default/original/2X/7/7ccb00bdd5e7d4b8b0d0c0f82fa9f145c34d2fa2.png)

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [April 14, 2021, 1:50pm UTC](https://discourse.cmake.org/t/get-runtime-dependencies-unresolved-libgfortran-so/3131/4 "2021-04-14T13:50:27Z")

</div>

Hrm. That is quite strange. I don’t know if there are any verbose logs available from `file(GRD)` or not. All I can recommend is either to provide a Docker image which reproduces the issue so that we can debug or to trace the execution of CMake to determine why it misses this library.
