MSYS build - stage 2 problem

Simon Marlow simonmar at microsoft.com
Fri Mar 19 11:04:34 EST 2004


> Hmmm... Look at this:
> 
> $ ../../ghc/utils/hsc2hs/hsc2hs -v --no-compile -Iinclude 
> -I../../ghc/includes 
> -Icbits/regex -I.    System\CPUTime.hsc
> 
> Fail: SystemCPUTime.hsc: openFile: does not exist (No such 
> file or directory)
> 
> 
> $ ../../ghc/utils/hsc2hs/hsc2hs -v --no-compile -Iinclude 
> -I../../ghc/includes 
> -Icbits/regex -I.    System/CPUTime.hsc
> 
> 
> which means it makes a difference if hsc2hs is invoked with the file
> containing '\' or '/'. (in 2nd case CPUTime_hsc_make.c is created)

That is because your shell is translating '\C' to 'C'.  This is standard
POSIX shell behaviour, nothing to do with how Windows understands
filenames.

On the shell command line, you should use '/' as the directory
separator.

Cheers,
	Simon


More information about the Cvs-ghc mailing list