From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#32131: ghc fails to compile packages when installed into profile Date: Thu, 12 Jul 2018 17:58:55 +0200 Message-ID: <87sh4otphc.fsf@gnu.org> References: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fde0l-0006C9-OV for bug-guix@gnu.org; Thu, 12 Jul 2018 12:00:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fde0g-0006ry-Mz for bug-guix@gnu.org; Thu, 12 Jul 2018 12:00:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fde0g-0006rj-D0 for bug-guix@gnu.org; Thu, 12 Jul 2018 12:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fde0g-0005Ii-39 for bug-guix@gnu.org; Thu, 12 Jul 2018 12:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> (Anonymous's message of "Wed, 11 Jul 2018 22:12:54 -0700") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Anonymous Cc: 32131@debbugs.gnu.org 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.