From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anonymous Subject: bug#32131: ghc fails to compile packages when installed into profile Date: Wed, 11 Jul 2018 22:12:54 -0700 Message-ID: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdU98-0005nv-Tl for bug-guix@gnu.org; Thu, 12 Jul 2018 01:28:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdU94-0000HP-Ux for bug-guix@gnu.org; Thu, 12 Jul 2018 01:28:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdU94-0000Gp-O3 for bug-guix@gnu.org; Thu, 12 Jul 2018 01:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fdU94-0002wG-CH for bug-guix@gnu.org; Thu, 12 Jul 2018 01:28:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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 Content-Language: en-US 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: 32131@debbugs.gnu.org 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.