[Python-bugs-list] [ python-Bugs-620630 ] distutils mixed stdin/stdout output

noreply@sourceforge.net noreply@sourceforge.net
Fri, 11 Oct 2002 09:16:08 -0700


Bugs item #620630, was opened at 2002-10-09 06:50
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620630&group_id=5470

Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils mixed stdin/stdout output

Initial Comment:
If distutils output is piped to a common logfile, the
output is garbled as shown in:

http://buildd.debian.org/fetch.php?&pkg=python-numeric&ver=22.0-2&arch=powerpc&stamp=1034115818&file=log&as=raw

It's a bit confusing to search errors in the garbled
output. It would be nice, if distutils flashes the
output buffers on each newline.

Not sure how well this shows in the included snippets.

gcc-3.2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-IInclude -IPackages/FFSrc/ranlibmodule.c: In function
`get_continuous_random':
[here in the middle of the line]
Src/ranlibmodule.c:47: warning: function declaration
isn't a prototype

Src/lapack_litemodule.c:649: warning:
`lapack_liteError' defined but not used
[upto here a compile command, then two other commands
succeed, then the error for the link command]
/usr/bin/ld: cannot find -lg2c-pic
collect2: ld returned 1 exit status

[and now the link command:]
gcc-3.2 -shared
build/temp.linux-ppc-2.3/lapack_litemodule.o -llapack
-lblas -lg2c-pic -o build/lib.linux-ppc-2.3/lapack_lite.so
error: command 'gcc-3.2' failed with exit status 1


----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2002-10-11 16:16

Message:
Logged In: YES 
user_id=31392

If you're piping the output to a combined log file, you can
use python -u to unbuffer stdout.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620630&group_id=5470