Mark H Weaver <m...@netris.org> 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