installing ghc without already having ghc

Jessica Brennan [staff] jib at panix.com
Tue May 3 13:55:25 EDT 2005


I was able to fix my previous errors by adding -I/usr/local/bin. However I 
am getting more errors later in the build.

In stage 2 of the cross compiling build I am getting errors at this phase:
$ cd H/ghc/lib
$ make clean
$ make -k UseStage1=YES EXTRA_HC_OPTS='-O -fvia-C -keep-hc-files'

------------------------------------------------------------------------
===fptools== Recursively making `all' in compat ...
PWD = /devel/build/NetBSD/ghc/ghc-6.4-host/ghc/lib
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all -rk;
  in /devel/build/NetBSD/ghc/ghc-6.4-host/ghc/lib/compat
------------------------------------------------------------------------
../../../ghc/compiler/stage1/ghc-inplace -H16m -O -H32m -I. -Rghc-timing 
-I../../../libraries -fglasgow-exts -no-recomp   -O -fvia-C -keep-hc-files 
-c System/Directory/Internals.hs -o System/Directory/Internals.o  -ohi 
System/Directory/Internals.hi

System/Directory/Internals.hs:1:0:
     Module `System.Directory.Internals' is a member of package base-1.0.
     To compile this module, please use -ignore-package base-1.0.
<<ghc: 13436620 bytes, 3 GCs, 47324/47324 avg/max bytes residency (1 
samples), 31M in use, 0.00 INIT (0.01 elapsed), 0.22 MUT (2.29 elapsed), 
0.04 GC (0.29 elapsed) :ghc>>
gmake[1]: *** [System/Directory/Internals.o] Error 1

If I do as it suggests and add "-ignore-package base-1.0", I get the 
following errors:

------------------------------------------------------------------------
==fptools== gmake all -rk;
  in /devel/build/NetBSD/ghc/ghc-6.4-host/ghc/lib/compat
------------------------------------------------------------------------
../../../ghc/compiler/stage1/ghc-inplace -H16m -O -H32m -I. -Rghc-timing 
-I../../../libraries -fglasgow-exts -no-recomp   -O -fvia-C -keep-hc-files 
-ignore-package base-1.0 -c System/Directory/Internals.hs -o 
System/Directory/Internals.o  -ohi System/Directory/Internals.hi

System/Directory/Internals.hs:1:0:
     Failed to load interface for `Prelude':
         Could not find module `Prelude': use -v to see a list of the files 
searched for
<<ghc: 6701220 bytes, 2 GCs, 47456/47456 avg/max bytes residency (1 
samples), 24M in use, 0.00 INIT (0.03 elapsed), 0.07 MUT (2.84 elapsed), 
0.01 GC (0.30 elapsed) :ghc>>
gmake[1]: *** [System/Directory/Internals.o] Error 1
gmake[1]: Target `all' not remade because of errors.

Any suggestions?

-Jessica

~~~~~~~~~~~~~~
jib at panix.com
Panix Staff


More information about the Glasgow-haskell-users mailing list