installing ghc without already having ghc

Jessica Brennan [staff] jib at panix.com
Wed May 4 09:01:48 EDT 2005


On Wed, 4 May 2005, Simon Marlow wrote:

> On 03 May 2005 18:55, Jessica Brennan [staff] wrote:
>
>> 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
>
> Someone else has reported the same problem, but I still don't know what
> causes it.
>
> Could you try the following and send me the output:
>
>  $ cd ghc/lib/compat
>  $ make show VALUE=ghc_ge_603
ghc_ge_603="NO"
>  $ make show VALUE=EXCLUDED_SRCS
EXCLUDED_SRCS=""
>  $ make show VALUE=HS_SRCS
HS_SRCS="Compat/Directory.hs Compat/RawSystem.hs 
Distribution/Compat/ReadP.hs Distribution/Extension.hs 
Distribution/GetOpt.hs Distribution/InstalledPackageInfo.hs 
Distribution/License.hs Distribution/Package.hs Distribution/ParseUtils.hs 
Distribution/Setup.hs Distribution/Version.hs 
System/Directory/Internals.hs"

> > and this *might* fix it: > >  $ rm .depend
>  $ make boot UseStage1=YES EXTRA_HC_OPTS='-O -fvia-C -keep-hc-files'
>  $ make UseStage1=YES EXTRA_HC_OPTS='-O -fvia-C -keep-hc-files'

Yep that fixed it, thanks!

-Jessica

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


More information about the Glasgow-haskell-users mailing list