From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EFgqDonfy2PxUQEAbAwnHQ (envelope-from ) for ; Sat, 21 Jan 2023 13:50:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eGqdDInfy2Mt9wAAG6o9tA (envelope-from ) for ; Sat, 21 Jan 2023 13:50:17 +0100 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 057332E3F7 for ; Sat, 21 Jan 2023 13:50:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJDJs-0003ev-80; Sat, 21 Jan 2023 07:50:05 -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 1pJDJq-0003ek-D6 for bug-guix@gnu.org; Sat, 21 Jan 2023 07:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJDJq-0006OU-0k for bug-guix@gnu.org; Sat, 21 Jan 2023 07:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJDJp-0005q3-O9 for bug-guix@gnu.org; Sat, 21 Jan 2023 07:50:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#55178: ghc cannot find libraries of ghc-comonad Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Jan 2023 12:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55178 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: christoph.schumacher@mathematik.tu-dortmund.de Cc: 55178@debbugs.gnu.org Received: via spool by 55178-submit@debbugs.gnu.org id=B55178.167430538322411 (code B ref 55178); Sat, 21 Jan 2023 12:50:01 +0000 Received: (at 55178) by debbugs.gnu.org; 21 Jan 2023 12:49:43 +0000 Received: from localhost ([127.0.0.1]:48289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDJW-0005pO-Qz for submit@debbugs.gnu.org; Sat, 21 Jan 2023 07:49:43 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:45626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDJT-0005p9-61 for 55178@debbugs.gnu.org; Sat, 21 Jan 2023 07:49:41 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4NzbmC20G9z9shP; Sat, 21 Jan 2023 13:49:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1674305371; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=YZuRU6bdxn2VgLnfuThm9tnNTWOHd8v/FkA4V/6KDR0=; b=Lf7I1lBvxfayyaG+LN19/qC+zSFGrbk4k91te/ejB0dlUXvVswbwBB0U9kiR86aWKnNK/y 7UywCga7jEfjQgXlfUh9hy6k6zVKnX5iX51twbkP3oTGkPUZOiJ40l68DhafeH9WGum54n WNmXMdJ/8rDGruduDcv5DWsi7Lg20SdZX0eZJ6R4VA2yRI4Tx2GWe+GZ+KLLjboTj93If+ 3BBiNKaIW+wNci4a/O1u3HWaXv+VFu03q+1X9OZO08Vhh2jcE6ftrrbP5zzFd7GtIXg5YD HGw+6M3J4Adcz6Vif4e/pu3Hnhk1izHtU4kdesFCNAfQT0lAYFxtOuQ5cmqrJg== Date: Sat, 21 Jan 2023 13:49:29 +0100 From: Lars-Dominik Braun Message-ID: References: <27d96a4a345b1d66cb4108dbfa27e79e@mathematik.tu-dortmund.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <27d96a4a345b1d66cb4108dbfa27e79e@mathematik.tu-dortmund.de> X-Rspamd-Queue-Id: 4NzbmC20G9z9shP 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674305417; 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=YZuRU6bdxn2VgLnfuThm9tnNTWOHd8v/FkA4V/6KDR0=; b=EgwWs++Wu8UJckX1KN74l3BEomXNEOqpjOU2qLtkU5RMIxFOmFSNVRSGW4fd0rZCha59Nt kISCGBoAJk+bpHHmClo8biSJwfV65tn4mrKyXou39Chb97zLQj2s/5ePG6eW/DS5hMaekU yikeb0C+sm0ebr4bOgHK8Syr6PEDXLHpI5csk2jvfNnHvabTYq4ehJC/EGYtTxoxYF1+VB 9Yw1Ebnq6xGNlwamIqilVlCDQUuPhLsnmvY6KefY3FswWg6T1N1onLUW1h8GaRFKrPnTl/ +3M5NDEcglhOH1GOp5VfZoKNkh81hjAq5xQcR1U2qM93hhur+we+oP+f4NwM4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=Lf7I1lBv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674305417; a=rsa-sha256; cv=none; b=H3J1VaJ9vViO+DEcxLnUDG83VjBobu92K85+kWXCD1wDl1bXg/DqPqlgYXIW965/uoIgLX XWTqaLCWMhM3Ej6qG90lO+ZdwyDKB61fnEnhsKE/Paa0Ti6uv+kAY4ZA6k7pguzPcMCAMX ExCj3sNKdOFNIJ3c5sxZy1AleFsmNkz2I0ffTMGuVGLyEXT0BtmDjttAZVqSd3sHhvvm1t yCpVLGhDMSyrPbcEqMlboNQMvjfY0V9cgOprVLfTivctMqCcaEWz53V5j/GrqWa9IwWAg/ d0/FC0LSEeZHqgvaslWrbImnEWSatm+DAa7nky/HZtZTxXJINIzX8QPmm0Zr4A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 7.19 X-Spam-Score: 7.19 X-Migadu-Queue-Id: 057332E3F7 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=Lf7I1lBv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); 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" X-TUID: fuCtsX08ya1g Hi, > > guix shell --pure ghc ghc-comonad gcc-toolchain -- ghc LinkMe.hs > [1 of 1] Compiling Main ( LinkMe.hs, LinkMe.o ) > Linking LinkMe ... > ld: cannot find -lHScomonad-5.0.8-KDPzf2kORSz9Qeif8nQH6d > ld: cannot find -lHStransformers-compat-0.6.6-9ADqfwGTALm8Nq2ZeUpa4p > ld: cannot find -lHSindexed-traversable-0.1.1-Dfr00dUbJtB3rFEVdhtcE9 > ld: cannot find -lHSdistributive-0.6.2.1-L7rr3EplzD03NITUnJxmCO > ld: cannot find -lHStagged-0.8.6.1-EiQY3za6Q5HE9cdvqupke2 > ld: cannot find -lHSbase-orphans-0.8.5-Iz1X6ZIULaHC76vf03czEu > collect2: error: ld returned 1 exit status > `gcc' failed in phase `Linker'. (Exit code: 1) the problem here is that in Guix we link Haskell executables dynamically and sometimes move static libraries to a separate output without updating the config file (because otherwise it would create a reference, which we’re trying to avoid to save space). It works fine for me using guix shell --pure ghc ghc-comonad gcc-toolchain@10 -- ghc --make -dynamic -v LinkMe.hs Cheers, Lars