X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: Problems between cygwin and window's cmd about making GCC (options.h) Date: Wed, 19 Apr 2006 10:25:14 +0100 Message-ID: <009e01c66393$2ba87340$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 19 April 2006 10:06, ??? wrote: > I must write a batch file to call a shell script in cygwin for making > GCC toolchains for some purposes. > After making binutils successfully, I make gcc-3.4.3 using my batch file... > > My batch file: > CLS > @echo off > set MAKE_MODE=UNIX > sh ./test.sh > test.sh: > #!/bin/bash > cd /cygdrive/c/toolchains/build-gcc > sh ../gcc-3.4.3/configure --target=arm --srcdir=../gcc-3.4.3 > --prefix=/usr/local --enable-languages="c" > make > make install > > It's work fine (make success) when I directly run test.sh in cygwin, > but there are some error as follow when I run my batch file to call > test.sh. Well, the main difference is between a login and a non-login shell in this case; this affects which startup files are run. Does adding '-l' to the 'sh' invocation in the batch file help any? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/