Changes between Version 25 and Version 26 of Building/Troubleshooting


Ignore:
Timestamp:
Oct 23, 2009 10:03:21 AM (5 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Troubleshooting

    v25 v26  
    66 
    77We don't expect anyone to read this page from beginning to end.  The only way you get here is by searching, so remember when adding a new entry the most important thing to do is to '''include the error message verbatim''', so searches will find it.  If a build failure is caused by a bug in GHC or the build system, please link to the ticket number so we can tell when it's safe to remove the entry and keep this page from getting too crufty. 
     8 
     9== tar: unable to record current working directory: No such file or directory == 
     10 
     11On MSYS I got this, during the construction of a binary distribution: 
     12{{{ 
     13... 
     14cd bindistprep && "/usr/bin/tar" cf - ghc-6.13.20091020 | bzip2 -c > ../bindistprep/ghc-6.13.20091020-i386-unknown-mingw32.tar.bz2 
     15/usr/bin/tar: unable to record current working directory: No such file or directory 
     16}}} 
     17It turns out that, at least on my Windows XP machine, the `tar` in the MSYS bundle for 1.0.10 (namely `tar` version 1.19.90) simply fails when creating a tar archive for a directory.  For example: 
     18{{{ 
     19sh-3.1$ tar cf foo.tar mk 
     20tar: unable to record current working directory: No such file or directory 
     21sh-3.1$ tar --version 
     22tar (GNU tar) 1.19.90 
     23}}} 
     24I fixed this by downloading an up-to-date `tar`, from [http://sourceforge.net/projects/mingw/files/].  I put this `tar.exe` in `c:/msys/1.0/bin`, overwriting the old `tar.exe`.  This works: 
     25{{{ 
     26sh-3.1$ tar cf foo.tar mk 
     27tar: unable to record current working directory: No such file or directory 
     28sh-3.1$ tar --version 
     29tar (GNU tar) 1.22 
     30}}} 
     31Simon and/or Ian plan to investigate; is MSYS 1.0.10 really so broken? 
    832 
    933== wget: missing URL ==