From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: [PATCH 3/3] gnu: Add ghc. Date: Sun, 22 Mar 2015 21:31:46 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZmXE-0007Av-LQ for guix-devel@gnu.org; Sun, 22 Mar 2015 16:31:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZmXD-0001Sf-AF for guix-devel@gnu.org; Sun, 22 Mar 2015 16:31:48 -0400 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:35637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZmXD-0001SW-1N for guix-devel@gnu.org; Sun, 22 Mar 2015 16:31:47 -0400 Received: by lbcgn8 with SMTP id gn8so106014329lbc.2 for ; Sun, 22 Mar 2015 13:31:46 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel Mark H Weaver writes: > All attempts to build ghc on i686 have failed, according to Hydra. > > http://hydra.gnu.org/job/gnu/master/ghc-7.8.4.i686-linux/all > http://hydra.gnu.org/build/331946/log/tail-reload > > Would you be willing to take a look? I've already had a look last week-end, but I've not found a fix yet. The error message configure: error: cannot determine current directory is the same that I was getting before patching the file ghc-7.8.4/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd in the binary distribution for x86_64. ldd on that file for the i386 executable gives (from a Debian shell): linux-gate.so.1 => (0xf779c000) librt.so.1 => /lib32/librt.so.1 (0xf777b000) libutil.so.1 => /lib32/libutil.so.1 (0xf7777000) libdl.so.2 => /lib32/libdl.so.2 (0xf7773000) libgmp.so.10 => not found libm.so.6 => /lib32/libm.so.6 (0xf774d000) libHSdirectory-1.2.1.0-ghc7.8.4.so => not found libHSunix-2.7.0.1-ghc7.8.4.so => not found libHSbytestring-0.10.4.0-ghc7.8.4.so => not found libHStime-1.4.2-ghc7.8.4.so => not found libHSold-locale-1.0.0.6-ghc7.8.4.so => not found libHSdeepseq-1.3.0.2-ghc7.8.4.so => not found libHSarray-0.5.0.0-ghc7.8.4.so => not found libHSfilepath-1.3.0.2-ghc7.8.4.so => not found libHSbase-4.7.0.2-ghc7.8.4.so => not found libHSinteger-gmp-0.5.1.0-ghc7.8.4.so => not found libHSghc-prim-0.3.1.0-ghc7.8.4.so => not found libHSrts-ghc7.8.4.so => not found libffi.so.6 => not found libc.so.6 => /lib32/libc.so.6 (0xf75e5000) libpthread.so.0 => /lib32/libpthread.so.0 (0xf75ca000) /lib/ld-linux.so.2 (0xf779d000) while for x86_64 gives: linux-vdso.so.1 => (0x00007fff94fe8000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe65ca09000) libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fe65c806000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe65c602000) libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007fe65c392000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe65c110000) libHSdirectory-1.2.1.0-ghc7.8.4.so => not found libHSunix-2.7.0.1-ghc7.8.4.so => not found libHSbytestring-0.10.4.0-ghc7.8.4.so => not found libHStime-1.4.2-ghc7.8.4.so => not found libHSold-locale-1.0.0.6-ghc7.8.4.so => not found libHSdeepseq-1.3.0.2-ghc7.8.4.so => not found libHSarray-0.5.0.0-ghc7.8.4.so => not found libHSfilepath-1.3.0.2-ghc7.8.4.so => not found libHSbase-4.7.0.2-ghc7.8.4.so => not found libHSinteger-gmp-0.5.1.0-ghc7.8.4.so => not found libHSghc-prim-0.3.1.0-ghc7.8.4.so => not found libHSrts-ghc7.8.4.so => not found libffi.so.6 => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe65bd80000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe65bb63000) /lib64/ld-linux-x86-64.so.2 (0x00007fe65cc29000) All haskell libraries are found with the help of the ghc build system and I patch the hardcoded interpreter with (system* "patchelf" "--set-interpreter" (string-append (assoc-ref inputs "libc") (glibc-dynamic-linker))) I'm not sure about the difference between "linux-vdso.so.1" and "linux-gate.so.1". As far as I understand they are the gateway into the kernel for system calls, but have zero experience with that. Any help would be appreciated. Regards, Fede