build woes

Geoffrey Mainland mainland at
Fri Jun 7 10:09:53 CEST 2013

On 06/07/2013 08:54 AM, Simon Peyton-Jones wrote:
> Ian
 > Following yesterday's problem I deleted
 > /home/simonpj/.ghc/x86_64-linux-7.7/package.conf.d/package.cache
 > But now 'sh validate' gives this (below), complaining that the file I 
deleted doesn't exist!
 > But it wouldn't exist on a clean machine, would it.  I'm very confused.
 > Thanks
 > Simon
 > "inplace/bin/ghc-cabal" configure libraries/ghc-prim dist-install "" 
--flag=include-ghc-prim --disable-library-for-ghci 
--enable-library-vanilla --disable-library-profiling --enable-shared 
--configure-option=CFLAGS="-Wall -fno-stack-protector 
-Werror=unused-but-set-variable -Wno-error=inline" 
--configure-option=LDFLAGS=" -Wl,--hash-size=31 
-Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   " 
--with-gcc="/usr/bin/gcc" --with-ld="/usr/bin/ld" 
--configure-option=--with-cc="/usr/bin/gcc" --with-ar="/usr/bin/ar" 
--with-ranlib="true" --with-alex="/home/simonpj/.cabal/bin/alex" 
 > Configuring ghc-prim-
 > /home/simonpj/.ghc/x86_64-linux-7.7/package.conf.d/package.cache: 
openBinaryFile: does not exist (No such file or directory)
 > make[1]: *** [libraries/ghc-prim/dist-install/] Error 1
 > make: *** [all] Error 2
 > simonpj at cam-05-unx:~/5builds/HEAD-1$
 > Microsoft Research Limited (company number 03369488) is registered in 
England and Wales
 > Registered office is at 21 Station Road, Cambridge, CB1 2FB

/home/simonpj/.ghc/x86_64-linux-7.7/package.conf.d wouldn't exist on a
clean machine either. Perhaps the existence of
/home/simonpj/.ghc/x86_64-linux-7.7/package.conf.d leads GHC to expect
/home/simonpj/.ghc/x86_64-linux-7.7/package.conf.d/package.cache to

I'm sure if you blow away /home/simonpj/.ghc/x86_64-linux-7.7 all will 
be well.


More information about the ghc-devs mailing list