Can't install 32-bit ghc-7.8.1 on 64-bit xubuntu 14.04

Hi, I have unpacked ghc-7.8.1-i386-unknown-linux-deb7.tar.xz to ~/data/Work/ghc-7.8.1-i386. Now I have the following: awson@awsonvirt:~/data/Work/ghc-7.8.1-i386$ ./configure --prefix=/home/awson/data/ghc-7.8.1-i386 checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /home/awson/data/Work/ghc-7.8.1-i386/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: No such file or directory configure: error: cannot determine current directory ghc-pwd is definitely there but it does not start it seems. Perhaps, the system lacks some shared libs or something. There absolutely no problems with 64-bit ghc. Regards, Kyra

On 04/11/14 11:47 AM, kyra wrote:
Hi,
I have unpacked ghc-7.8.1-i386-unknown-linux-deb7.tar.xz to ~/data/Work/ghc-7.8.1-i386.
Now I have the following:
awson@awsonvirt:~/data/Work/ghc-7.8.1-i386$ ./configure --prefix=/home/awson/data/ghc-7.8.1-i386 checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /home/awson/data/Work/ghc-7.8.1-i386/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: No such file or directory configure: error: cannot determine current directory
ghc-pwd is definitely there but it does not start it seems. Perhaps, the system lacks some shared libs or something.
There absolutely no problems with 64-bit ghc.
Yes, you get the error like that when you try to execute different ABI or unsuppored ABI binary. Do that with ARM binary on x86 and you will get the same error for example. What you have forgotten is to install i386 libs on your purely amd64 xubuntu probably... Cheers, Karel

Yup, I've already guessed this. More specifically: which :i386 packages should I install to make it work? Regards, Kyra On 4/11/2014 13:57, Karel Gardas wrote:
On 04/11/14 11:47 AM, kyra wrote:
Hi,
I have unpacked ghc-7.8.1-i386-unknown-linux-deb7.tar.xz to ~/data/Work/ghc-7.8.1-i386.
Now I have the following:
awson@awsonvirt:~/data/Work/ghc-7.8.1-i386$ ./configure --prefix=/home/awson/data/ghc-7.8.1-i386 checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /home/awson/data/Work/ghc-7.8.1-i386/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd:
No such file or directory configure: error: cannot determine current directory
ghc-pwd is definitely there but it does not start it seems. Perhaps, the system lacks some shared libs or something.
... What you have forgotten is to install i386 libs on your purely amd64 xubuntu probably...
Cheers, Karel _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

install ia32-libs: http://askubuntu.com/a/297155 YMMV. You are much better off using 64-bit software on 64-bit Ubuntu.
On Apr 11, 2014, at 10:33, kyra
wrote: Yup, I've already guessed this. More specifically: which :i386 packages should I install to make it work?
Regards, Kyra
On 4/11/2014 13:57, Karel Gardas wrote:
On 04/11/14 11:47 AM, kyra wrote: Hi,
I have unpacked ghc-7.8.1-i386-unknown-linux-deb7.tar.xz to ~/data/Work/ghc-7.8.1-i386.
Now I have the following:
awson@awsonvirt:~/data/Work/ghc-7.8.1-i386$ ./configure --prefix=/home/awson/data/ghc-7.8.1-i386 checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /home/awson/data/Work/ghc-7.8.1-i386/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: No such file or directory configure: error: cannot determine current directory
ghc-pwd is definitely there but it does not start it seems. Perhaps, the system lacks some shared libs or something. ... What you have forgotten is to install i386 libs on your purely amd64 xubuntu probably...
Cheers, Karel _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

ia32-libs is absent on modern Ubuntus. But if anyone is interested installing lib32ncurses5 and libgmp10:i386 did the 'configure' trick. But now 'make install' fails with: "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc-pkg" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1" '' '/home/awson/data/ghc-7.8.1-i386' '/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1' '/home/awson/data/ghc-7.8.1-i386/share/doc/ghc/html/libraries' NO ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi magic number mismatch: old/corrupt interface file? (wanted 33214052, got 129742) Kyra On 4/11/2014 14:43, Alain O'Dea wrote:
install ia32-libs: http://askubuntu.com/a/297155
YMMV. You are much better off using 64-bit software on 64-bit Ubuntu.
On Apr 11, 2014, at 10:33, kyra
wrote: Yup, I've already guessed this. More specifically: which :i386 packages should I install to make it work?
Regards, Kyra
On 4/11/2014 13:57, Karel Gardas wrote:
On 04/11/14 11:47 AM, kyra wrote: Hi,
I have unpacked ghc-7.8.1-i386-unknown-linux-deb7.tar.xz to ~/data/Work/ghc-7.8.1-i386.
Now I have the following:
awson@awsonvirt:~/data/Work/ghc-7.8.1-i386$ ./configure --prefix=/home/awson/data/ghc-7.8.1-i386 checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: line 3: /home/awson/data/Work/ghc-7.8.1-i386/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: No such file or directory configure: error: cannot determine current directory
ghc-pwd is definitely there but it does not start it seems. Perhaps, the system lacks some shared libs or something. ... What you have forgotten is to install i386 libs on your purely amd64 xubuntu probably...
Cheers, Karel _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

Don't bother. That was a usual 32/64-bit mess when installer picked up something from 64-bit ghc, which was in a path. Cheers, Kyra On 4/11/2014 15:00, kyra wrote:
ia32-libs is absent on modern Ubuntus.
But if anyone is interested installing lib32ncurses5 and libgmp10:i386 did the 'configure' trick.
But now 'make install' fails with: "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc-pkg" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1" '' '/home/awson/data/ghc-7.8.1-i386' '/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1' '/home/awson/data/ghc-7.8.1-i386/share/doc/ghc/html/libraries' NO ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi magic number mismatch: old/corrupt interface file? (wanted 33214052, got 129742)
Kyra

Sorry for flood, but it turned out the problem remains. My previous message was a mistake. Now I've removed all GHC installations from paths but this does not help. Did anybody successfully install 32-bit ghc-7.8.1 on 64-bit linux? Regards, Kyra On 4/11/2014 16:50, kyra wrote:
Don't bother. That was a usual 32/64-bit mess when installer picked up something from 64-bit ghc, which was in a path.
Cheers, Kyra
On 4/11/2014 15:00, kyra wrote:
ia32-libs is absent on modern Ubuntus.
But if anyone is interested installing lib32ncurses5 and libgmp10:i386 did the 'configure' trick.
But now 'make install' fails with: "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc-pkg" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1" '' '/home/awson/data/ghc-7.8.1-i386' '/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1' '/home/awson/data/ghc-7.8.1-i386/share/doc/ghc/html/libraries' NO ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi magic number mismatch: old/corrupt interface file? (wanted 33214052, got 129742)
Kyra
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

Kyrill,
I think that at the moment, you can't really install a 32-bit GHC on a
64-bit platform. I've actually had a few reports 'in the wild' about
there being problems with this, but I'm not sure if there's actually
an official ticket regarding it. We should dig one up or file one if
there isn't.
In theory I see no reason why this should not be doable, but I can't
imagine off the top of my head what might really be going wrong.
Simon, do you perhaps have an idea? Or have you heard of this/tried it maybe?
On Fri, Apr 11, 2014 at 8:17 AM, kyra
Sorry for flood, but it turned out the problem remains. My previous message was a mistake. Now I've removed all GHC installations from paths but this does not help. Did anybody successfully install 32-bit ghc-7.8.1 on 64-bit linux?
Regards, Kyra
On 4/11/2014 16:50, kyra wrote:
Don't bother. That was a usual 32/64-bit mess when installer picked up something from 64-bit ghc, which was in a path.
Cheers, Kyra
On 4/11/2014 15:00, kyra wrote:
ia32-libs is absent on modern Ubuntus.
But if anyone is interested installing lib32ncurses5 and libgmp10:i386 did the 'configure' trick.
But now 'make install' fails with: "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc-pkg" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1" '' '/home/awson/data/ghc-7.8.1-i386' '/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1' '/home/awson/data/ghc-7.8.1-i386/share/doc/ghc/html/libraries' NO ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi magic number mismatch: old/corrupt interface file? (wanted 33214052, got 129742)
Kyra
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Regards, Austin Seipp, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/

The installation (and using the 32bit GHC on a 64bit Linux, to an extent) should now be possible, as described at https://ghc.haskell.org/trac/ghc/wiki/Building/Compiling32on64 On Fri, Apr 11, 2014 at 08:58:51AM -0500, Austin Seipp wrote:
Kyrill,
I think that at the moment, you can't really install a 32-bit GHC on a 64-bit platform. I've actually had a few reports 'in the wild' about there being problems with this, but I'm not sure if there's actually an official ticket regarding it. We should dig one up or file one if there isn't.
In theory I see no reason why this should not be doable, but I can't imagine off the top of my head what might really be going wrong.
Simon, do you perhaps have an idea? Or have you heard of this/tried it maybe?
On Fri, Apr 11, 2014 at 8:17 AM, kyra
wrote: Sorry for flood, but it turned out the problem remains. My previous message was a mistake. Now I've removed all GHC installations from paths but this does not help. Did anybody successfully install 32-bit ghc-7.8.1 on 64-bit linux?
Regards, Kyra
On 4/11/2014 16:50, kyra wrote:
Don't bother. That was a usual 32/64-bit mess when installer picked up something from 64-bit ghc, which was in a path.
Cheers, Kyra
On 4/11/2014 15:00, kyra wrote:
ia32-libs is absent on modern Ubuntus.
But if anyone is interested installing lib32ncurses5 and libgmp10:i386 did the 'configure' trick.
But now 'make install' fails with: "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1/bin/ghc-pkg" "/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1" '' '/home/awson/data/ghc-7.8.1-i386' '/home/awson/data/ghc-7.8.1-i386/lib/ghc-7.8.1' '/home/awson/data/ghc-7.8.1-i386/share/doc/ghc/html/libraries' NO ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi magic number mismatch: old/corrupt interface file? (wanted 33214052, got 129742)
Kyra
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Regards,
Austin Seipp, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/
participants (5)
-
Alain O'Dea
-
Austin Seipp
-
Karel Gardas
-
kyra
-
Mikolaj Konarski