stg_ap_v_ret porting crash: solved?

Rafael Martinez Torres rmartine at fdi.ucm.es
Thu Sep 18 11:09:27 EDT 2003




On Fri, 12 Sep 2003, Simon Marlow wrote:

> > ----------
> > ../../ghc/utils/ghc-pkg/ghc-pkg-inplace --update-package
> > <package.conf.inplace
> > /usr/users/eden/scratch/ghc-6.0.1/ghc/driver/package.conf.inpl
> > ace: parse error in package config file
> > gmake[1]: *** [../../ghc/driver/stamp-pkg-conf-base] Error 1
> > gmake: *** [boot] Error 1
>
> Have you done 'make boot' in ghc/driver?
>
mips-sgi-irix65:
----------------

1.- OK.  The "distrib/hc-build" migth not handle the dependencies soundly.

Now I build on the target T as in the host H:

cd hslibs/ && gmake boot && gmake
cd ghc	 && gmake boot && gmake

The "touch config.h" patch seems to solve the stg_ap_v_ret bug...

2.- Now the problem seems to be another one:

bash-2.05$ ghc/compiler/ghc-inplace  hello.hs

crash, and tracing the core it seems a problem having to do with gmp
software:

bash-2.05a$ gdb ghc-6.0.1 core

# 0x1153a208 in __decodeFloat ()

if I apply the "-v" flag, then

bash-2.05$ ghc/compiler/ghc-inplace -v hello.hs
bash-2.05a$ gdb ghc-6.0.1  core

# 0x11554ae4 in __gmpn_tdiv_qr / ( qp=0x454ed518 ...)

Any idea ?

3) Simon M. : For the time beeing this is the patch you can integrate
safely into the CVS repository . I have read-only permissions. There is no
doubt on it.-------------- next part --------------
--- MBlock.c.ori	2003-09-18 09:42:10.000000000 +0200
+++ MBlock.c	2003-09-18 09:42:44.000000000 +0200
@@ -97,6 +97,12 @@
 	ret = mmap(addr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
 	close(fd);
     }
+#elif irix_TARGET_OS
+    { 
+	int fd = open("/dev/zero",O_RDONLY);
+	ret = mmap(addr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
+	close(fd);
+    }
 #elif hpux_TARGET_OS
     ret = mmap(addr, size, PROT_READ | PROT_WRITE, 
 	       MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);


More information about the Glasgow-haskell-users mailing list