Digraph.lhs broken?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Digraph.lhs broken?

Joel Reymont
/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

--
http://wagerlabs.com/





_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Esa Ilari Vuokko
On 8/19/06, Joel Reymont <[hidden email]> 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 <[hidden email]>
  * 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
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Joel Reymont
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 <[hidden email]> 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  
> <[hidden email]>
>  * 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/





_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Esa Ilari Vuokko
On 8/19/06, Joel Reymont <[hidden email]> wrote:

> 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

Erk.  I thought you shouldn't see this...ghci is getting built on stage1?
Well, anyway, I think that was in patch

Wed Aug  9 19:30:12 FLE Standard Time 2006  Esa Ilari Vuokko <[hidden email]>
  * Remove HasBounds-instance and implement MArray.getBounds instead

HTH,
--Esa
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Joel Reymont
hsSyn/Convert.lhs:625:32: Not in scope: `TH.pkgString'
<<ghc: 49770416 bytes, 8 GCs, 2578002/5045464 avg/max bytes residency  
(2 samples), 18M in use, 0.00 INIT (0.01 elapsed), 0.10 MUT (0.35  
elapsed), 0.08 GC (0.17 elapsed) :ghc>>
make[1]: *** [stage1/hsSyn/Convert.o] Error 1


--
http://wagerlabs.com/





_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Joel Reymont
In reply to this post by Esa Ilari Vuokko
What's wierd is that I cannot run darcs annotate to see what patch  
changed the bit that's failing:

darcs annotate -v compiler/hsSyn/Convert.lhs
darcs failed:  There is no file or directory named 'compiler/hsSyn/
Convert.lhs'

ls -al compiler/hsSyn/Convert.lhs
-rw-r--r--   1 joelr  joelr  24050 Aug 19 00:46 compiler/hsSyn/
Convert.lhs


--
http://wagerlabs.com/





_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Pepe Iborra-3
I have that issue with Darcs too. Mac Os Intel here. Is that related maybe ?

On 19/08/06, Joel Reymont <[hidden email]> wrote:

> What's wierd is that I cannot run darcs annotate to see what patch
> changed the bit that's failing:
>
> darcs annotate -v compiler/hsSyn/Convert.lhs
> darcs failed:  There is no file or directory named 'compiler/hsSyn/
> Convert.lhs'
>
> ls -al compiler/hsSyn/Convert.lhs
> -rw-r--r--   1 joelr  joelr  24050 Aug 19 00:46 compiler/hsSyn/
> Convert.lhs
>
>
> --
> http://wagerlabs.com/
>
>
>
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Digraph.lhs broken?

Joel Reymont
Yes, I'm on Mac Intel. Fixing these issues as I go along.

On Aug 19, 2006, at 9:31 AM, pepe wrote:

> I have that issue with Darcs too. Mac Os Intel here. Is that  
> related maybe ?
>

--
http://wagerlabs.com/





_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users