Changes between Version 5 and Version 6 of Building/Windows


Ignore:
Timestamp:
Mar 15, 2007 12:10:08 PM (8 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Windows

    v5 v6  
    425425}}} 
    426426 
     427== What to look for if your build fails == 
     428 
     429This section collects typical failure cases, and what to do abouut them. 
     430 
     431=== Configure can't find darcs version === 
     432 
     433When you run your configure script, it falls over with  
     434{{{ 
     435sh-2.04$ ./configure --with-gcc=c:/mingw/bin/gcc --host=i386-unknown-mingw32 
     436configure: WARNING: If you wanted to set the --build type, don't use --host. 
     437    If a cross compiler is detected then cross compile mode will be used. 
     438checking for GHC version date... -nThe system cannot find the file specified. 
     439configure: error: failed to detect version date: check that darcs is in your path 
     440}}} 
     441This error is nothing to do with `darcs`!  The darcs-version test in `configure` uses `sort`, and it is picking up the Windows sort (in `c:\windows\system32`) instead of the MSYS or Cygwin sort.   
     442 
     443Solution: either hack the configure script by hand, or (better) make sure that MSYS/Cygwin are in your PATH before Windows. Since `c:\windows\system32` is, by default, in the System Environment Variable called PATH, and System Variables come first when searching for paths, you'll have to put MSYS/Cygwin bin directory in the System PATH, before `c:\windows\system32`. 
     444 
     445(Incidentally, `find` is another program that Windows has too, with different functionality to Unix.)