Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 13:46:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217682] net/openmpi2: remove implicit -L/usr/local/lib
Message-ID:  <bug-217682-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217682

            Bug ID: 217682
           Summary: net/openmpi2: remove implicit -L/usr/local/lib
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danilo@FreeBSD.org
          Reporter: tijl@FreeBSD.org
             Flags: maintainer-feedback?(danilo@FreeBSD.org)
          Assignee: danilo@FreeBSD.org

Created attachment 180696
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180696&action=
=3Dedit
patch

While working on a port of OpenCoarrays (bug 217283) it was discovered that
Open MPI 2 runs the compiler with "-L/usr/local/lib" before
"-L/usr/local/mpi/openmpi2/lib -lmpi".  You can verify this by running
"/usr/local/mpi/openmpi2/bin/mpicc -show".  This causes
/usr/local/lib/libmpi.so to be used if it exists instead of the Open MPI
library.

-L/usr/local/lib is added by the configure script.  The attached patch chan=
ges
CONFIGURE_ARGS to avoid this.  To allow the configure script to still find
external libraries USES=3Dlocalbase is added.  A post-patch command needed =
to be
added to set the full path of hwloc.h like --with-hwloc=3D${LOCALBASE} does=
.=20
With --with-hwloc=3Dexternal just the name "hwloc.h" is used.  This fails b=
ecause
the work directory contains its own hwloc.h which gets included instead of =
the
system header.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217682-13>