From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GMBoBRrUcGSy2AAASxT56A (envelope-from ) for ; Fri, 26 May 2023 17:45:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +MkGBRrUcGRcbgEAauVa8A (envelope-from ) for ; Fri, 26 May 2023 17:45:30 +0200 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 C24C5430D0 for ; Fri, 26 May 2023 17:45:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Zcn-0001fp-FL; Fri, 26 May 2023 11:45:05 -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 1q2Zcl-0001fb-CC for bug-guix@gnu.org; Fri, 26 May 2023 11:45:03 -0400 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 1q2Zcl-0005m6-2s for bug-guix@gnu.org; Fri, 26 May 2023 11:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2Zck-0007nx-ES for bug-guix@gnu.org; Fri, 26 May 2023 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63728: GHC cannot find lrt Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 May 2023 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mekeor Melire Cc: 63728@debbugs.gnu.org Received: via spool by 63728-submit@debbugs.gnu.org id=B63728.168511588529959 (code B ref 63728); Fri, 26 May 2023 15:45:02 +0000 Received: (at 63728) by debbugs.gnu.org; 26 May 2023 15:44:45 +0000 Received: from localhost ([127.0.0.1]:50600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2ZcT-0007n8-6V for submit@debbugs.gnu.org; Fri, 26 May 2023 11:44:45 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:54580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2ZcQ-0007ms-Hx for 63728@debbugs.gnu.org; Fri, 26 May 2023 11:44:43 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-102.mailbox.org (Postfix) with ESMTPS id 4QSTkQ1nwqz9sW7; Fri, 26 May 2023 17:44:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1685115870; 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: in-reply-to:in-reply-to:references:references; bh=hCVC1jfi1GiV9xlgqbOJsw6eav/CLmeMfgIoVvg8NbA=; b=VQBt4yPibNbsQKdqHe+rLbNrXbfVqQhhmjJzyDbvugNlWXLNHIuuZPFgWwY9SYk06U263Z eGNBo5IZsjWPCfS/9oMjda5gwrAoSznWwAd6Zjqj+JqsDuihLUhw9RximfajO3LlxSJfMT x/2hRelSotyLYjFpWZdIn0Y5ks+5LmUmEoi6oB1KmIytvdrTHqMk0/9I4w74z6SJ1eWjeQ JRCcwPECGFyBT1AI+nu5rpjkP3Mcb9RfNQut+yymEYgB1IpLhzIcmUHV0xNOZZeOuAFQ2C rLL70/yObuFUgKwJ74VX5pu/Wtn6O5EUtdtSefONGPiOwOsFHh+kp8oaiYNu2w== In-Reply-To: <87zg5rpi0b.fsf@posteo.de> (Mekeor Melire's message of "Fri, 26 May 2023 09:17:55 +0000") References: <877cswaw12.fsf@mailbox.org> <87zg5rpi0b.fsf@posteo.de> Date: Fri, 26 May 2023 15:44:26 +0000 Message-ID: <87edn3w10l.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-ID: bb3f6087f9e426219f1 X-MBO-RS-META: 4wgh48fet31qi3x8oye1batdfse8k9ri 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: , Reply-to: Antero Mejr From: Antero Mejr via Bug reports for GNU Guix 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-Seal: i=1; s=key1; d=yhetil.org; t=1685115929; a=rsa-sha256; cv=none; b=h6iYCIK/3rNpnJDSMrlgpjBQTpplRNCCr26nE5XYn+UoYOzzm6lGLZ3S4UrfsPNbMwZyHn +M5sESOmFk7+LHvOnQDUwI8o3NTGrajPUCC9cUjnE/O9QWdu6KiE8UQmdwLCbXwtwrqrCw Pi5M8xUew9Tb0/DM5bOgd2tFeyZhoVBl0GyGEf9xBcGMTwWQ/UdMovRwMrL+F0DyQrJySi OAj0FQjO1VuJt46NQkt5VtVAqXXFYOZF8rHpL810zFl5xHNSpSFEMw4UOWc6mI2KGjduhf ZMloa5FhBEOX4foNLzQaGh8QvHZbAMvb4jetvjjFa+0FO1fB1YaDBcCej0Ux9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=VQBt4yPi; dmarc=pass (policy=none) header.from=gnu.org; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685115929; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=hCVC1jfi1GiV9xlgqbOJsw6eav/CLmeMfgIoVvg8NbA=; b=kRqQObHBi+nKMwoIt1Cqt8/FGmeqZCTYFA3EgwMvIveLFuITRzDcywmYYfRKMAtNorEW6E +rIbEgnf7bG2RR3LolMrwBHKqr+axCYZHAPc/amsZLhdVugAItsS57Lyuz3+Ii8WYlOU3K 4aJyvh6L6SDtQm19ZivZlyE86Wy10fAhPcjlNjEnt8pmdzwuWK9EE5Aupi7n731pZtkhQE v9hIzkEM4IIX8pKop8ECbkXmpNUp+I7GeanankGxXkcSUcVOhjKnhpzqsStEbV52ly4Qlc IMf+5pv6V1ZtElN6D48nVmh6SPG699g0LZp7s4iRuhgLG6lRrLJjZrj2/9+ewA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=VQBt4yPi; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: -2.26 X-Spam-Score: -2.26 X-Migadu-Queue-Id: C24C5430D0 X-TUID: UA7pz16orQSv Mekeor Melire writes: > 2023-05-25 22:25 bug-guix@gnu.org: > >> Attempting to build a trivial Haskell program using ghc fails, as the linker >> cannot find the rt library: > > Does installing gcc-toolchain:static help as a work-around? I merged this bug with #63258. The gcc-toolchain:static workaround fixes the rt problem, but now the binaries aren't linked to libgmp and libffi, even though gmp and libffi packages are installed in the profile: --8<---------------cut here---------------start------------->8--- ~$ ghc -O2 test.hs ~$ ldd ./test linux-vdso.so.1 (0x00007ffe0956f000) libgmp.so.10 => not found libc.so.6 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6 (0x00007fbe27e3f000) libm.so.6 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libm.so.6 (0x00007fbe27d62000) libffi.so.8 => not found libgcc_s.so.1 => /gnu/store/qcg59v4yg239jj1k0xvqqqkqv6l8q6ll-gcc-12.2.0-lib/lib/libgcc_s.so.1 (0x00007fbe27d41000) /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/ld-linux-x86-64.so.2 => /gnu/store/ip9mj1pwymxi1yq32zbhwp3n3bycy6yi-glibc-2.35/lib/ld-linux-x86-64.so.2 (0x00007fbe2803d000) --8<---------------cut here---------------end--------------->8--- Maybe there should be a ghc-toolchain package that has libgmp and libffi as inputs, and makes sure GHC links them correctly?