[Bug 201348] devel/py-tables: libgcc_s.so.1 raises ImportError on libgfortran.so.3 not found due to missing rpath

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 4 22:37:40 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201348

            Bug ID: 201348
           Summary: devel/py-tables: libgcc_s.so.1 raises ImportError on
                    libgfortran.so.3 not found due to missing rpath
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: wen at FreeBSD.org
          Reporter: john at saltant.com
                CC: python at FreeBSD.org
             Flags: maintainer-feedback?(wen at FreeBSD.org)
          Assignee: wen at FreeBSD.org

Created attachment 158354
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158354&action=edit
devel/py-tables: Add USES=fortran to link extensions with gcc rpath

Upon import tables, the following ImportError exception is raised.

    ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found

The root cause is that utilsextension.so is linked without
-Wl,-rpath=${_GCC_RUNTIME} (/usr/local/lib/gcc48, in this case) combined with
the dependency on numpy.

For full analysis see:
    https://lists.freebsd.org/pipermail/freebsd-python/2015-June/008420.html

A possible fix for this bug is available in the attached patch, which
effectively performs USES+=fortran, thereby invoking ports machinery that sets
the necessary linker flags.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list