delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/02/10:15:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v753.1)
In-Reply-To: <0D6D42D2-1441-4985-81BB-1BFEFC96666E@von-campe.com>
References: <0D6D42D2-1441-4985-81BB-1BFEFC96666E AT von-campe DOT com>
Message-Id: <AF7D7B8E-7FC0-4C1E-B374-07A23D8B7AEC@von-campe.com>
From: Alfred von Campe <alfred AT von-campe DOT com>
Subject: Re: Strange problem with running dmake via ssh
Date: Thu, 2 Apr 2009 11:15:03 -0400
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> I have a strange problem when trying to compile a project under  
> Cygwin with dmake.  If I start a remote desktop connection to our  
> Windows 2003 server, and start a Cygwin window (i.e., run  
> Cygwin.bat), I am able to build our project just fine.  This also  
> works in a native CMD window.  However, if I ssh into the same  
> server (using the same user account), when I try to run dmake I get  
> the following error:
>
>   $ dmake flashimage
>   dmake .\trioimage.elf LINK_FILE=trioflashimage.ld  
> BOOTING=BOOT_FROM_FLASH
>   dmake:  Error -- \bin\bash: No such file or directory
>   dmake.exe:  Error code 255, while making 'flashimage'
>
> The dmake executable was provided by a 3rd party.  What's so  
> different about running a bash shell under ssh than running a bash  
> shell in a CMD window that would cause dmake to behave this way?   
> We'd like to run remote builds automatically, so getting this to  
> work with ssh is kind of important.

I tried running strace to figure out what's going on, but that  
doesn't work since dmake.exe is a Windows executable.  I also tried  
running dmake like this:

   $ cmd /C "dmake flashimage"
   dmake .\trioimage.elf LINK_FILE=trioflashimage.ld  
BOOTING=BOOT_FROM_FLASH
   dmake:  Error -- \bin\bash: No such file or directory
   dmake:  Error code 255, while making 'flashimage'

As you can see, it fails in the exact same way.  Are there some  
Windows executables that just can't be run in a Cygwin ssh bash  
shell?  I could understand if a command didn't run at all under  
Cygwin/bash, but I just don't understand why it runs in a local  
Cygwin shell window but not in an ssh Cygwin shell window.

Alfred


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019