[oi-dev] Error when linking to libgfortran.so

Jim Klimov jimklimov at cos.ru
Sun Jul 21 18:11:13 UTC 2013


On 2013-07-21 19:22, Aurélien Larcher wrote:
>   Hi,
> I am building mpich for hipster with gcc 4.7.3 and the configure step
> fails with the error:
>
> ld.so.1: conftest: fatal: libgfortran.so.3: open failed: No such file or
> directory
>
> I though that since LDFLAGS=-R/usr/gcc/4.7/lib was passed to build gcc
> in hipster it would be resolved automatically but apparently it is not
> the case.
> The library libgfortran.so.3 is present in /usr/gcc/4.7.3/lib but there
> are no symlinks to /usr/lib.


There are some discrepancies in your text above. You mention
both /usr/gcc/4.7/lib and /usr/gcc/4.7.3/lib. Are they the
same (i.e. via symlink), or is it a typo class of operator
error? I.e. would addition of
    LDFLAGS="-R/usr/gcc/4.7.3/lib $LDFLAGS"
solve the problem? :)

HTH,
//Jim





More information about the oi-dev mailing list