GNU bug report logs - #32131
ghc fails to compile packages when installed into profile

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Anonymous <mcrfan96@HIDDEN>; dated Thu, 12 Jul 2018 05:28:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 32131 <at> debbugs.gnu.org:


Received: (at 32131) by debbugs.gnu.org; 12 Jul 2018 16:28:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 12 12:28:44 2018
Received: from localhost ([127.0.0.1]:57302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fdeSR-000605-R3
	for submit <at> 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 <mcrfan96@HIDDEN>) id 1fdeKN-0005nv-K0
 for 32131 <at> 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
Subject: Re: bug#32131: ghc fails to compile packages when installed into
 profile
From: "Hogenson, Raymond E (334H-Affiliate)" <mcrfan96@HIDDEN>
To: Ludovic Court=C3=A8s <ludo@HIDDEN>
Message-ID: <15059048-31A2-41B0-B38D-7AE947C23DA6@HIDDEN>
Thread-Topic: bug#32131: ghc fails to compile packages when installed into
 profile
References: <48f7e837-be75-66b2-8535-636f40c62327@HIDDEN>
 <87sh4otphc.fsf@HIDDEN>
In-Reply-To: <87sh4otphc.fsf@HIDDEN>
Mime-version: 1.0
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: 7bit
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 32131
X-Mailman-Approved-At: Thu, 12 Jul 2018 12:28:43 -0400
Cc: 32131 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

On 7/12/18, 8:59 AM, "Ludovic Court=C3=A8s" <ludo@HIDDEN> wrote:
> Hello,
>
> Anonymous <mcrfan96@HIDDEN> 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=<path to glibc>/lib

then compilation proceeds just fine. It seems like just bringing glibc
into the profile does not correctly set LIBRARY_PATH.






Information forwarded to bug-guix@HIDDEN:
bug#32131; Package guix. Full text available.

Message received at 32131 <at> debbugs.gnu.org:


Received: (at 32131) by debbugs.gnu.org; 12 Jul 2018 15:59:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 12 11:59:09 2018
Received: from localhost ([127.0.0.1]:57273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fddzo-0005H5-Rx
	for submit <at> 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 <ludo@HIDDEN>) id 1fddzn-0005Gq-Pg
 for 32131 <at> 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 <ludo@HIDDEN>) id 1fddzd-0005QS-GJ
 for 32131 <at> 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 <ludo@HIDDEN>)
 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 <ludo@HIDDEN>)
 id 1fddzc-0001YX-VG; Thu, 12 Jul 2018 11:58:57 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Anonymous <mcrfan96@HIDDEN>
Subject: Re: bug#32131: ghc fails to compile packages when installed into
 profile
References: <48f7e837-be75-66b2-8535-636f40c62327@HIDDEN>
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@HIDDEN> (Anonymous's
 message of "Wed, 11 Jul 2018 22:12:54 -0700")
Message-ID: <87sh4otphc.fsf@HIDDEN>
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-Debbugs-Envelope-To: 32131
Cc: 32131 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.3 (-----)

Hello,

Anonymous <mcrfan96@HIDDEN> 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.




Information forwarded to bug-guix@HIDDEN:
bug#32131; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jul 2018 05:27:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 12 01:27:37 2018
Received: from localhost ([127.0.0.1]:56237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fdU8f-0002va-Bb
	for submit <at> 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 <mcrfan96@HIDDEN>) id 1fdTui-0002av-L2
 for submit <at> 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 <mcrfan96@HIDDEN>) id 1fdTuc-00029F-O8
 for submit <at> 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 <mcrfan96@HIDDEN>) id 1fdTuc-000291-Kd
 for submit <at> 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 <mcrfan96@HIDDEN>) id 1fdTub-0002vY-JZ
 for bug-guix@HIDDEN; Thu, 12 Jul 2018 01:13:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mcrfan96@HIDDEN>) id 1fdTuW-00025l-Kp
 for bug-guix@HIDDEN; 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 <mcrfan96@HIDDEN>) id 1fdTuW-00024f-64
 for bug-guix@HIDDEN; Thu, 12 Jul 2018 01:13:00 -0400
To: bug-guix@HIDDEN
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 <mcrfan96@HIDDEN>
Subject: ghc fails to compile packages when installed into profile
Message-ID: <48f7e837-be75-66b2-8535-636f40c62327@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.





Acknowledgement sent to Anonymous <mcrfan96@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#32131; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.