From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53806) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4iIU-00061b-Sf for guix-patches@gnu.org; Thu, 20 Feb 2020 04:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4iIR-0007bt-UF for guix-patches@gnu.org; Thu, 20 Feb 2020 04:39:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4iIQ-0007b1-Ii for guix-patches@gnu.org; Thu, 20 Feb 2020 04:39:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4iIQ-00056U-Gd for guix-patches@gnu.org; Thu, 20 Feb 2020 04:39:02 -0500 Subject: [bug#39588] gnu: Add mpich, scalapack-mpich, mumps-mpich, pt-scotch-mpich, python-mpi4py-mpich Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87blq2rclk.fsf@inria.fr> <87o8tx3z2q.fsf@gnu.org> <87k14j6amk.fsf@inria.fr> Date: Thu, 20 Feb 2020 10:38:19 +0100 In-Reply-To: <87k14j6amk.fsf@inria.fr> ("Maurice \=\?utf-8\?Q\?Br\=C3\=A9mond\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Tue, 18 Feb 2020 18:58:11 +0100") Message-ID: <878skxd2es.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Maurice =?UTF-8?Q?Br=C3=A9mond?= Cc: 39588@debbugs.gnu.org, zimoun Hi Maurice, Maurice Br=C3=A9mond skribis: > This fails on my machine for the pt-scotch check (there is the same > error with scalapack check) > > Invalid error code (-2) (error ring index 127 invalid) > INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in = MPID_nem_tcp_init:373 > Fatal error in PMPI_Init: Other MPI error, error stack: > MPIR_Init_thread(586)..............:=20 > MPID_Init(224).....................: channel initialization failed > MPIDI_CH3_Init(105)................:=20 > MPID_nem_init(324).................:=20 > MPID_nem_tcp_init(175).............:=20 > MPID_nem_tcp_get_business_card(401):=20 > MPID_nem_tcp_init(373).............: gethostbyname failed, localhost (err= no 0) > > If I go into the build directory and launch the check manually after > sourcing the environment-variables file, it works... My version of the patch must have changed the default driver or something along these lines. tcp_init.c:373 in MPICH reads this: --8<---------------cut here---------------start------------->8--- /* If we don't have an IP address, try to get it from the name */ if (!ifaddrFound) { mpi_errno =3D MPL_get_sockaddr(ifname_string, p_addr); MPIR_ERR_CHKANDJUMP2(mpi_errno, mpi_errno, MPI_ERR_OTHER, "**gethos= tbyname", "**gethostbyname %s %d", ifname_string, h_errno); } --8<---------------cut here---------------end--------------->8--- =E2=80=98MPL_get_sockaddr=E2=80=99 uses =E2=80=98getifaddrs=E2=80=99 to get= the list of local interfaces, which in turn is implemented in terms of netlink requests in libc. I tried to reproduce it without success, but I guess my example MPI program is too simple to trigger the issue: --8<---------------cut here---------------start------------->8--- $ guix build -f mpich.scm substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% La jena derivo estos konstruata: /gnu/store/mgcwnmicw696i3g98rljdg92ra6ilq4n-mpi-init.drv building /gnu/store/mgcwnmicw696i3g98rljdg92ra6ilq4n-mpi-init.drv... /gnu/store/pkbg6kllx5xb8vb6kwrwm7qm4rnpmhia-mpich-3.3.2/bin/mpicc: line 215= : expr: command not found /gnu/store/pkbg6kllx5xb8vb6kwrwm7qm4rnpmhia-mpich-3.3.2/bin/mpicc: line 215= : expr: command not found /gnu/store/pkbg6kllx5xb8vb6kwrwm7qm4rnpmhia-mpich-3.3.2/bin/mpicc: line 215= : expr: command not found /gnu/store/pkbg6kllx5xb8vb6kwrwm7qm4rnpmhia-mpich-3.3.2/bin/mpicc: line 215= : expr: command not found /gnu/store/pkbg6kllx5xb8vb6kwrwm7qm4rnpmhia-mpich-3.3.2/bin/mpicc: line 215= : expr: command not found successfully built /gnu/store/mgcwnmicw696i3g98rljdg92ra6ilq4n-mpi-init.drv /gnu/store/cmdh27sg2hqh2p0jhxz33xgfmsxd5hmz-mpi-init $ /gnu/store/cmdh27sg2hqh2p0jhxz33xgfmsxd5hmz-mpi-init $ cat mpich.scm (use-modules (guix) (gnu)) (define code (plain-file "mpi.c" " #include int main (int argc, char *argv[]) { return MPI_Init (&argc, &argv);} ")) (define toolchain (specification->package "gcc-toolchain")) (define mpich (specification->package "mpich")) (computed-file "mpi-init" (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (setenv "PATH" (string-append #$(file-append toolchain "/bin"= ) ":" #$(file-append mpich "/bin"))) (setenv "CPATH" #$(file-append mpich "/include")) (setenv "LIBRARY_PATH" (string-append #$(file-append mpich "/lib") ":" #$(file-append toolchain "/lib"= ))) (invoke "mpicc" "-o" #$output "-Wall" "-g" #$code) ;; Run the MPI code in the build environment. (invoke #$output)))) --8<---------------cut here---------------end--------------->8--- Ideas? Could you perhaps strace the pt-scotch test that fails so we can see if there=E2=80=99s anything obvious, such as code that browses /sys or similar? TIA, Ludo=E2=80=99.