[GHC] #9421: Problems and workarounds when installing and using a 32bit GHC on 64bit Linux machine (was: magic number mismatch when installing 32bit on 64bit machine)

GHC ghc-devs at haskell.org
Mon Sep 1 17:00:17 UTC 2014


#9421: Problems and workarounds when installing and using a 32bit GHC on 64bit
Linux machine
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:  MikolajKonarski
  MikolajKonarski                    |           Status:  new
                  Type:  bug         |        Milestone:
              Priority:  normal      |          Version:  7.8.3
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  x86_64 (amd64)
      Operating System:  Linux       |       Difficulty:  Unknown
       Type of failure:  Installing  |       Blocked By:
  GHC failed                         |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by MikolajKonarski):

 * owner:   => MikolajKonarski


Old description:

> This is basically the same problem as reported here:
>
> https://www.mail-archive.com/ghc-devs@haskell.org/msg04439.html
>
> I have empty .cabal and .ghc, no ghc in paths and I have old Ubuntu LTS
> (12.04.4) so I was able to install ia32-libs and a few other libs
>
> I've downloaded
>
> http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-i386-unknown-linux-
> deb7.tar.xz
>
> configured, and make install says:
>

> {{{
> Installing library in
> /mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/haskell98-2.0.0.3
> "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy
> libraries/haskell2010 dist-install "strip" ''
> '/mikolaj/env/7.8.3i386/local/src/ghc'
> '/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3'
> '/mikolaj/env/7.8.3i386/local/src/ghc/share/doc/ghc/html/libraries' 'v p
> dyn'
> Installing library in
> /mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/haskell2010-1.1.2.0
> "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc-pkg" --force
> --global-package-db
> "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/package.conf.d"
> update rts/dist/package.conf.install
> Reading package info from "rts/dist/package.conf.install" ... done.
> "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register
> libraries/ghc-prim dist-install
> "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc"
> "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc-pkg"
> "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3" ''
> '/mikolaj/env/7.8.3i386/local/src/ghc'
> '/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3'
> '/mikolaj/env/7.8.3i386/local/src/ghc/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)
> make[1]: *** [install_packages] Error 1
> make: *** [install] Error 2
> }}}

New description:

 I'm compiling i386 binaries on amd64 linux and reporting problems and
 workarounds in this meta ticket.

 The very first problem I encounter is a magic number mismatch message.
 This is basically the same problem as reported here:

 https://www.mail-archive.com/ghc-devs@haskell.org/msg04439.html

 I have empty .cabal and .ghc, no ghc in paths and I have old Ubuntu LTS
 (12.04.4) so I was able to install ia32-libs and a few other libs

 I've downloaded

 http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-i386-unknown-linux-
 deb7.tar.xz

 configured, and make install says:


 {{{
 Installing library in
 /mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/haskell98-2.0.0.3
 "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy
 libraries/haskell2010 dist-install "strip" ''
 '/mikolaj/env/7.8.3i386/local/src/ghc'
 '/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3'
 '/mikolaj/env/7.8.3i386/local/src/ghc/share/doc/ghc/html/libraries' 'v p
 dyn'
 Installing library in
 /mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/haskell2010-1.1.2.0
 "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc-pkg" --force
 --global-package-db
 "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/package.conf.d" update
 rts/dist/package.conf.install
 Reading package info from "rts/dist/package.conf.install" ... done.
 "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register
 libraries/ghc-prim dist-install
 "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc"
 "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3/bin/ghc-pkg"
 "/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3" ''
 '/mikolaj/env/7.8.3i386/local/src/ghc'
 '/mikolaj/env/7.8.3i386/local/src/ghc/lib/ghc-7.8.3'
 '/mikolaj/env/7.8.3i386/local/src/ghc/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)
 make[1]: *** [install_packages] Error 1
 make: *** [install] Error 2
 }}}

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9421#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list