Hi,

I had got the green-card version 2 from
ftp://ftp.dcs.glasgow.ac.uk/pub/haskell/glasgow/green-card/gc-v2-270498_tar.gz
(I don't know if it is the right version of green-card for using with ghc
2.10)
and I had the folowing problem when I tried to compile it:

ppedemon$ make all
make[1]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/src'
make[1]: Leaving directory `/usr1/fcional/apps/haskell/green-card-v2/src'
make[1]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/lib'
make[2]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/lib/ghc'
/usr1/fcional/bin/ghc2.10 -fglasgow-exts -fno-prune-tydecls -fvia-C -c
StdDIS.hs -o StdDIS.o
 
StdDIS.hs:135: No instance for: `CCallable Word32'
    arising from an argument in the _ccall_ to do {static struct {void *
res1;int gc_failed;void * gc_failstring;} gc_result;
               unsigned int arg1;void * res1;int gc_failed;
                                             char* gc_failstring;
               arg1 = %0;
               do {res1 = malloc(arg1);
                   if (gc_failed = ( res1==0 )) {gc_failstring =  "malloc failed"  ;}
                   else {gc_failed = 0;}
                   gc_result.res1 = (void *)(res1);
                   gc_result.gc_failed = gc_failed;
                   gc_result.gc_failstring = gc_failstring;
                   
                   %r = &gc_result;} while(0);} while(0);, namely `arg1' at 
StdDIS.hs:135
    When checking signature(s) for: `malloc'
 
StdDIS.hs:135: No instance for: `CCallable Word32'
    arising from an argument in the _ccall_ to do {static struct {void *
res1;int gc_failed;void * gc_failstring;} gc_result;
               unsigned int arg1;void * res1;int gc_failed;
                                             char* gc_failstring;
               arg1 = %0;
               do {res1 = malloc(arg1);
                   if (gc_failed = ( res1==0 )) {gc_failstring =  "malloc failed"  ;}
                   else {gc_failed = 0;}
                   gc_result.res1 = (void *)(res1);
                   gc_result.gc_failed = gc_failed;
                   gc_result.gc_failstring = gc_failstring;
                   
                   %r = &gc_result;} while(0);} while(0);, namely `arg1' at 
StdDIS.hs:135
    When checking signature(s) for: `malloc'

Compilation had errors
make[2]: *** [StdDIS.o] Error 1
make[2]: Leaving directory `/usr1/fcional/apps/haskell/green-card-v2/lib/ghc'
make[2]: Entering directory
`/usr1/fcional/apps/haskell/green-card-v2/lib/hugs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr1/fcional/apps/haskell/green-card-v2/lib/hugs'
make[1]: Leaving directory `/usr1/fcional/apps/haskell/green-card-v2/lib'


I have been using a machine running Solaris 2.4 and ghc version 2.10.
I will appreciate so much your help.

Thanks in advance

Sincerly yours,
Pablo


Reply via email to