On 02/09/2011 07:53, Simon Peyton-Jones wrote:
Thanks to Daniel.  Ian, Simon, I have a question about installing extra libs.

|    quasiquotation/qq006                qq006 [stderr mismatch] (normal)

I get "Could not find module `Text.ParserCombinators.Parsec.Char'".  Presumably 
the test depends on parsec.

Similarly for T3087 which needs 'syb', although the error message is different:
<command line>: cannot satisfy -package syb
     (use -v for more information)

How do I install parsec or syb?

The Building Guide has two conflicting pieces of advice:

* http://hackage.haskell.org/trac/ghc/wiki/Commentary/Libraries
    add it to the 'packages' file

This is for adding new packages permanently, e.g. because we want to depend on them in GHC. (this page is not supposed to be part of the Building Guide, where did you find a link to it?)

* http://hackage.haskell.org/trac/ghc/wiki/Debugging/InstallingPackagesInplace
    use 'cabal install'

This is the page you want.  (it's linked under the Building Guide).

And I vaguely remember that there's a third option:

* Unpack it into $(TOP)/libraries, and it'll automatically get built.

We have a mechanism called "extra packages" which behaves like this, but the packages have to have an entry in the 'packages' file.

Cheers,
        Simon


But I'm not sure which of these is recommended.  Can you advise?  I'll update 
the wiki once I understand.



|
| More output than expected and the location of the expected error moved one
| line down.
|
|
|
|    deriving/should_run                 T3087 [exit code non-0]
| (normal,hpc,optasm,profasm,threaded1,threaded2,dyn,profthreaded)
|    deriving/should_run                 T3087 [bad stdout or stderr] (ghci)
|
| Message:
|
| T3087.hs:28:19:
|     Ambiguous occurrence `ext2Q'
|     It could refer to either `Main.ext2Q', defined at T3087.hs:20:1
|                           or `Data.Generics.ext2Q',
|                              imported from `Data.Generics' at
| T3087.hs:5:1-20
|                              (and originally defined in
| `Data.Generics.Aliases')
|
| T3087.hs:31:20:
|     Ambiguous occurrence `ext2Q'
|     It could refer to either `Main.ext2Q', defined at T3087.hs:20:1
|                           or `Data.Generics.ext2Q',
|                              imported from `Data.Generics' at
| T3087.hs:5:1-20
|                              (and originally defined in
| `Data.Generics.Aliases')
|
| Change in syb?
|
|
|    programs/galois_raytrace            galois_raytrace [exit code non-0]
| (normal,hpc,optasm,profasm,threaded1,threaded2,dyn,profthreaded)
|    programs/galois_raytrace            galois_raytrace [bad stdout or
| stderr] (ghci)
|
| Fails due to Haskell98 imports (Array, List, ...), the same applies to the
| raytrace test in hpc. Fixing the imports, galois_raytrace passes, but
| hpc_raytrace produces bad stdout:
|
|    ../../libraries/hpc/tests/raytrace  hpc_raytrace [bad stdout]
| (normal,hpc,optasm,profasm,threaded1,threaded2,dyn,profthreaded)
|
|
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc


_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc


_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to