<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 03/30/2016 04:07 AM, Olivier Grisel
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFvE7K7e6h-CPQcvNPJ0-EnxW_XxXUkDL50mUsYMouvw-QOrnw@mail.gmail.com"
      type="cite">
      <pre wrap="">Actually with anaconda I get the error even when I do not import numpy first:

$ ~/anaconda3/bin/python -m numpy.f2py -c foo.f90 -m foo &> /dev/null
$ ~/anaconda3/bin/python -c "import foo"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>home/ogrisel/anaconda3/bin<span class="moz-txt-tag">/</span></i>../lib/libgfortran.so.3:
version `GFORTRAN_1.4' not found (required by
/home/ogrisel/code/numpy/numpy/f2py/tests/src/kind/foo.cpython-35m-x86_64-linux-gnu.so)
...

--
Olivier</pre>
    </blockquote>
    <br>
    Those of us working on conda-forge have run into this exact issue
    and are aware of it.  The problem seems to stem from the fact that
    if you ship a runtime library, libgfortran but also libstdc++ or
    libgcc, which shadows a system library, you can (will?) get
    unresolved symbols at runtime if the system library is newer than
    the one you ship. Discussion of the topic can be found in issue 29
    of conda-forge/conda-forge.github.io [1].  <br>
    <br>
    I believe the suggestions of renaming the libgfortran in the wheel
    should fix this issue.   I think the same issue may crop up if you
    have a extension module which links against libstdc++ and perhaps
    libgcc.  I do not have any examples of this, just something to keep
    in mind.<br>
    <br>
    For completeness, I should mention that to address this problem,
    conda-forge is currently planning on shipping a very recent version
    (GCC 5.2) of the various runtime libraries which are linked against
    a very old glibc for compatibility.<br>
    <br>
    Cheers,<br>
    <br>
        - Jonathan Helmus<br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://github.com/conda-forge/conda-forge.github.io/issues/29">https://github.com/conda-forge/conda-forge.github.io/issues/29</a><br>
  </body>
</html>