Kevin Atkinson wrote:
> 
> Ok on the advice of Kirstin S. Reese who said:
> >
> > You are using a new version of glibc, and your newly compiled hsc is
> > crashing.
> >
> > This problem is caused by the call to fflush(stdout) in shutdownHaskell in
> > RtsStartup. The call to fflush is no longer needed.
> >
> > You cannot simply comment this out, however, as hsc is linked to your
> > installed libraries while the new libraries are being compiled. The missing
> > fflush prevents the images from being the same size.
> >
> > You will have to comment out the fflush, and bootstrap from the .hc files,
> > as if no binary existed for your platform.
> 
> tar xfvz ghc-4.02-src.tar.gz
> cd fptools
> tar xfvz ../ghc-4.02-x86-hc.tar.gz
> # went in and commented out fflush in ghc/rts/RtsStartup.c
> ./configure --enable-hc-boot
> make boot
> make all
> ./configure
> cd ghc/lib
> make boot
> 
> and everthing worked fine but when I did a make all
> 
> I got the same error.  

Here is what I got.  Sorry for leaving it out.

------------------------------------------------------------------------
==fptools== make all -r;
 in /usr/local/src/fptools/ghc/lib/std
------------------------------------------------------------------------
rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase; else find
PrelBase -name '*.o' -print | xargs rm -f __rm_food ; fi ;    
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing
-O -split-objs -odir PrelBase  -H10m  -c PrelBase.lhs -o PrelBase.o
-osuf o
make[1]: *** [PrelBase.o] Error 1
make: *** [all] Error 1


> I am using Redhat 6.0.
> 
> After looking through the bug archive I realized that I was having the
> exact same problem that Giuliano P Procida had.  Is there a known fix
> for this problem as commenting out the fflush did not seam to work.

-- 
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/

Reply via email to