title: "couldn't make stderr distinct from stdout" when running Cygwin commands
body: <p>I am trying to setup some old version of Cygwin on my Windows 7 x64 OS. So far so good. Now I am stuck at srdout/stderr distinction problem:</p>
  
  <pre><code>$ vmake
    1 [main] make 7060 dtable::stdio_init: couldn't make stderr distinct from stdout
  
  $ ls /
    1 [main] ls 8180 dtable::stdio_init: couldn't make stderr distinct from stdout
  Cygwin.bat  Cygwin.ico  bin  cygdrive  etc  lib  proc  setup.log  setup.log.full  tmp  usr  var
  </code></pre>
  
  <p>I am running:</p>
  
  <pre><code>$ uname -srv
    1 [main] uname 5876 dtable::stdio_init: couldn't make stderr distinct from stdout
  CYGWIN_NT-6.1-WOW64 1.5.25(0.156/4/2) 2008-06-12 19:34
  </code></pre>
  
  <p>The Cygwin installation had DOS line-endings option selected (for some legacy code compatibility).</p>
  
  <p>To fix another issues with line endings (bash had troubles processing /cygdrive/c/cygwin-legacy/bin/vmake script, like issue described here: <a href="http://chess.eecs.berkeley.edu/softdevel/faq/5.html">http://chess.eecs.berkeley.edu/softdevel/faq/5.html</a> ) I've added these to ~/.bash_profile:</p>
  
  <pre><code>export SHELLOPTS
  set -o igncr
  </code></pre>
  
  <p>After reading <a href="http://lists-archives.com/cygwin/50369-run-requires-cygwin-tty.html">http://lists-archives.com/cygwin/50369-run-requires-cygwin-tty.html</a> I also set:</p>
  
  <pre><code>$ CYGWIN=tty
  </code></pre>
  
  <p>This changed nothing. I am still getting</p>
  
  <pre><code>1 [main] make 7060 dtable::stdio_init: couldn't make stderr distinct from stdout
  </code></pre>
  
  <p>with different 4-digit number each time.</p>