[1.7.0-29] detecting g77 configuration

Marco Atzeri marco_atzeri@yahoo.it
Wed Sep 10 11:03:00 GMT 2008


--- Marco Atzeri  ha scritto:

> Dear All,
> I am trying to compile octave-3.0.1-1 on cygwin 1.7 
> but I am stucked on a different behaviour
> of g77 that make the configure scripts unable to
> correctly identify the settings for the linking.

I identified the issue as a problem on pipe
handling and/or output redirection on this point:

ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v
'Driving:'`

passing through the pipe I lose some lines.

I can reproduce it using a minimal Fortran program
$ cat conftest.f 
      program main

      end

I obtain all the expected output, forwarding 
the stderr to file

$ g77 -o conftest.exe -v -O conftest.f 2> g77.txt
$ cat g77.txt        
------------------------------------
Driving: g77 -o conftest.exe -v -O conftest.f
-lfrtbegin -lg2c
Reading specs from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc
--enable-nls --without-included-gettext
--enable-version-specific-runtime-libs --without-x
--enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug
--enable-threads=posix --enable-java-gc=boehm
--disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using
dmd 0.125)
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/f771.exe conftest.f
-quiet -dumpbase conftest.f -mtune=pentiumpro -auxbase
conftest -O -version -o /tmp/ccSFegtv.s
GNU F77 version 3.4.4 (cygming special, gdc 0.12,
using dmd 0.125) (i686-pc-cygwin)
        compiled by GNU C version 3.4.4 (cygming
special, gdc 0.12, using dmd 0.125).
GGC heuristics: --param ggc-min-expand=99 --param
ggc-min-heapsize=129776

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe
-o /tmp/ccGMRWRc.o /tmp/ccSFegtv.s
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/collect2.exe
-Bdynamic --dll-search-prefix=cyg -o conftest.exe
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../crt0.o
-L/usr/lib/gcc/i686-pc-cygwin/3.4.4
-L/usr/lib/gcc/i686-pc-cygwin/3.4.4
-L/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../..
/tmp/ccGMRWRc.o -lfrtbegin -lg2c -lgcc -lcygwin
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
-----------------------------------------------

but I see the last two lines blank if I forward to the
pipe

$ g77 -o conftest.exe -v -O conftest.f 2>&1 |cat

Driving: g77 -o conftest.exe -v -O conftest.f
-lfrtbegin -lg2c
Reading specs from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc
--enable-nls --without-included-gettext
--enable-version-specific-runtime-libs --without-x
--enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug
--enable-threads=posix --enable-java-gc=boehm
--disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using
dmd 0.125)
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/f771.exe conftest.f
-quiet -dumpbase conftest.f -mtune=pentiumpro -auxbase
conftest -O -version -o /tmp/ccRtXmSh.s
GNU F77 version 3.4.4 (cygming special, gdc 0.12,
using dmd 0.125) (i686-pc-cygwin)
        compiled by GNU C version 3.4.4 (cygming
special, gdc 0.12, using dmd 0.125).
GGC heuristics: --param ggc-min-expand=99 --param
ggc-min-heapsize=129776
    
                   


-----------------------------------------------
the number of lines match

$g77 -o conftest.exe -v -O conftest.f 2>&1 |wc -l 
11

$cat  g77.txt |wc -l
11

but the content of the last lines disapperead.

Can someone verify it ?


cygcheck output attached again, as I just 
reinstalled all the 1.7.0-29.
This solved a completely unrelated issue on info
http://cygwin.com/ml/cygwin/2008-08/msg00845.html

Thanks
Marco


__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck_output.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080910/1a80209a/attachment.txt>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list