Date: Sat, 26 Oct 2002 17:08:48 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Laurynas Biveinis Message-Id: <1659-Sat26Oct2002170848+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <39723724651.20021026161829@softhome.net> (message from Laurynas Biveinis on Sat, 26 Oct 2002 16:18:29 +0200) Subject: Re: GCC 3.2 building with 2.04 trouble on W2K (NTVDM crash) References: <10210210510 DOT AA21415 AT clio DOT rice DOT edu> <75381002462 DOT 20021022170727 AT softhome DOT net> <39723724651 DOT 20021026161829 AT softhome DOT net> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sat, 26 Oct 2002 16:18:29 +0200 > From: Laurynas Biveinis > > > [...] > > Applying djgpp_wchar_h to sys/djtypes.h > > Cannot open script file for $SHELL: Permission denied (EACCES) > > I've tried to debug this one. The error message comes from system() in > libc, however when I run it under GDB, it no longer appears. How > should I proceed? Copy system.c and dosexec.c into the sources of the program which fails, and find out which DOS call fails, and with what DOS error code (EACCES is something we produce from a lot of different DOS codes). That might give a direction for further debugging. If you cannot reproduce the problem under GDB, I guess you are down to printf debugging...