ports/159705: Patch adding an option for disabling IPV6 in the net/openmpi port
Momchil Ivanov
momchil at xaxo.eu
Fri Aug 12 10:40:08 UTC 2011
>Number: 159705
>Category: ports
>Synopsis: Patch adding an option for disabling IPV6 in the net/openmpi port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 12 10:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Momchil Ivanov
>Release:
>Organization:
>Environment:
>Description:
Add option for disabling ipv6 in net/openmpi port, otherwise openmpi crashes when you run it on a system where ipv6 is not compiled in the kernel.
>How-To-Repeat:
compile your system without ipv6 and try to run a programm:
examples % /usr/local/mpi/openmpi/bin/mpiexec -np 2 cpuname user at t61
[t61.xaxo.eu:27503] mca_oob_tcp_component_init: socket() failed: Protocol not supported (43)
[t61.xaxo.eu:27503] mca_oob_tcp_init: unable to create IPv6 listen socket: Protocol not supported
[t61.xaxo.eu:27504] mca_oob_tcp_component_init: socket() failed: Protocol not supported (43)
[t61.xaxo.eu:27504] mca_oob_tcp_init: unable to create IPv6 listen socket: Protocol not supported
[t61.xaxo.eu:27505] mca_oob_tcp_component_init: socket() failed: Protocol not supported (43)
[t61.xaxo.eu:27505] mca_oob_tcp_init: unable to create IPv6 listen socket: Protocol not supported
[t61.xaxo.eu][[41103,1],1][btl_tcp_component.c:535:mca_btl_tcp_component_create_listen] socket() failed: Protocol not supported (43)[t61.xaxo.eu][[41103,1],0][btl_tcp_component.c:535:mca_btl_tcp_component_create_listen] [t61.xaxo.eu:27504] mca_btl_tcp_component: IPv6 listening socket failed
socket() failed: Protocol not supported (43)
[t61.xaxo.eu:27505] mca_btl_tcp_component: IPv6 listening socket failed
CPU name: t61.xaxo.eu
CPU name: t61.xaxo.eu
[t61:27505] *** Process received signal ***
[t61:27505] Signal: Segmentation fault: 11 (11)
[t61:27505] Signal code: Address not mapped (1)
[t61:27505] Failing at address: 0x28478510
[t61:27505] [ 0] 0x28179ad3 <opal_event_del_i+149> at /usr/local/mpi/openmpi/lib/libopen-pal.so.0
[t61:27505] [ 1] 0x2840ee4d <_init+22953> at /usr/local/mpi/openmpi/lib/openmpi/mca_oob_tcp.so
[t61:27505] [ 2] 0x2840a0a2 <_init+3070> at /usr/local/mpi/openmpi/lib/openmpi/mca_oob_tcp.so
[t61:27505] [ 3] 0x2814c816 <mca_oob_base_close+90> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27505] [ 4] 0x2840415d <_init+1741> at /usr/local/mpi/openmpi/lib/openmpi/mca_rml_oob.so
[t61:27505] [ 5] 0x2817ec31 <mca_base_components_close+121> at /usr/local/mpi/openmpi/lib/libopen-pal.so.0
[t61:27505] [ 6] 0x2815352a <orte_rml_base_close+140> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27505] [ 7] 0x281406f5 <orte_ess_base_app_finalize+55> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27505] [ 8] 0x28400ed4 <_init+1720> at /usr/local/mpi/openmpi/lib/openmpi/mca_ess_env.so
[t61:27505] [ 9] 0x28127411 <orte_finalize+81> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27505] [10] 0x280c2005 <ompi_warn_fork+4826> at /usr/local/mpi/openmpi/lib/libmpi.so.0
[t61:27505] [11] 0x280db375 <MPI_Finalize+57> at /usr/local/mpi/openmpi/lib/libmpi.so.0
[t61:27505] [12] 0x8048693 <main+75> at /home/space/dev/jsc/dev/mpi/examples/cpuname
[t61:27505] [13] 0x80485c1 <_start+161> at /home/user/dev/jsc/dev/mpi/examples/cpuname
[t61:27505] [14] 0x8048538 <_start+24> at /home/user/dev/jsc/dev/mpi/examples/cpuname
[t61:27505] *** End of error message ***
[t61:27504] *** Process received signal ***
[t61:27504] Signal: Segmentation fault: 11 (11)
[t61:27504] Signal code: Address not mapped (1)
[t61:27504] Failing at address: 0x28478510
[t61:27504] [ 0] 0x28179ad3 <opal_event_del_i+149> at /usr/local/mpi/openmpi/lib/libopen-pal.so.0
[t61:27504] [ 1] 0x2840ee4d <_init+22953> at /usr/local/mpi/openmpi/lib/openmpi/mca_oob_tcp.so
[t61:27504] [ 2] 0x2840a0a2 <_init+3070> at /usr/local/mpi/openmpi/lib/openmpi/mca_oob_tcp.so
[t61:27504] [ 3] 0x2814c816 <mca_oob_base_close+90> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27504] [ 4] 0x2840415d <_init+1741> at /usr/local/mpi/openmpi/lib/openmpi/mca_rml_oob.so
[t61:27504] [ 5] 0x2817ec31 <mca_base_components_close+121> at /usr/local/mpi/openmpi/lib/libopen-pal.so.0
[t61:27504] [ 6] 0x2815352a <orte_rml_base_close+140> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27504] [ 7] 0x281406f5 <orte_ess_base_app_finalize+55> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27504] [ 8] 0x28400ed4 <_init+1720> at /usr/local/mpi/openmpi/lib/openmpi/mca_ess_env.so
[t61:27504] [ 9] 0x28127411 <orte_finalize+81> at /usr/local/mpi/openmpi/lib/libopen-rte.so.0
[t61:27504] [10] 0x280c2005 <ompi_warn_fork+4826> at /usr/local/mpi/openmpi/lib/libmpi.so.0
[t61:27504] [11] 0x280db375 <MPI_Finalize+57> at /usr/local/mpi/openmpi/lib/libmpi.so.0
[t61:27504] [12] 0x8048693 <main+75> at /home/user/dev/jsc/dev/mpi/examples/cpuname
[t61:27504] [13] 0x80485c1 <_start+161> at /home/user/dev/jsc/dev/mpi/examples/cpuname
[t61:27504] [14] 0x8048538 <_start+24> at /home/user/dev/jsc/dev/mpi/examples/cpuname
[t61:27504] *** End of error message ***
--------------------------------------------------------------------------
mpiexec noticed that process rank 1 with PID 27505 on node t61.xaxo.eu exited on signal 11 (Segmentation fault: 11).
--------------------------------------------------------------------------
zsh: exit 139 /usr/local/mpi/openmpi/bin/mpiexec -np 2 cpuname
>Fix:
Compile openmpi without ipv6
Patch attached with submission follows:
diff -ur openmpi.orig/Makefile openmpi/Makefile
--- openmpi.orig/Makefile 2011-08-12 12:19:20.000000000 +0200
+++ openmpi/Makefile 2011-08-12 12:22:34.000000000 +0200
@@ -10,6 +10,7 @@
PORTNAME= openmpi
DISTVERSION= 1.4.3
+PORTREVISION= 1
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/ompi/v1.4/downloads/
@@ -40,7 +41,8 @@
.include "${.CURDIR}/Makefile.man"
OPTIONS= TORQUE "Enable Torque support" off \
- SGE "Enable SGE support" off
+ SGE "Enable SGE support" off \
+ IPV6 "enable IPv6 support" on
.include <bsd.port.pre.mk>
@@ -77,6 +79,10 @@
CONFIGURE_ARGS+= --without-tm
.endif
+.if defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+=--disable-ipv6
+.endif
+
#######################################################################
# The following targets are for the port maintainer. Use at your own #
# risk, no user-serviceable parts inside. #
Only in openmpi: Makefile~
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list