From unknown Sat Aug 16 18:46:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32131: ghc fails to compile packages when installed into profile Resent-From: Anonymous Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Jul 2018 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32131 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 32131@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.153137325711262 (code B ref -1); Thu, 12 Jul 2018 05:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2018 05:27:37 +0000 Received: from localhost ([127.0.0.1]:56237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdU8f-0002va-Bb for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:27:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdTui-0002av-L2 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdTuc-00029F-O8 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_SBL autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdTuc-000291-Kd for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdTub-0002vY-JZ for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdTuW-00025l-Kp for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:05 -0400 Received: from cock.li ([185.100.85.212]:40010) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdTuW-00024f-64 for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1531372376; bh=E5xvy482b09m1fjlZUTD5c/SvAKoMkunYZkd8/XKgm0=; h=To:From:Subject:Date:From; b=O+SpIg/AgpeiyuZA9OanqIa3iPLBu+tfyF158k7rCceAZTe8VUeHh81OGn1u4Rp1o sX/f7Lao3WrHk7cYBczXiaHx07IBsIjlMN8uqylPVUL5NCsZL4Ptj50do1opLCV7RH 3JZYwDFsEsU8UJwX9fS2tTYhriUck2yonIt/VxXacoIyAyxt0JbzVeop1jY1C6hi70 Li4vkWY5tkiCLfThuzMm8nzNrhW1JvxuPotlFv1ajNSjmICkhTBquJVO0RDGk1rKRd Z/DdWKmUHk1zlmYdpRSmmIwpc3K59oqxxCJ/CSSj3Nr5P+3N+efEtR1l/GcGR86Fq2 aGRarOQG2UMdQ== From: Anonymous Message-ID: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> Date: Wed, 11 Jul 2018 22:12:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Mailman-Approved-At: Thu, 12 Jul 2018 01:27:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) This bug can be reproduced by doing =C2=A0=C2=A0=C2=A0 guix package -i ghc =C2=A0=C2=A0=C2=A0 echo 'main=3Dreturn()' > test.hs =C2=A0=C2=A0=C2=A0 ghc test.hs The expected output is that the program will be compiled, but instead we=20 get the error message =C2=A0=C2=A0=C2=A0 gcc: error trying to exec 'as': execvp: No such file = or directory =C2=A0=C2=A0=C2=A0 `gcc' failed in phase `C Compiler'. (Exit code: 1) The error is caused, of course, by as not being found in the path.=20 Interestingly, though, the error occurs in gcc, which fails to find as.=20 The general path for compiling things with gcc is to use gcc-toolchain,=20 which brings as and others into the profile, but as ghc calls gcc=20 directly (with no gcc-toolchain), ghc fails to actually compile anything. From unknown Sat Aug 16 18:46:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32131: ghc fails to compile packages when installed into profile Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Jul 2018 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32131 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Anonymous Cc: 32131@debbugs.gnu.org Received: via spool by 32131-submit@debbugs.gnu.org id=B32131.153141114920283 (code B ref 32131); Thu, 12 Jul 2018 16:00:02 +0000 Received: (at 32131) by debbugs.gnu.org; 12 Jul 2018 15:59:09 +0000 Received: from localhost ([127.0.0.1]:57273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fddzo-0005H5-Rx for submit@debbugs.gnu.org; Thu, 12 Jul 2018 11:59:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fddzn-0005Gq-Pg for 32131@debbugs.gnu.org; Thu, 12 Jul 2018 11:59:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fddzd-0005QS-GJ for 32131@debbugs.gnu.org; Thu, 12 Jul 2018 11:59:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,URIBL_SBL autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fddzd-0005QF-Ck; Thu, 12 Jul 2018 11:58:57 -0400 Received: from [193.50.110.117] (port=45304 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fddzc-0001YX-VG; Thu, 12 Jul 2018 11:58:57 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Messidor an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 12 Jul 2018 17:58:55 +0200 In-Reply-To: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> (Anonymous's message of "Wed, 11 Jul 2018 22:12:54 -0700") Message-ID: <87sh4otphc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) Hello, Anonymous skribis: > This bug can be reproduced by doing > > =C2=A0=C2=A0=C2=A0 guix package -i ghc > =C2=A0=C2=A0=C2=A0 echo 'main=3Dreturn()' > test.hs > =C2=A0=C2=A0=C2=A0 ghc test.hs > > The expected output is that the program will be compiled, but instead > we get the error message > > =C2=A0=C2=A0=C2=A0 gcc: error trying to exec 'as': execvp: No such file o= r directory > =C2=A0=C2=A0=C2=A0 `gcc' failed in phase `C Compiler'. (Exit code: 1) > > The error is caused, of course, by as not being found in the > path. Interestingly, though, the error occurs in gcc, which fails to > find as. The general path for compiling things with gcc is to use > gcc-toolchain, which brings as and others into the profile, but as ghc > calls gcc directly (with no gcc-toolchain), ghc fails to actually > compile anything. Indeed. Does running: guix package -i glibc binutils ld-wrapper help? Regardless I agree that it should just work. Thanks for reporting the issue, Ludo=E2=80=99. From unknown Sat Aug 16 18:46:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32131: ghc fails to compile packages when installed into profile Resent-From: "Hogenson, Raymond E (334H-Affiliate)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Jul 2018 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32131 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic Court=C3=A8s Cc: 32131@debbugs.gnu.org Received: via spool by 32131-submit@debbugs.gnu.org id=B32131.153141292423074 (code B ref 32131); Thu, 12 Jul 2018 16:29:02 +0000 Received: (at 32131) by debbugs.gnu.org; 12 Jul 2018 16:28:44 +0000 Received: from localhost ([127.0.0.1]:57302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdeSR-000605-R3 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 12:28:44 -0400 Received: from cock.li ([185.100.85.212]:60284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdeKN-0005nv-K0 for 32131@debbugs.gnu.org; Thu, 12 Jul 2018 12:20:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on cock.li X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_RECEIVED, NO_RELAYS, T_DKIM_INVALID shortcircuit=_SCTYPE_ autolearn=disabled version=3.4.1 User-Agent: Microsoft-MacOutlook/10.f.0.180709 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1531412416; bh=VYF6L8UFZIea/QuzjbNrLOBaVMhBoViJmcbDnM53kNI=; h=Date:Subject:From:To:CC:References:In-Reply-To:From; b=zvUcVATb89PY81Bj1kJlYxXR9r0BWtPRXAS6eQWQ6areO8U7Ksg487wZTigfS/0r8 +s7EjZ4Qc1KiwihQi6GUnNmZ5/DP//2lzY5Jo/PKBu1WCUWkB/RoU5OF39WPQbAuPy i/fVbXgNfmi8D5Q99JxMesYCaRyz9pvj9QL9Ck63YLUufLeHjeTUMYXhq0LBxQY7H8 zhJKoPfD/HgRYu1IndmyB4xBnupyrxrXov/NCRePaZ+PyLeJs7WYUYXHTEJJMkJ58W Wh/3A1tdLYLYsPSTvvWFaxkNp2uBu6AHkjRw/lcK9blkgaRUuGV8yEf6fN1x+Mggz8 bqD1UrvQEGELQ== Date: Thu, 12 Jul 2018 09:20:08 -0700 From: "Hogenson, Raymond E (334H-Affiliate)" Message-ID: <15059048-31A2-41B0-B38D-7AE947C23DA6@cock.li> Thread-Topic: bug#32131: ghc fails to compile packages when installed into profile References: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> <87sh4otphc.fsf@gnu.org> In-Reply-To: <87sh4otphc.fsf@gnu.org> Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit X-Spam-Score: 0.8 (/) X-Mailman-Approved-At: Thu, 12 Jul 2018 12:28:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On 7/12/18, 8:59 AM, "Ludovic Court=C3=A8s" wrote: > Hello, > > Anonymous skribis: > > [...] > > Indeed. Does running: > > guix package -i glibc binutils ld-wrapper > > help? Actually, it does not. Doing that, I get the error ld: cannot find crt1.o: No such file or directory ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) However, if I also set LIBRARY_PATH=/lib then compilation proceeds just fine. It seems like just bringing glibc into the profile does not correctly set LIBRARY_PATH. From unknown Sat Aug 16 18:46:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Anonymous Subject: bug#32131: closed (Re: bug#32131: ghc fails to compile packages when installed into profile) Message-ID: References: <878r8y89ua.fsf@gmail.com> <48f7e837-be75-66b2-8535-636f40c62327@cock.li> X-Gnu-PR-Message: they-closed 32131 X-Gnu-PR-Package: guix Reply-To: 32131@debbugs.gnu.org Date: Fri, 22 Sep 2023 16:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1695401162-24565-1" This is a multi-part message in MIME format... ------------=_1695401162-24565-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #32131: ghc fails to compile packages when installed into profile which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 32131@debbugs.gnu.org. --=20 32131: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32131 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1695401162-24565-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 32131-done) by debbugs.gnu.org; 22 Sep 2023 16:45:59 +0000 Received: from localhost ([127.0.0.1]:37220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjHy-0006NO-9I for submit@debbugs.gnu.org; Fri, 22 Sep 2023 12:45:59 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:41312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjHu-0006Mu-2K for 32131-done@debbugs.gnu.org; Fri, 22 Sep 2023 12:45:56 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-405101a02bcso8112775e9.1 for <32131-done@debbugs.gnu.org>; Fri, 22 Sep 2023 09:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695401137; x=1696005937; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=/DalDzy4ynbfucJ1yGggNUnUQ2XLRLENTveFShMqT0s=; b=W8CQ+vT88SXVo44Uo7sEV9JeIMxfgbsJYsl4bLAJ51n43agEWIL8EbqK5MaR56vSLD oJ0FxvcL5IXLhfwn6QmExg0e3J2quRJqc5q1BuwPxAHQ3Od/fXBie+Pn0JKS3EAvCQSB q4y4HkPOIwq96OOLVAJjAxSH7yu0SkqUOOit2VNJvltFUJTe9q8xs2uj5j3meTGCeIoQ iK0J9uZuBvMUwZv7Hkc14k/N+aSbTlWLRBLMm2JTTd7WY1lH+IOv35PH96Al/GvWTlo7 W3J37C91+w4OgLMDIkbLKozTEn0CJAftRBtZK6GLc33XOMaZeK/29t68Cq8ynYiIB0Hh R7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695401137; x=1696005937; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/DalDzy4ynbfucJ1yGggNUnUQ2XLRLENTveFShMqT0s=; b=SeKional82MCKP0CQSxZarJIFhNzhYMbDRVlUtnaXgwN2oNhy5sdnNN60n8D6XZJXs 9kGcNHzFGD//6o9p+mm8zBoSNC+5+JKFJe0gDsxoFErv3AZw2BzdA23liFH04SlCEpTe 8rlf4Nw5v5iI7auHiIXoz7aVvy2/xmKEvH/Q6ilwRaDUtaaIG3dmWPsCErDWkGL/6s3o bhG4lYtLAisoZmHCP4RAiORku/MILg/AXGkJ4kVp7Ng9miyKpphmqvaKFQ5g44ooJbOB zYHZji5ME59PHlxBhQutjhByxCarS1yS136Y2QVWyow6bFZhW/eGoVyWEgRiYxt2OcXC AG9Q== X-Gm-Message-State: AOJu0Yzz77ftvMBDE7qWSVBdn9pDcNSP+vqqyyw4MnSArJX6tPrGsR70 QzJWabyULZ5pO9Peyh1F3vyJPrkgKbA= X-Google-Smtp-Source: AGHT+IFCfESwR5QgXiVnQ120e+whqx/yjr7P/Gi8TPR73PKP1L8q12T1YiK5S4NF/KnOUE/eta82AQ== X-Received: by 2002:a05:600c:1c20:b0:3fe:21a6:a18 with SMTP id j32-20020a05600c1c2000b003fe21a60a18mr8392521wms.3.1695401137332; Fri, 22 Sep 2023 09:45:37 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id n15-20020a7bcbcf000000b003ff013a4fd9sm5125900wmi.7.2023.09.22.09.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 09:45:37 -0700 (PDT) From: Simon Tournier To: Anonymous Subject: Re: bug#32131: ghc fails to compile packages when installed into profile References: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> Date: Fri, 22 Sep 2023 18:13:33 +0200 In-Reply-To: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> (Anonymous's message of "Wed, 11 Jul 2018 22:12:54 -0700") Message-ID: <878r8y89ua.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32131-done Cc: 32131-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, This old bug #32131, https://issues.guix.gnu.org/issue/32131 is not a bug. It is because gcc-toolchain is missing. On Wed, 11 Jul 2018 at 22:12, Anonymous wrote: > This bug can be reproduced by doing > > =C2=A0=C2=A0=C2=A0 guix package -i ghc > =C2=A0=C2=A0=C2=A0 echo 'main=3Dreturn()' > test.hs > =C2=A0=C2=A0=C2=A0 ghc test.hs > > The expected output is that the program will be compiled, but instead we = get > the error message --8<---------------cut here---------------start------------->8--- $ echo 'main=3Dreturn()' > test.hs $ guix shell -C ghc gcc-toolchain -- ghc test.hs [1 of 1] Compiling Main ( test.hs, test.o ) Linking test ... $ ./test --8<---------------cut here---------------end--------------->8--- Closing. Let me know if I am missing something. Cheers, simon ------------=_1695401162-24565-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Jul 2018 05:27:37 +0000 Received: from localhost ([127.0.0.1]:56237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdU8f-0002va-Bb for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:27:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdTui-0002av-L2 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdTuc-00029F-O8 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_SBL autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdTuc-000291-Kd for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:13:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdTub-0002vY-JZ for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdTuW-00025l-Kp for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:05 -0400 Received: from cock.li ([185.100.85.212]:40010) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdTuW-00024f-64 for bug-guix@gnu.org; Thu, 12 Jul 2018 01:13:00 -0400 To: bug-guix@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1531372376; bh=E5xvy482b09m1fjlZUTD5c/SvAKoMkunYZkd8/XKgm0=; h=To:From:Subject:Date:From; b=O+SpIg/AgpeiyuZA9OanqIa3iPLBu+tfyF158k7rCceAZTe8VUeHh81OGn1u4Rp1o sX/f7Lao3WrHk7cYBczXiaHx07IBsIjlMN8uqylPVUL5NCsZL4Ptj50do1opLCV7RH 3JZYwDFsEsU8UJwX9fS2tTYhriUck2yonIt/VxXacoIyAyxt0JbzVeop1jY1C6hi70 Li4vkWY5tkiCLfThuzMm8nzNrhW1JvxuPotlFv1ajNSjmICkhTBquJVO0RDGk1rKRd Z/DdWKmUHk1zlmYdpRSmmIwpc3K59oqxxCJ/CSSj3Nr5P+3N+efEtR1l/GcGR86Fq2 aGRarOQG2UMdQ== From: Anonymous Subject: ghc fails to compile packages when installed into profile Message-ID: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> Date: Wed, 11 Jul 2018 22:12:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 12 Jul 2018 01:27:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) This bug can be reproduced by doing =C2=A0=C2=A0=C2=A0 guix package -i ghc =C2=A0=C2=A0=C2=A0 echo 'main=3Dreturn()' > test.hs =C2=A0=C2=A0=C2=A0 ghc test.hs The expected output is that the program will be compiled, but instead we=20 get the error message =C2=A0=C2=A0=C2=A0 gcc: error trying to exec 'as': execvp: No such file = or directory =C2=A0=C2=A0=C2=A0 `gcc' failed in phase `C Compiler'. (Exit code: 1) The error is caused, of course, by as not being found in the path.=20 Interestingly, though, the error occurs in gcc, which fails to find as.=20 The general path for compiling things with gcc is to use gcc-toolchain,=20 which brings as and others into the profile, but as ghc calls gcc=20 directly (with no gcc-toolchain), ghc fails to actually compile anything. ------------=_1695401162-24565-1--