delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/29/08:27:51

X-Authentication-Warning: new-smtp2.ihug.com.au: Host p52-max13.syd.ihug.com.au [203.173.155.244] claimed to be acceleron
Message-ID: <01af01c13080$12835ab0$0a02a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>,
"Charles Sandmann" <sandmann AT clio DOT rice DOT edu>
Cc: <djgpp-workers AT delorie DOT com>
Subject: GCC query
Date: Wed, 29 Aug 2001 21:45:15 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Reply-To: djgpp-workers AT delorie DOT com

Guys,

I may have just fouind another Win 2K issue that I do not like the
consequences. When trying to re-build Bash on Win 2K the configure script
exited with an EACCES error as docuemnted below. I traced the problem to a
redirection issue as outlined below.

What is the expected result of ">&5" is the examples below?  Does anyone
know how to resolve this?

I rebuilt GCC on 4-Aug-2001 and Binutils on 18-Aug-2001. I will be updating
these over 1-4 days once I get all of the latest updates for LIBC


Bash config.log info:
-------------------
configure:1679: checking for executable suffix
configure:1689: gcc -o conftest -g -O2   conftest.c  1>&5
${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext
$LIBS 1>&5
d:/dj204/bin/ld.exe: cannot open output file conftest: Permission denied
(EACCES)
collect2: ld returned 1 exit status

DJGPP_204 D:\dj204\gnu\bash-2.05>gcc -o conftest -g -O2   conftest.c  1>&5
The handle could not be duplicated during redirection of handle 1.

DJGPP_204 D:\dj204\gnu\bash-2.05>gcc -o conftest -g -O2   conftest.c  >&5
The handle could not be duplicated during redirection of handle 1.


GCC Test:
=======
DJGPP_204 D:\dj204\gnu\bash-2.05>gcc -o conftest -g -O2   conftest.c

DJGPP_204 D:\dj204\gnu\bash-2.05>dir conftest*.*
 Directory of D:\dj204\gnu\bash-2.05
29/08/2001  09:19p             105,207 conftest
29/08/2001  09:09p                  27 conftest.c
29/08/2001  09:19p             107,255 conftest.exe

Win 2K Echo Test:
=============
DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&0
The system cannot write to the specified device.

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&1
The handle could not be duplicated during redirection of handle 1.

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&2
Test

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&3
Test

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&4
The handle could not be duplicated during redirection of handle 1.

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&5
The handle could not be duplicated during redirection of handle 1.

DJGPP_204 D:\dj204\gnu\bash-2.05>echo Test >&6
The handle could not be duplicated during redirection of handle 1.






- Raw text -


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