SM:
> ghc can't find your .mc_hi files, which either means they're not
> there, which doesn't seem to be the case as you point out above, or
> ghc is looking in the wrong place.  You could 'make EXTRA_HC_OPTS=-v'
> to find out if that's the case.

Tried that, results appended, below.  Still not quite clear what's going
on, seems to indeed be looking in the wrong place, but I'm not quite
sure where, or why.


> One thing that commonly causes this is when you are building on a
> different machine than the one on which you configured the build, and
> the location of the build tree is different (due to an automounter or
> whatever).  If that's the case, just re-configure and make boot.

Hadn't thought of that, redid it just to check.

(The file are actually in ~abf/ghc-3.01/build/ghc/lib/std/Prel*.mc_hi
if that makes sense of what follows, which _looks_ like the right place
for them.)

Slainte,
Alex.
_____

oconnor.ucc.ie:~/ghc-3.01/build/ghc/lib/exts: gnumake all EXTRA_HC_OPTS=-v
------------------------------------------------------------------------
===fptools== Recursively making `all' for ways: p mc mr mp ...
PWD = /export/home/ferguson/ghc-3.01/build/ghc/lib/exts
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gnumake way=p all;
PWD = /export/home/ferguson/ghc-3.01/build/ghc/lib/exts
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gnumake way=mc all;
PWD = /export/home/ferguson/ghc-3.01/build/ghc/lib/exts
------------------------------------------------------------------------
rm -f Addr.mc_o ; if [ ! -d Addr ]; then mkdir Addr; else find Addr -name 
'*.mc_o' -print | xargs rm -f __rm_food ; fi ; 
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-split-objs -odir Addr -hisuf mc_hi -concurrent  -v -c Addr.lhs -o Addr.mc_o 
-osuf mc_o
The Glorious Glasgow Haskell Compilation System, version 3.01, patchlevel 0

literate pre-processor:
        echo '#line 1 "Addr.lhs"' > /tmp/ghc28058.lpp && 
/usr/local/ghc-3.01/lib/unlit  Addr.lhs -  >> /tmp/ghc28058.lpp

real        0.0
user        0.0
sys         0.0

Effective command line: -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-split-objs -odir Addr -hisuf mc_hi -concurrent -v -c -o Addr.mc_o -osuf mc_o

Haskellised C pre-processor:
        echo '{-# LINE 1 "Addr.lhs" -}' > /tmp/ghc28058.cpp && 
/usr/local/ghc-3.01/lib/hscpp -v  '-D__CONCURRENT_HASKELL__' -D__HASKELL1__=4 
-D__GLASGOW_HASKELL__=301   -I. -I/usr/local/ghc-3.01/lib/includes 
-I/usr/local/ghc-3.01/lib/includes /tmp/ghc28058.lpp >> /tmp/ghc28058.cpp

real        0.0
user        0.0
sys         0.0
hscpp:CPP invoked: /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3/cpp 
-traditional -D__CONCURRENT_HASKELL__ -D__HASKELL1__=4 -D__GLASGOW_HASKELL__=301 
-I. -I/usr/local/ghc-3.01/lib/includes -I/usr/local/ghc-3.01/lib/includes 
/tmp/ghc28058.lpp
ghc:compile:Output file Addr/Addr.mc_o doesn't exist
ghc:compile:Interface file Addr.mc_hi doesn't exist
ghc:recompile:Input file Addr.lhs newer than Addr/Addr.mc_o

Haskell compiler:
        /usr/local/ghc-3.01/lib/hsc ,-N ,-W ,/tmp/ghc28058.cpp  -fglasgow-exts 
-fglobalise-toplev-names -fconcurrent -fdo-eta-reduction -fsimplify [  
-fkeep-spec-pragma-ids -fmax-simplifier-iterations1 -fpedantic-bottoms ] 
-fsimplify [  -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case 
-fdo-case-elim -fcase-merge -fdo-lambda-eta-expansion -freuse-con 
-fpedantic-bottoms  -fsimpl-uf-use-threshold3 -fmax-simplifier-iterations4  ] 
-ffull-laziness -ffloat-inwards -fsimplify [  -ffloat-lets-exposing-whnf 
-ffloat-primops-ok -fcase-of-case -fdo-case-elim -fcase-merge -fdo-eta-reduction 
-fdo-lambda-eta-expansion -freuse-con  -fpedantic-bottoms  
-fsimpl-uf-use-threshold3 -fmax-simplifier-iterations4  ] -fstrictness 
-fsimplify [  -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case 
-fdo-case-elim -fcase-merge -fdo-lambda-eta-expansion -freuse-con -flet-to-case 
-fpedantic-bottoms  -fsimpl-uf-use-threshold3 -fmax-simplifier-iterations4  ] 
-ffloat-inwards -fsimplify [  -ffloat-lets-exposing-whnf -ffloat-primops-ok 
-fcase-of-case -fdo-case-elim -fcase-merge -fdo-lambda-eta-expansion -freuse-con 
-flet-to-case -fignore-inline-pragma  -fpedantic-bottoms  
-fsimpl-uf-use-threshold3 -fmax-simplifier-iterations4  ] -fupdate-analysis 
-flambda-lift   -flet-no-escape -fwarn-overlapping-patterns 
-fwarn-missing-methods -fwarn-duplicate-exports 
-himap=./%.mc_hi:/usr/local/ghc-3.01/lib/imports/conc/%.mc_hi:/usr/local/ghc-3.0
1/lib/imports/conc/%.mc_hi:/usr/local/ghc-3.01/lib/imports/exts/%.mc_hi:/usr/loc
al/ghc-3.01/lib/imports/conc/%.mc_hi:/usr/local/ghc-3.01/lib/imports/exts/%.mc_h
i:/usr/local/ghc-3.01/lib/imports/std/%.mc_hi   -v -hifile=/tmp/ghc28058.hi 
-C=/tmp/ghc28058.hc +RTS -H6000000 -K1000000 -s/tmp/ghc28058.stat
Glasgow Haskell Compiler, version 3.01, for Haskell 1.4
 
Addr.lhs:8: Could not find valid interface file `Prelude'
 
Addr.lhs:10: Could not find valid interface file `PrelAddr'


Compilation had errors

real        0.0
user        0.0
sys         0.0
deleting... /tmp/ghc28058.lpp /tmp/ghc28058.cpp /tmp/ghc28058.hi 
/tmp/ghc28058.hc /tmp/ghc28058.stat

rm -f /tmp/ghc28058*
gnumake[1]: *** [Addr.mc_o] Error 1
gnumake: *** [all] Error 2
oconnor.ucc.ie:~/ghc-3.01/build/ghc/lib/exts: 

Reply via email to