[Haskell-cafe] Re: Compilling GHC on Vista

Simon Marlow simonmarhaskell at gmail.com
Thu Apr 26 09:48:20 EDT 2007


Claus Reinke wrote:
>> gcc version 3.4.2 (mingw-special)
>> configure:3288: $? = 0
>> configure:3295: c:/MinGW/bin/gcc -V >&5
>> gcc.exe: `-V' option must have argument
>> configure:3298: $? = 1
>> configure:3321: checking for C compiler default output file name
>> configure:3348: c:/MinGW/bin/gcc    conftest.c  >&5
>> ld: /mingw/lib/crt2.o: No such file: No such file or directory
> 
> not sure whether this is relevant, but there is no drive letter in that 
> library path.
> 
> cygwin doesn't know about /mingw anyway, but if i am in a cmd shell,
> it does matter what drive i'm on, as absolute paths without drive letter
> will default to the root of that drive:
> 
>    D:\>c:\mingw\bin\ld \mingw\lib\crt2.o -M | find "OUTPUT"
>    c:\mingw\bin\ld: \mingw\lib\crt2.o: No such file: No such file or 
> directory
> 
>    C:\>c:\mingw\bin\ld \mingw\lib\crt2.o -M | find "OUTPUT"
>    ..
>    OUTPUT(a.exe pei-i386)

I suspect this may be because gcc has managed to pick up the Cygwin ld instead 
of the mingw one.  Monique - what exactly is your PATH?  What happens when you 
say 'ld --version'?

Cheers,
	Simon


More information about the Haskell-Cafe mailing list