--- Sab 14/3/09, Dave Korn ha scritto: > Da: Dave Korn > Oggetto: Re: [ANNOUNCEMENT] Updated: experimental package: gcc4-4.3.2-2 > A: > Data: Sabato 14 marzo 2009, 07:56 > Marco Atzeri wrote: > > > it seems a 1.7 specific fault. On cygwin 1.5 it works; > I never checked > > before :-( > > Odd! It fails for me on both. (You did > update gcc-4 on *both* your > installations, right?) > yes
$ uname -a CYGWIN_NT-5.1 ITQMOZCAS2NB007 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin $ cygcheck -c -d |grep fortran gcc4-fortran 4.3.2-2 libgfortran3 4.3.2-2 $cygcheck ./conftest-15.exe .\conftest-15.exe C:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:\cygwin\bin\cyggcc_s-1.dll C:\cygwin\bin\cyggfortran-3.dll $ ./conftest-15.exe > conftest.out ; cat conftest.out SUCCESS $ uname -a CYGWIN_NT-5.1 ITQMOZCAS2NB007 1.7.0(0.206/5/3) 2009-03-11 14:08 i686 Cygwin cygcheck -c -d |grep fortran gcc4-fortran 4.3.2-2 libgfortran3 4.3.2-2 $ cygcheck ./conftest-17.exe C:\cygwin2\pub\programs\fortran\conftest-17.exe C:\cygwin2\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:\cygwin2\bin\cyggcc_s-1.dll C:\cygwin2\bin\cyggfortran-3.dll $ ./conftest-17.exe > conftest.out ; cat conftest.out So I can reproduce it only on cygwin-1.7. > > is it possible that Cygwin-1.7 is fooled by the not > like-C standard output > > ? > > > > "GFORTRAN_STDOUT_UNIT—Unit number for standard > output > > > > This environment variable can be used to select the > unit number > > preconnected to standard output. This must be a > positive integer. The > > default value is 6. " > > I'm not sure. From what I've studied so far of > libgfortran/io, I think the > fortran "unit" numbers are mapped to, rather than directly > equivalent to, unix > fds. It might be a libgfortran bug, or it may even > not; there could be some > interaction in the cygwin dll between DLL unload and stdio > shutdown during the > exit sequence that fails to flush the stream properly, for > example. Still > investigating. > > cheers, > DaveK > 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/