X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_53 X-Spam-Check-By: sourceware.org Message-ID: <579808.20759.qm@web25003.mail.ukl.yahoo.com> Date: Mon, 8 Jun 2009 14:21:25 +0000 (GMT) From: Marco Atzeri Subject: R: [1.7] output redirection problems with gfortran To: cygwin AT cygwin DOT com, Gustavo Seabra MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --- Lun 8/6/09, Gustavo Seabra ha scritto: > Da: Gustavo Seabra=20 > Oggetto: [1.7] output redirection problems with gfortran > A: cygwin AT cygwin DOT com > Data: Luned=EC 8 giugno 2009, 15:28 > Hi All, >=20 > I'm having a strange problem with gfortran here. I am > trying to run a > simple configure program, but it chokes on the fortran > compilation. > The test program it uses is very simple: >=20 > $ cat testp.f > =A0 =A0 =A0 program testf > =A0 =A0 =A0 write(6,*) 'testing a Fortran > program' > =A0 =A0 =A0 end program testf >=20 > It is being compiled with: >=20 > $ gfortran -O0 -fno-second-underscore -o testp testp.f >=20 > and it generates the executable "testp.exe": >=20 > $ ./testp > testing a Fortran program >=20 > The problem comes in the testing. If I try to redirect this > output to > pretty much anything, I get nothing: >=20 > $ ./testp | /bin/grep Fortran > $ >=20 > (It returns nothing.) I also tried changing the compiler > options to > remove the -fno-second-underscore or the -O0 options, with > no changes. >=20 > The same happens if I try to redirect the output to a file, > or try to > tee the output: to a file, i.e., in both cases I only get > empty files: > $ ./testp >& testp.out > $ cat testp.out > $ >=20 > or >=20 > $ ./testp 2>&1 | tee testp.out > $ cat testp.out > $ >=20 > I attached the output of=A0 cygcheck -s -v -r in this > message. Here are > some more details about the gfortran version being used: >=20 > $ gfortran --version > GNU Fortran (GCC) 4.3.2 20080827 (beta) 2 [SNIP] >=20 > Gustavo Seabra Hi Gustavo, we already noticed such fault and it is on the "long" list of Dave Korn to look for.=20 http://thread.gmane.org/gmane.os.cygwin/104875/focus=3D104963 I suspect it is more 1.7 related than gfortran related as the test program is working on cygwin-1.5. Regards Marco -- 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/