ghc 6.3 windows (mingw) cannot invoke gcc correctly

Simon Peyton-Jones simonpj at microsoft.com
Mon Oct 20 15:20:58 EDT 2003


I have just installed a fresh mingw, including gcc 3.2.3 
from the Mingw download at mingw.org

I then did 'make clean;make' on my source tree, and it all worked fine.

It's hard to say what is going wrong for you.  Are you *very carefully*
following the 
instructions in the building guide?
http://www.haskell.org/ghc/docs/latest/html/building/winbuild.html

Are you totally up to date in your entire fptools tree?

Have you made clean and reconfigured from scratch.


(though for the HEAD, you now have to say 'autoreconf' instead of
'autoconf')
(And I believe that --build=i386-unknown-mingw32 is better than
--host=...)

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org
[mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of kyra
| Sent: 18 October 2003 20:01
| To: glasgow-haskell-users at haskell.org
| Subject: ghc 6.3 windows (mingw) cannot invoke gcc correctly
| 
| Hi,
| 
| After downgrading a mingw gcc from 3.3.1 to 3.2.3 I've managed to
build and
| install ghc 6.3 compiler.
| 
| Unfortunately, it cannot compile source files. It seems it incorrectly
| invokes gcc .
| 
| "ghc -c -v filt.hs" gives something like this:
| 
| ghc-6.3 (incorrect):
| ...................
| *** Assembler
| g:\Progs\ghc-6.3\gcc -B"g:\Progs\ghc-6.3\gcc-lib/" -I. -I. -c
| C:\DOCUME~1\Awson\LOCALS~1\Temp\ghc1252.s -o .\Main.o
| 
| Failed: g:\Progs\ghc-6.3\gcc -B"g:\Progs\ghc-6.3\gcc-lib/" -I. -I. -c
| C:\DOCUME~1\Awson\LOCALS~1\Temp\ghc1252.s -o .\Main.orawSystem: does
not
| exist (No such file or directory)
| 
| ...................
| 
| 
| ghc-6.0.1 (correct):
| ...................
| *** Assembler
| G:\Progs\ghc-6.0.1\gcc -B"G:\Progs\ghc-6.0.1\gcc-lib/" "-I." "-I."
"-c"
| "C:\DOCUME~1\Awson\LOCALS~1\Temp\ghc812.s" "-o" "filt.o"
| 
| ...................
| 
| Meanwhile, ghc-6.3 correctly outputs intermediate .c or .s (when
compiling
| without gcc) files.
| 
| I'm completely stuck.
| 
| Regards,
| Kyra
| 
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users




More information about the Glasgow-haskell-users mailing list