Hello world fails on Win32
mloffler at students.cs.uu.nl
mloffler at students.cs.uu.nl
Sat Feb 28 19:05:16 EST 2004
Hi,
Two months ago there has been a discussion started by Gour with the
subject "Hello world fails on Win32". I just upgraded to ghc 6.2 (on
win98), and experienced the same problem. I don't have a clue what is
wrong, but I did find out that the failing command does not fail when
entered manually. So, quoting Gour's last message:
> c:\ghc\ghc-6.2\gcc.exe -B"C:\GHC\GHC-6.2\gcc-lib\/" -I. -I. -c
c:\tmp\ghc-522475.s -o main.o
>
> Failed: c:\ghc\ghc-6.2\gcc.exe -B"C:\GHC\GHC-6.2\gcc-lib\/" -I. -I. -c
c:\tmp\ghc-522475.s -o main.orawSystem: does not exist (No such file or
directory)
> *** Deleting temp files
> Deleting: c:/tmp/ghc-522475.s
I get a similar error. But when I run ghc with the option -keep-tmp-files,
and then after this error manually enter the exact same command, in this
case:
c:\ghc\ghc-6.2\gcc.exe -B"C:\GHC\GHC-6.2\gcc-lib\/" -I. -I. -c
c:\tmp\ghc-522475.s -o main.o
then it does work. After that, another error occures when gcc is called by
the linker, which can be worked around analoguously.
I don't know whether this problem has been solved yet during the past two
months, but maybe this helps...
Maarten Löffler
More information about the Glasgow-haskell-bugs
mailing list