[Haskell-cafe] Re: problems installing ghc 6.6 with extralibs (bad interface file)

Simon Marlow simonmarhaskell at gmail.com
Tue Feb 27 06:17:03 EST 2007


Thomas Hartman wrote:
> I installed ghc 6.6 from source ok. But then when I tried installing
> it with the "extralibs" to get all the functionality that had been
> unbundled in 6.6, I hit a glitch.
> 
> Anyone ever seen anything like this?
> 
> In case it matters, this is ssh-ed in to a virtualized user mode linux 
> session.
> 
> *****************************************
> 
> thartman at linodewhyou:~/haskellInstalls$ cat install-ghc-6.6.sh
> if [ ! -f ghc-6.6-src.tar.bz2 ]; then
>  wget http://www.haskell.org/ghc/dist/6.6/ghc-6.6-src.tar.bz2
> fi
> 
> if [ ! -f ghc-6.6-src-extralibs.tar.bz2 ]; then
>  wget http://www.haskell.org/ghc/dist/6.6/ghc-6.6-src-extralibs.tar.bz2
> fi
> 
> 
> tar -tvjf ghc-6.6-src.tar.bz2
> tar -tvjf ghc-6.6-src-extralibs.tar.bz2
> pushd ghc-6.6
>  ./configure
>  make
>  make install
> popd
> thartman at linodewhyou:~/haskellInstalls$ sudo ./install-ghc-6.6.sh 2>&1
> | tee out.txt
> thartman at linodewhyou:~/haskellInstalls$ tail -n20 out.txt
> ------------------------------------------------------------------------
> make[2]: Nothing to be done for `install'.
> ------------------------------------------------------------------------
> == make install - --no-print-directory -r;
> in /home/thartman/haskellInstalls/ghc-6.6/utils/ghc-pkg
> ------------------------------------------------------------------------
> Creating a symbolic link from ghc-pkg-6.6 to ghc-pkg in /usr/local/bin
> for i in ghc-pkg-6.6; do \
>                /usr/bin/install -c -m 755    $i /usr/local/bin; \
>        done
> /usr/local/bin/ghc -H16m -O -cpp -Wall -fno-warn-name-shadowing
> -fno-warn-unused-matches -i../../compat -ignore-package Cabal
> -Rghc-timing     -c Main.hs -o Main.o  -ohi Main.hi
> 
> Main.hs:19:0:
>    Bad interface file: ../../compat/Distribution/InstalledPackageInfo.hi
>        mismatched interface file versions: expected 6060, found 6
> <<ghc: 24591324 bytes, 4 GCs, 106128/106128 avg/max bytes residency (1
> samples), 16M in use, 0.00 INIT (0.02 elapsed), 0.25 MUT (0.42
> elapsed), 0.10 GC (0.12 elapsed) :ghc>>
> make[2]: *** [Main.o] Error 1
> make[1]: *** [install] Error 1
> make: *** [install] Error 1

I'm guessing what happened is that during the install the build system decided 
to rebuild ghc-pkg (I'm not sure why), but by that time you had already 
installed the new compiler, and the previous interface files weren't compatible 
with the new compiler.  (I don't know why that would be the case either, since 
both compilers are 6.6...).

You might be able to work around it by

   $ (cd compat && make clean && make UseStage1=YES)
   $ (cd utils && make clean && make UseStage1=YES)

Cheers,
	Simon



More information about the Haskell-Cafe mailing list