problem with unix package

Frederik Eaton frederik at a5.repetae.net
Thu Apr 19 13:24:37 EDT 2007


Now, I have run 'make' again and there is an error message:

[32 of 32] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
rm -f -rf X11/setup
mkdir X11/setup
cp X11/Setup.*hs X11/setup
cd X11/setup && /home/frederik/arch/i386/bin/ghc -Wall --make -i../../bootstrapping.cabal Setup.*hs -o Setup
[32 of 32] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
rm -f -rf time/setup
mkdir time/setup
cp time/Setup.*hs time/setup
cd time/setup && /home/frederik/arch/i386/bin/ghc -Wall --make -i../../bootstrapping.cabal Setup.*hs -o Setup
[32 of 32] Compiling Main             ( Setup.hs, Setup.o )

Setup.hs:35:32:
    Couldn't match expected type `()'
           against inferred type `GHC.IOBase.ExitCode'
      Expected type: IO ()
      Inferred type: IO GHC.IOBase.ExitCode
    In the second argument of `withCurrentDirectory', namely
        `(system "make")'
    In the expression: withCurrentDirectory "test" (system "make")
make[1]: *** [time/setup/Setup] Error 1
make[1]: Leaving directory `/home/frederik/ghcbuild/libraries'
make: *** [stage1] Error 2

Linking with the 'unix' package is turning into a very difficult
problem!

Frederik

On Thu, Apr 19, 2007 at 05:02:15PM +0100, Frederik Eaton wrote:
> Those commands caused my computer to become so unusably slow that I
> had to hard-reboot. How much RAM is needed? I have 512MB...
> 
> Frederik
> 
> On Thu, Apr 19, 2007 at 04:34:21PM +0200, Pepe Iborra wrote:
> > 
> > On 19/04/2007, at 16:15, Stefan O'Rear wrote:
> > 
> > >On Thu, Apr 19, 2007 at 03:10:10PM +0100, Frederik Eaton wrote:
> > >>Thanks. How do I get the HEAD?
> > >
> > >darcs get --partial http://darcs.haskell.org/ghc
> > >cd ghc
> > >chmod +x darcs-all
> > >./darcs-all --extra get
> > >cd ..
> > >mkdir ghcbuild
> > >cd ghcbuild
> > >lndir ../ghc
> > >autoreconf
> > 
> > sh boot
> > 
> > >./configure
> > >make
> > >su -c 'make install'
> > >
> > >This particular issue will almost certainly be fixed in 6.6.1 (which
> > >isn't released yet).
> > >
> > >In the meantime, if you don't want to use the darcs version of the
> > >compiler, note that unix works fine in programs compiled with -fvia-C.
> > >
> > >Stefan
> > >_______________________________________________
> > >Libraries mailing list
> > >Libraries at haskell.org
> > >http://www.haskell.org/mailman/listinfo/libraries
> > 
> > _______________________________________________
> > Libraries mailing list
> > Libraries at haskell.org
> > http://www.haskell.org/mailman/listinfo/libraries
> > 
> 
> -- 
> http://ofb.net/~frederik/
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
> 

-- 
http://ofb.net/~frederik/


More information about the Libraries mailing list