Digraph.lhs broken?
Joel Reymont
joelr1 at gmail.com
Fri Aug 18 20:54:41 EDT 2006
Thanks Esa! And what patch is this?
/usr/local/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -
istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -
istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/
specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -
istage1/simplStg -istage1/codeGen -istage1/main -istage1/
profiling -istage1/parser -istage1/cprAnalysis -istage1/
ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGen -
istage1/ghci -Istage1 -DGHCI -DBREAKPOINT -package template-haskell -
threaded -package readline -DUSE_READLINE -cpp -fglasgow-exts -fno-
generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package
unix -ignore-package lang -recomp -Rghc-timing -H16M '-#include
"cutils.h"' -i../compat -ignore-package Cabal -c ghci/
ByteCodeLink.lhs -o stage1/ghci/ByteCodeLink.o -ohi stage1/ghci/
ByteCodeLink.hi
ghci/ByteCodeLink.lhs:161:4:
`getBounds' is not a (visible) method of class `MArray'
ghci/ByteCodeLink.lhs:161:40: Not in scope: `getBounds'
<<ghc: 41585012 bytes, 8 GCs, 2832740/5554788 avg/max bytes residency
(2 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (0.16
elapsed), 0.08 GC (0.09
On Aug 19, 2006, at 1:47 AM, Esa Ilari Vuokko wrote:
> On 8/19/06, Joel Reymont <joelr1 at gmail.com> wrote:
>> /usr/local/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -
>> istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -
>> istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/
>> specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -
>> istage1/simplStg -istage1/codeGen -istage1/main -istage1/
>> profiling -istage1/parser -istage1/cprAnalysis -istage1/
>> ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGen -
>> istage1/ghci -Istage1 -DGHCI -DBREAKPOINT -package template-haskell -
>> threaded -package readline -DUSE_READLINE -cpp -fglasgow-exts -fno-
>> generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package
>> unix -ignore-package lang -recomp -Rghc-timing -H16M '-#include
>> "cutils.h"' -i../compat -ignore-package Cabal -fglasgow-exts -c
>> utils/Digraph.lhs -o stage1/utils/Digraph.o -ohi stage1/utils/
>> Digraph.hi
>>
>> utils/Digraph.lhs:133:12:
>> Ambiguous occurrence `indices'
>> It could refer to either `GHC.Arr.indices', imported from Array
>> at utils/Digraph.lhs:43:0-11
>> or `Data.Array.Base.indices', imported
>> from Data.Array.ST at utils/Digraph.lhs:48:0-19
>>
>> utils/Digraph.lhs:139:18:
>> Ambiguous occurrence `bounds'
>> It could refer to either `GHC.Arr.bounds', imported from Array
>> at utils/Digraph.lhs:43:0-11
>> or `Data.Array.Base.bounds', imported from
>> Data.Array.ST at utils/Digraph.lhs:48:0-19
>
> I think I know why that is happening.
>
> This is because you are compiling ghc 6.5 using older (few weeks
> and more)
> ghc 6.5. During this time Array-interfaces changed in base, and ghc
> had to be patched for it. The fix is to either use previous
> release of
> ghc (6.4) for stage1 or unpull/rollback patch
>
> Wed Aug 9 19:13:41 FLE Standard Time 2006 Esa Ilari Vuokko
> <ei at vuokko.info>
> * Fix Array imports
>
> for stage1. But you will need to reapply it for stage2.
>
> I haven't tried this, but it should work :-)
>
> HTH,
> --Esa Ilari Vuokko
--
http://wagerlabs.com/
More information about the Glasgow-haskell-users
mailing list