From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0P4hBeNzG2dO0wAAqHPOHw:P1 (envelope-from ) for ; Fri, 25 Oct 2024 10:33:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0P4hBeNzG2dO0wAAqHPOHw (envelope-from ) for ; Fri, 25 Oct 2024 12:33:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dPWdjnQc; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=npCU1xDB; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729852386; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bKutkG/fipjCckJQGaBm5cTomdce1kYBMRawpWRjf/s=; b=hvYmgomFhX34fecBBD8eksTVlZCjt2/L8WlvBEisxLGTiWeMMuVUyvejjdfgGaxc524v0k opaDxvL+FhIVWN8QEtRc/MDEgB4n2aVa5H3G6HV1/h0SY/A+L5Zc2FJFw013CSyM4FYAUF 0C4itUxhqJE7n0TpaZlWNDuLnEa0VpthGzo7s2b1vla8Y9Z8Emecn8FctR0rL48viD1KYG faq8revepX7y3G/aavLUfMOzY2FUmugCPAwucvU2Y1OdC2WDUPmyup8u1PUKv0Juo3vTZG j+Xa5OLzSjoojWSdkEXtGh3Rwv0FRvhqNJfg+uhO5iFmS9smJf1qLlP4palwVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dPWdjnQc; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=npCU1xDB; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729852386; a=rsa-sha256; cv=none; b=QkBsjFWFa0j0+i9Mj1mOk8L3pVRbdIA5iVbD6HAtQS1yv2Fyl5PqAsYIqg3E20z7wvj/3F 12jX0euJzNXFuOpKtjFJhDMBGsO650PBVdbi0zaIERS/+CgqdUmwvcjfZhr3MT/L2Rexks /2qODATGJ3+PaUtOLDMjYcmddaRQEAi26sTFv2VgkF1g5YLUuB2lSsvu3JaCtF4hXb8BTV +va+ksh71hpYv+pZv20OYqjj9UNn45oKdIxnwUulMv8Xj15P9vg6oIMINGwgeLE1taZCQ9 q0tKcpwY0ajh2oHrufU+RmcazVrza1df5f+Znozo9J4ZWXJPuLXgJtgPUkD9Dw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68C2B4035E for ; Fri, 25 Oct 2024 12:33:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4HcP-0001ue-LQ; Fri, 25 Oct 2024 06:32:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4HcN-0001tq-6H for bug-guix@gnu.org; Fri, 25 Oct 2024 06:32:31 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t4HcM-0001oA-Lh for bug-guix@gnu.org; Fri, 25 Oct 2024 06:32:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=bKutkG/fipjCckJQGaBm5cTomdce1kYBMRawpWRjf/s=; b=dPWdjnQclJqOHyXEGudoqxoGBkHw/aOqUFwEmaKiztuwzhKj3OM/6O+16wpcXy5Z2Ug6olr3O7t/IcfxXvzgkb4+M/5SAzYvaShIuAWZ9cNU/J8hcvs2z3a+87xe31LCQsRt88iwngb7gDTs6qOJFubcdlJ44r8ImUQazMiLhhJaH8f2m24aOFfXPqSNGCafe8QVTi7z4cvRyv7+SRQZM/QwJCaDgdNlGS/F/OAR21fUinBgOQlkRZNDkwDl8kqLoB8iLvJL1on4AypS0AN3qbkmYwHXf5tCX0HJHWsPurtAyayQNkkbS9v6uJ8DKdXRoEa0iMBbCRiPTAtFbABSEA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4Hcs-0004SY-DQ for bug-guix@gnu.org; Fri, 25 Oct 2024 06:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#74010: openmpi@5 requires propagated libraries Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 Oct 2024 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74010 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andreas Enge Cc: 74010@debbugs.gnu.org Received: via spool by 74010-submit@debbugs.gnu.org id=B74010.172985233417047 (code B ref 74010); Fri, 25 Oct 2024 10:33:02 +0000 Received: (at 74010) by debbugs.gnu.org; 25 Oct 2024 10:32:14 +0000 Received: from localhost ([127.0.0.1]:37449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hc5-0004Qs-H3 for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:32:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hc0-0004QK-2x for 74010@debbugs.gnu.org; Fri, 25 Oct 2024 06:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=bKutkG/fipjCckJQGaBm5cTomdce1kYBMRawpWRjf/s=; b=npCU1xDBc8WLnIt8IC6LGPecLc3FizOwyDn3e50dS03GJMI6Fs1wZk+V ZgnecDxELJ2TY4f1fkR/By3ZC7Q0XCzom8rNyWKd5270QjJfcAta0SJN6 B7QWnkvESB4q6Ep578wCggfWShbV0n9Pbd4LdKP+BM3g7GeYf3tMhGr05 0=; X-IronPort-AV: E=Sophos;i="6.11,231,1725314400"; d="scan'208";a="190717863" Received: from unknown (HELO ribbon) ([193.50.110.122]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 12:31:29 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Andreas Enge's message of "Fri, 25 Oct 2024 11:36:46 +0200") References: Date: Fri, 25 Oct 2024 12:31:29 +0200 Message-ID: <87a5es324e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 3.31 X-Spam-Score: 3.31 X-Migadu-Queue-Id: 68C2B4035E X-TUID: ddObsYdP7Oik Hello, Andreas Enge skribis: > when updating openmpi from @4 to @5, my code does not link any more with = the > messages: > ld: cannot find -lrdmacm: No such file or directory > ld: cannot find -lefa: No such file or directory > ld: cannot find -libverbs: No such file or directory > ld: cannot find -lpsm2: No such file or directory > > Installing rdma-core and psm2 solves the problem. > > Here is a way to reproduce the problem: > cd /tmp > tar xvf `guix build -S cm` Note that =E2=80=98cm=E2=80=99 as currently packaged does not depend on ope= nmpi. > Hm, I think the culprit is actually libfabric. It has these two packages = as > inputs, and contains this in its libfabric.pc: > Libs.private: -lpsm2 -lrdmacm -libverbs -lefa -latomic -lpthread -ldl > > I am not familiar with pkgconfig and do not know what distinguishes the L= ibs > from the Libs.private field. But the line for linking my binary contains = this > in exactly this order: It looks like the culprit is not pkg-config but Libtool: --8<---------------cut here---------------start------------->8--- $ cat $(guix build openmpi@5 |grep -v debug)/lib/libmpi.la |grep ^dependenc= y_libs dependency_libs=3D' -L/gnu/store/lqgg509yb3f85ck4k6l0qp7a70bz7daa-libevent-= 2.1.12/lib -L/gnu/store/j9nkxb0kcx8i6fmjjlg9m5icapdnsvs8-hwloc-2.11.1-lib/l= ib -L/gnu/store/mqmlzbzarz2s56khlkl7xk20xlsxdf04-openpmix-4.2.8/lib -L/gnu/= store/an3mrydqv3x9kzkv45jcay0jh301v06q-libpciaccess-0.16/lib -L/gnu/store/1= prv14v6jfnzzg7szm57690b7fr6sx33-zlib-1.3/lib -L/gnu/store/0f6bjfrf9kkdqh27y= 0bab9x9b4i8w5gi-libfabric-1.22.0/lib -L/gnu/store/0qqy5010by77h33ny3gzmaqx9= 0c93q5v-ucx-1.15.0/lib /gnu/store/1g7npkghs0b25gyk42pgcns8icy29gk3-openmpi-= 5.0.3/lib/libopen-pal.la /gnu/store/0f6bjfrf9kkdqh27y0bab9x9b4i8w5gi-libfab= ric-1.22.0/lib/libfabric.la -lrdmacm -lefa -libverbs -lpsm2 /gnu/store/zzpb= p6rr43smwxzvzd4qd317z5j7qblj-gcc-11.4.0-lib/lib/libatomic.la -lpthread /gnu= /store/0qqy5010by77h33ny3gzmaqx90c93q5v-ucx-1.15.0/lib/libucp.la /gnu/store= /0qqy5010by77h33ny3gzmaqx90c93q5v-ucx-1.15.0/lib/libuct.la /gnu/store/0qqy5= 010by77h33ny3gzmaqx90c93q5v-ucx-1.15.0/lib/libucs.la /gnu/store/0qqy5010by7= 7h33ny3gzmaqx90c93q5v-ucx-1.15.0/lib/libucm.la -lrt /gnu/store/mqmlzbzarz2s= 56khlkl7xk20xlsxdf04-openpmix-4.2.8/lib/libpmix.la -ldl /gnu/store/lqgg509y= b3f85ck4k6l0qp7a70bz7daa-libevent-2.1.12/lib/libevent_core.la /gnu/store/lq= gg509yb3f85ck4k6l0qp7a70bz7daa-libevent-2.1.12/lib/libevent_pthreads.la /gn= u/store/j9nkxb0kcx8i6fmjjlg9m5icapdnsvs8-hwloc-2.11.1-lib/lib/libhwloc.la -= lm /gnu/store/an3mrydqv3x9kzkv45jcay0jh301v06q-libpciaccess-0.16/lib/libpci= access.la -lz' $ cat $(guix build openmpi@4 |grep -v debug)/lib/libmpi.la |grep ^dependenc= y_libs dependency_libs=3D' -L/gnu/store/an3mrydqv3x9kzkv45jcay0jh301v06q-libpciacc= ess-0.16/lib -L/gnu/store/1prv14v6jfnzzg7szm57690b7fr6sx33-zlib-1.3/lib /gn= u/store/gaip8ig4yv0hx5s60hbka6h8lkh6747y-openmpi-4.1.6/lib/libopen-rte.la /= gnu/store/gaip8ig4yv0hx5s60hbka6h8lkh6747y-openmpi-4.1.6/lib/libopen-pal.la= /gnu/store/j9nkxb0kcx8i6fmjjlg9m5icapdnsvs8-hwloc-2.11.1-lib/lib/libhwloc.= la -lm /gnu/store/an3mrydqv3x9kzkv45jcay0jh301v06q-libpciaccess-0.16/lib/li= bpciaccess.la -lz /gnu/store/lqgg509yb3f85ck4k6l0qp7a70bz7daa-libevent-2.1.= 12/lib/libevent_core.la /gnu/store/lqgg509yb3f85ck4k6l0qp7a70bz7daa-libeven= t-2.1.12/lib/libevent_pthreads.la' --8<---------------cut here---------------end--------------->8--- We need to check the build process of openmpi to see where all these extra =E2=80=98-l=E2=80=99 in libmpi.la come from. Thanks, Ludo=E2=80=99.