From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YDuXBNt8S2f8ewAAe85BDQ:P1 (envelope-from ) for ; Sat, 30 Nov 2024 21:00:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YDuXBNt8S2f8ewAAe85BDQ (envelope-from ) for ; Sat, 30 Nov 2024 22:00:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=DGQVZehK; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=z1JbkdVz; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 84F9573076 for ; Sat, 30 Nov 2024 22:00:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHUYy-00042l-DN; Sat, 30 Nov 2024 15:59:36 -0500 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 1tHUYs-00042R-ND for guix-devel@gnu.org; Sat, 30 Nov 2024 15:59:31 -0500 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHUYq-0000jY-M6 for guix-devel@gnu.org; Sat, 30 Nov 2024 15:59:30 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2E1232540131 for ; Sat, 30 Nov 2024 15:59:27 -0500 (EST) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-04.internal (MEProxy); Sat, 30 Nov 2024 15:59:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733000367; x=1733086767; bh=rHmskjzys3aHlvMnXbZyQEc/0ujkIF8bggmKbzUvIyc=; b= DGQVZehKBwZpyLbwY0ZNWBvZsgeG1mbdOFKHV0A8zoP3MAZbwNvh/vfThMJ6detJ lHS8DiTKemlkuY0Q6yfMwyQDupLEGyrI0sBPR0LSBcEODpNgoX7e8ieNVh2p+R8c iraON3uHLWeH0LDHk5ec47cIHmNMmI0c5ZglEAtFUm0j2EpXH3aRxT23HWTACtou Kf0PzLq4YsR50qWa/MkMpQySIcknC2BKp9RFJsicJNpGE0daWOW6yehfsGe2XACz rKFK5EmXnv8H9E8Ob330GD5n1AGKMuMTWEMZYc3+5Ts/vKVpxqEVxq0bzpitER5U 2sz2Yra/qqRUhu9/bft9Qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733000367; x=1733086767; bh=r Hmskjzys3aHlvMnXbZyQEc/0ujkIF8bggmKbzUvIyc=; b=z1JbkdVzUBBeeLpAO BidNXKYP77tsKx1cvV6w45ltTZsTnqOxmyH2tgleGx2w9Rrc6KR5YrI+0uTXYGH6 KBwMFy/qKPKAFNQPAOZCe4payEvcXYPN22cUMfndj1q0usiuFWk612mXDetiypfC BUxX66G2jOpKyKKFFaIr3qqXMI6ryMSNRXKTb/YDhglv30sqz94IvKrKwD82/W/v MstgwBl14f9RwYjMhD5JPGdyrRON2SP7KL2ehH9bxl7uhSB9/Kr7sqm0RboOF3o7 jSFOTdoJM7tGHqFFgYfoLNhJajLpwvXhahmGgzQ/xTUNuS9Uz2erCHkHv5bBIwas ckjig== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheehgddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfkfgrnhcugfhurhgvfdcuoehi rghnsehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepteelveejffeuie fhieefhfehgeffueeigffhlefhheelfedvteeljefhudektddtnecuffhomhgrihhnpehg uhhigidrihhnfhhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrthhvpdhnsggprhgtphhtthhopedupdhm ohguvgepshhmthhpohhuthdprhgtphhtthhopehguhhigidquggvvhgvlhesghhnuhdroh hrgh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id ADF2918A006B; Sat, 30 Nov 2024 15:59:26 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Sat, 30 Nov 2024 20:59:02 +0000 From: "Ian Eure" To: guix-devel@gnu.org Message-Id: <3ee2fb14-8869-405b-afa1-0280f3ab3ebc@app.fastmail.com> In-Reply-To: <470ec6f8e76e17034c119d138a05b576ee05fa9c.camel@platen-software.de> References: <470ec6f8e76e17034c119d138a05b576ee05fa9c.camel@platen-software.de> Subject: Re: guix package -i kicad will fait with #error "Unsupported CPU architecture" on my Talos II Content-Type: text/plain Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=202.12.124.157; envelope-from=ian@retrospec.tv; helo=fhigh-b6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.26 X-Spam-Score: -6.26 X-Migadu-Queue-Id: 84F9573076 X-Migadu-Scanner: mx10.migadu.com X-TUID: PuaJdVD4mI0b Hi Tobias, On Sat, Nov 30, 2024, at 8:18 PM, Tobias Alexandra Platen wrote: > When I try to install Kicad, I'll get the following output: > > The following derivations will be built: > /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1- > 0.5b6f8b5.drv > /gnu/store/x26zsx3fw74vhfc35i79fansmlmhl0cc-libfabric-1.22.0.drv > /gnu/store/nfj2qvhyxvfc7x5fkdlyg2z1wnpqw9cz-openmpi-4.1.6.drv > /gnu/store/l1rbmwj9m4kgkm1qada665mm0m6g10w1-libngspice-43.drv > /gnu/store/y88c48hzcm78ch39wjfa3dpdgw9n6m7r-webkitgtk-with-libsoup2- > 2.44.1.drv > /gnu/store/qv0zpz8h2dvhbmxz6smsbmc763rdkdxm-wxwidgets-3.2.5.drv > /gnu/store/llydl3baxardzgf9xmdbgjikny68vaar-python-wxpython-4.2.0.drv > /gnu/store/b0s2jgimknw6035kcqvpb6sdxkhakz7b-kicad-7.0.11.drv > > After a few minutes the build fails with: > > building /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1- > 0.5b6f8b5.drv... > \ 'build' phasebuilder for > `/gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1- > 0.5b6f8b5.drv' failed with exit code 1 > build of /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1- > 0.5b6f8b5.drv failed > View build log at > '/var/log/guix/drvs/5r/inv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1- > 0.5b6f8b5.drv.gz'. > ........ > CC utils/read_lat.o > ........ > #error "Unsupported CPU architecture" > > I also found a blogpost which mentions libcxi, what does libcxi do? > https://hpc.guix.info/blog/2024/11/targeting-the-crayhpe-slingshot-interconnect/ > The package description provides a pretty good summary: Interface to the Cassini/Slingshot high-speed interconnect Libcxi provides applications with a low-level interface to the Cray/HPE Cassini high-speed NIC (network interface controller), also known as Slingshot. > I guess that libcxi is optional for Kicad, so I could hack guix to > build Kicad without libcxi. > I think this is worth a bug report, and maybe you're also up to sending some patches? I think it's slightly more complicated than just the kicad package, though, since libcxi isn't a direct dependency: $ guix graph --path kicad libcxi kicad@7.0.11 libngspice@43 openmpi@4.1.6 libfabric@1.22.0 libcxi@1.0.1-0.5b6f8b5 So, I think what needs to happen is that libcxi needs to have POWER9 removed from its supported-systems field; and libfabric needs to conditionally include libcxi in its inputs based on architecture. I think the best way to do that is by checking for the build system in (package-supported-systems libcxi), which will avoid hardcoding duplicate arch tests in two packages. -- Ian