From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30395: =?UTF-8?Q?=E2=80=98gcc=E2=80=99?= doesn't compile with LD_LIBRARY_PATH="$HOME/.guix-profile/lib" Date: Fri, 16 Feb 2018 11:14:46 +0100 Message-ID: <87k1vdqm09.fsf@gnu.org> References: <87vaf72y9w.fsf@gnu.org> 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]:37718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emd2n-0000eV-Dj for bug-guix@gnu.org; Fri, 16 Feb 2018 05:15:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emd2k-0005S6-9L for bug-guix@gnu.org; Fri, 16 Feb 2018 05:15:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emd2k-0005S0-4d for bug-guix@gnu.org; Fri, 16 Feb 2018 05:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1emd2j-0007Dq-OL for bug-guix@gnu.org; Fri, 16 Feb 2018 05:15:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87vaf72y9w.fsf@gnu.org> (Mathieu Lirzin's message of "Thu, 08 Feb 2018 18:20:59 +0100") 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: Mathieu Lirzin Cc: 30395@debbugs.gnu.org Hi Mathieu, Mathieu Lirzin skribis: > I have been facing a weird issue where some shitty build tool I was > using has tried to run =E2=80=98cmake=E2=80=99 after setting LD_LIBRARY_P= ATH. The > result was a non terminating call to =E2=80=98collect2=E2=80=99. > > Here is a way to reproduce the issue: > > $ guix environment --pure --ad-hoc gcc-toolchain > $ echo "int main() { return 0; }" > foo.c > $ LD_LIBRARY_PATH=3D"$HOME/.guix-profile/lib" gcc foo.c That works for me (i.e., =E2=80=98gcc=E2=80=99 runs to completion just fine= .) But I suppose this depends on what=E2=80=99s in ~/.guix-profile/lib. If you have a conflicting GCC version there (which is not the case for me), it could break. Could you run the snippet you provided above with =E2=80=98--verbose=E2=80= =99 passed to =E2=80=98gcc=E2=80=99? That will allow us to see what libraries and tools = it picks up. > When adding =E2=80=98binutils=E2=80=99 to the environment, the problem di= ssapears since > =E2=80=98ld-wrapper=E2=80=99 is not used anymore. What makes you think =E2=80=98ld-wrapper=E2=80=99 is involved? Anyway, the =E2=80=98--verbose=E2=80=99 output should give us more insight. Thanks, Ludo=E2=80=99.