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.  I carefully went in and cleaed out ghc from 
/usr/local/bin|lib before starting anything:

[kevina@kevins-linux bin]$ ls -F 
Ted*       happy@       libtoolize*       texi2html~*
Xvnc@      happy-1.5*   miditext*         txtplay*
aclocal*   hugs*        netscape@         vncpasswd@
acroread@  ifnames*     run-with-aspell*  vncserver@
aspell*    java@        runhugs*          vncviewer@
cpp@       javac@       soffice@          xwp*
drvmidi*   latex2html@  texi2html*        xwp~*

[kevina@kevins-linux lib]$ ls -F 
aspell/      libaspell.la*    libaspell.so.2.0.0*
happy-1.5/   libaspell.so@    libclient.a
libaspell.a  libaspell.so.2@

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