From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: bug#34850: ghc compiling error Date: Wed, 13 Mar 2019 23:48:33 +0100 Message-ID: <87tvg64chq.fsf@nckx> References: 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 ([209.51.188.92]:38103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4Cot-0004Md-68 for bug-guix@gnu.org; Wed, 13 Mar 2019 18:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4CgJ-00067K-5c for bug-guix@gnu.org; Wed, 13 Mar 2019 18:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4CgI-000677-Mc for bug-guix@gnu.org; Wed, 13 Mar 2019 18:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4CgI-0005Yg-BL for bug-guix@gnu.org; Wed, 13 Mar 2019 18:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: 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: mikadoZero Cc: 34850@debbugs.gnu.org mikadoZero, mikadoZero wrote: > `guix describe` > guix fd4c7a0 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: fd4c7a098a508c1de7a8513c0f3d88d5a0df12e7 > > I have ghc in my system configuration file. I have just done a=20 > pull and > reconfigure. > > `which ghc` > /run/current-system/profile/bin/ghc > > I created a one line hello world program: > > ```haskell > main =3D putStrLn "hello, world" > ``` > > Then I tried to compile it with ghc. I get this error. > > `ghc Main`=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 > [1 of 1] Compiling Main ( Main.hs, Main.o ) > gcc: error trying to exec 'as': execvp: No such file or=20 > directory > `gcc' failed in phase `Assembler'. (Exit code: 1) > > I have tested compiling the same hello world program with the=20 > same ghc > command and it works fine on a none Guix System. Does the other system have =E2=80=98as=E2=80=99 installed? Install the=20 =E2=80=98gcc-toolchain=E2=80=99 package that provides it and try again. Usually, this kind of error means that ghc needs to be patched to=20 invoke =E2=80=98as=E2=80=99 from an absolute file name instead of searching= $PATH.=20 There may have been good reasons not to do this (such as closure=20 size), or it might be an oversight. Kind regards, T G-R