Subject: bug#32131: ghc fails to compile packages when installed into profile

From: "Hogenson, Raymond E (334H-Affiliate)" <[email-masked]>
Date: Thu, 12 Jul 2018 09:20:08 -0700

On 7/12/18, 8:59 AM, "Ludovic Court=C3=A8s" <[email-masked]> wrote:
> Hello,
>
> Anonymous <[email-masked]> 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.