From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 12 10:40:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 532EB106566C for ; Fri, 12 Aug 2011 10:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2EFF48FC15 for ; Fri, 12 Aug 2011 10:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7CAe8Pl028226 for ; Fri, 12 Aug 2011 10:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7CAe8Vw028225; Fri, 12 Aug 2011 10:40:08 GMT (envelope-from gnats) Resent-Date: Fri, 12 Aug 2011 10:40:08 GMT Resent-Message-Id: <201108121040.p7CAe8Vw028225@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Momchil Ivanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC287106566B for ; Fri, 12 Aug 2011 10:31:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CACCA8FC0A for ; Fri, 12 Aug 2011 10:31:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7CAVDDD017205 for ; Fri, 12 Aug 2011 10:31:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7CAVDEX017203; Fri, 12 Aug 2011 10:31:13 GMT (envelope-from nobody) Message-Id: <201108121031.p7CAVDEX017203@red.freebsd.org> Date: Fri, 12 Aug 2011 10:31:13 GMT From: Momchil Ivanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/159705: Patch adding an option for disabling IPV6 in the net/openmpi port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 10:40:08 -0000 >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@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 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 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 at /usr/local/mpi/openmpi/lib/libopen-pal.so.0 [t61:27505] [ 6] 0x2815352a at /usr/local/mpi/openmpi/lib/libopen-rte.so.0 [t61:27505] [ 7] 0x281406f5 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 at /usr/local/mpi/openmpi/lib/libopen-rte.so.0 [t61:27505] [10] 0x280c2005 at /usr/local/mpi/openmpi/lib/libmpi.so.0 [t61:27505] [11] 0x280db375 at /usr/local/mpi/openmpi/lib/libmpi.so.0 [t61:27505] [12] 0x8048693 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 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 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 at /usr/local/mpi/openmpi/lib/libopen-pal.so.0 [t61:27504] [ 6] 0x2815352a at /usr/local/mpi/openmpi/lib/libopen-rte.so.0 [t61:27504] [ 7] 0x281406f5 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 at /usr/local/mpi/openmpi/lib/libopen-rte.so.0 [t61:27504] [10] 0x280c2005 at /usr/local/mpi/openmpi/lib/libmpi.so.0 [t61:27504] [11] 0x280db375 at /usr/local/mpi/openmpi/lib/libmpi.so.0 [t61:27504] [12] 0x8048693 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 @@ -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: