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.
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.
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.