[Bug 217682] net/openmpi2: remove implicit -L/usr/local/lib
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 10 13:46:51 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217682
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 at FreeBSD.org
Reporter: tijl at FreeBSD.org
Flags: maintainer-feedback?(danilo at FreeBSD.org)
Assignee: danilo at FreeBSD.org
Created attachment 180696
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180696&action=edit
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 changes
CONFIGURE_ARGS to avoid this. To allow the configure script to still find
external libraries USES=localbase is added. A post-patch command needed to be
added to set the full path of hwloc.h like --with-hwloc=${LOCALBASE} does.
With --with-hwloc=external just the name "hwloc.h" is used. This fails because
the work directory contains its own hwloc.h which gets included instead of the
system header.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list