[Haskell] Re: Help with installing greencard-3.01

Ryo Furue furue at hawaii.edu
Mon Sep 20 23:49:23 EDT 2004


Hello all,

If you have already received this, I appologize.
I had sent it to haskell at haskell.org before I subscribed
to this mailing list.  Then I got an automatic reply, saying
my posting was waiting for the moderator's approval since
it was posted from a non-subscribed address.  Immediatedly
after receiving this automatic reply did I subscribed,
but I still don't see my posting.  So I assume that the
moderator is on vacation :-) and post this again.

Cheers,
Ryo

==============================
Hello all,

I'm new to this mailing list and not quite sure if this is
an appropriate place to ask this.  If not, I'd appreciate it
if you could direct me to a more suitable place.

I compiled from source and installed GHC 6.2.1 on my Debian
GNU/Linux box.  That went flawlessly.  Now I'm trying to
install greencard-3.01.  The installation phase goes wrong:

>>>> begin quote >>>>>>>>>>>>>>>>>>>>>>
make[1]: Entering directory `/home/amakihi/furue/tmp/greencard-3.01/lib'
cpp -x c -DINSTALLING -DLIBDIR=\"/usr/local/lib/greencard-3.01\" -DPACKAGE=\"greencard\" -DPACKAGE_DEPS=' "base"' -DLIBRARY=\"HSgreencard\" package.conf.in \
| sed -e 's/^#.*$//g' -e 's/""//g' -e 's/, ]/ ]/g' \
| ghc-pkg --force --update-package
Reading package info from stdin...
Fail: Couldn't parse package configuration.
make[1]: *** [install-pkg] Error 1
<<<<< end quote <<<<<<<<<<

Could someone know what is wrong?

I grabbed the result of the "cpp ... | sed ... " pipe and separately
fed ghc-pkg with it, and I got the same error.  I'm attaching the
result of the pipe at the end of this message.

Also, I found that 

   GHC_OPTS = -cpp -fglasgow-exts -fno-prune-tydecls

in greencard-3.01/lib/Makefile causes error with ghc 6.2.1,
which says '-fno-prune-tydecls' is an invalid argument.
I removed this option and the compilation of greencard went
well.  But, is this really OK?

Thank you,
Ryo
======================
[Result of the "cpp ... | sed ... " pipe]

Package {
        name            = "greencard" ,
        auto            = True,

        import_dirs     = [ "/usr/local/lib/greencard-3.01" "/imports" ],



        source_dirs     = [],

        library_dirs    = [ "/usr/local/lib/greencard-3.01"  ],



        hs_libraries    = [ "HSgreencard"  ],
        extra_libraries = [],

        include_dirs    = [],



        c_includes      = [],
        package_deps    = [ "base"  ],
        extra_ghc_opts  = [],
        extra_cc_opts   = [],
        extra_ld_opts   = []
}


More information about the Haskell mailing list