* stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1
@ 2012-06-20 16:27 Brian Cavagnolo
2012-06-20 20:40 ` James Johnston
0 siblings, 1 reply; 4+ messages in thread
From: Brian Cavagnolo @ 2012-06-20 16:27 UTC (permalink / raw)
To: cygwin
Hello,
I use cygwin on a windows 7 machine to automate a Visual Studio 10
build from the command line. To do this, I invoke MSBuild.exe with a
wrapper script called msbuild.sh (see below). Under cygwin 1.7.11-1,
the stdout from msbuild.exe appears on the console where I invoke
msbuild.sh as expected. But after a recent upgrade to 1.7.15-1, the
stdout stops appearing. By inspecting the running processes in the
windows task manager, I see that msbuild.exe is launching the
compiler, etc. Notably, if I replace the invocation of msbuild.exe
with another program (e.g., dir), I do see the expected stdout.
Further, if I execute the relevant commands in the native cmd shell, I
do see the msbuild.exe output. I considered tracking down the
specific package that lead to this regression, but I didn't find a
mirror with the older packages. Below I've pasted the output of
cygcheck -c for the working and failing systems. Can somebody advise
me on a sensible next steps to recovering the stdout of msbuild.exe?
Please CC me in responses.
Thanks,
Brian
msbuild.sh and common.sh
====================
#!/bin/bash
. `dirname $0`/common.sh
function print_help {
echo "$(cat <<EOF
EOF
msbuild.sh: cygwin wrapper for MSBuild.sh
msbuild.sh simply sets up the environment to call MSBuild.exe from cygwin.
Non-option trailing arguments are simply passed to MSBuild.sh.
Usage: msbuild.sh [options] <MSBuild.exe args>
-h print this help message
Examples:
Rebuild all projects in the MTC solution:
$ msbuild.sh MTC.sln /t:rebuild
Build the Release configuration of the MTC solution:
$ msbuild.sh MTC.sln /p:Configuration=Release
Print MSBuild.exe help output:
$ msbuild.sh /help
EOF
)"
}
while getopts "h" opt; do
case ${opt} in
h)
print_help
exit 0
;;
\?)
echo "Invalid option: -${OPTARG}" >&2
exit 1
;;
esac
done
OS=`uname -o`
if [ "${OS}" != "Cygwin" ]; then
echo "Expected Cygwin, but got " ${OS}
exit 1
fi
set_cygwin_vars
# Now get ready for a whopping mess of escapage. You'd thing that considering
# how prevalent parens and spaces are in MS path names the shell would be a bit
# more friendly at handling them. But we have to escape them with ^
VS100PATH=`echo $VS100COMNTOOLS | sed 's/\([ ()]\)/\^\1/g'`
echo about to launch...
env
CMD="cmd /c ${VS100PATH}\..\..\VC\vcvarsall.bat x86 && MSBuild.exe ${*}"
$CMD
common.sh
=========
# This file contains common code useful to all scripts.
[ "${UV_SVN_URL}" = "" ] && UV_SVN_URL=https://dev.urbansim.org/urban_vision
function die {
echo $*
exit 1
}
function get_svn_version {
svn info ${UV_SVN_URL} | grep Revision | awk '{print $2}'
}
function set_cygwin_vars()
{
echo "Setting cygwin environment variables"
if [ "$SSH_TTY" ]; then
pushd . >/dev/null
for __dir in \
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session\
Manager/Environment \
/proc/registry/HKEY_CURRENT_USER/Environment
do
if [ ! -d "$__dir" ]; then
echo "ERROR: $__dir does not exist."
exit 1
fi
cd "$__dir"
for __var in *
do
__var=`echo $__var | tr '[a-z]' '[A-Z]'`
if [ "$__var" == "PATH" -o "$__var" == "TEMP" -o "$__var" == "TMP"
-o "$__var" == "COMSPEC" ]; then
continue
fi
echo "Setting $__var to `cat $__var`"
test -z "${!__var}" && export $__var="`cat $__var`" >/dev/null 2>&1
done
done
unset __dir
unset __var
popd >/dev/null
fi
}
cygcheck -c from working 1.7.11-1 system
===============================
Cygwin Package Information
Package Version Status
_update-info-dir 01022-1 OK
alternatives 1.3.30c-10 OK
base-cygwin 3.0-1 OK
base-files 4.1-1 OK
bash 4.1.10-4 OK
bzip2 1.0.6-2 OK
ca-certificates 1.81-1 OK
coreutils 8.15-1 OK
cpio 2.11-1 OK
crypt 1.1-1 OK
csih 0.9.5-1 OK
cvs 1.12.13-10 OK
cvsps 2.2b1-1 OK
cygrunsrv 1.40-1 OK
cygutils 1.4.8-1 OK
cygwin 1.7.11-1 OK
cygwin-doc 1.7-1 OK
dash 0.5.7-1 OK
dbus 1.4.16-1 OK
diffutils 2.9-1 OK
dos2unix 5.3.3-1 OK
dri-drivers 7.11.2-1 OK
editrights 1.01-2 OK
emacs 23.4-1 OK
emacs-X11 23.4-1 OK
file 5.09-1 OK
findutils 4.5.9-2 OK
font-adobe-dpi75 1.0.2-1 OK
font-alias 1.0.3-1 OK
font-encodings 1.0.4-1 OK
font-misc-misc 1.1.1-1 OK
fontconfig 2.8.0-2 OK
gamin 0.1.10-11 OK
gawk 4.0.0-1 OK
gettext 0.18.1.1-2 OK
git 1.7.9-1 OK
git-svn 1.7.9-1 OK
gnome-icon-theme 3.2.1.2-1 OK
grep 2.6.3-1 OK
groff 1.20.1-2 OK
gsettings-desktop-schemas 3.2.0-1 OK
gzip 1.4-1 OK
hicolor-icon-theme 0.12-1 OK
ipc-utils 1.0-1 OK
less 444-1 OK
libapr1 1.4.6-1 OK
libaprutil1 1.4.1-1 OK
libatk1.0_0 2.2.0-1 OK
libattr1 2.4.43-1 OK
libaudio2 1.9.3-1 OK
libblkid1 2.21-1 OK
libbz2_1 1.0.6-2 OK
libcairo2 1.10.2-1 OK
libcompface0 1.5.2-11 OK
libcroco0.6_3 0.6.4-1 OK
libcurl4 7.24.0-1 OK
libdatrie1 0.2.4-1 OK
libdb4.5 4.5.20.2-3 OK
libdbus1_3 1.4.16-1 OK
libedit0 20090923-1 OK
libexpat1 2.0.1-1 OK
libfam0 0.1.10-11 OK
libffi4 4.5.3-3 OK
libfontconfig1 2.8.0-2 OK
libfontenc1 1.1.0-1 OK
libfreetype6 2.4.7-1 OK
libgcc1 4.5.3-3 OK
libgcrypt11 1.4.6-1 OK
libgdbm4 1.8.3-20 OK
libgdk_pixbuf2.0_0 2.24.1-1 OK
libgif4 4.1.6-10 OK
libglapi0 7.11.2-1 OK
libglib2.0_0 2.30.2-1 OK
libgmp3 4.3.2-1 OK
libgpg-error0 1.10-1 OK
libgtk2.0_0 2.24.10-1 OK
libICE6 1.0.7-1 OK
libiconv2 1.14-2 OK
libidn11 1.22-1 OK
libintl8 0.18.1.1-2 OK
libjasper1 1.900.1-12 OK
libjbig2 2.0-11 OK
libjpeg62 6b-21 OK
libjpeg7 7-10 OK
libjpeg8 8b-1 OK
libllvm3.0 3.0-1 OK
liblzma5 5.0.2_20110517-1 OK
libncurses10 5.7-18 OK
libncurses8 5.5-10 OK
libncursesw10 5.7-18 OK
libneon27 0.29.6-1 OK
libopenldap2_3_0 2.3.43-2 OK
libopenssl098 0.9.8t-1 OK
libpango1.0_0 1.29.4-2 OK
libpcre0 8.21-2 OK
libpixman1_0 0.22.2-1 OK
libpng12 1.2.46-1 OK
libpng14 1.4.8-1 OK
libpopt0 1.6.4-4 OK
libpq5 8.2.11-1 OK
libproxy1 0.4.7-1 OK
libreadline7 6.1.2-2 OK
librsvg2_2 2.34.2-1 OK
libsasl2 2.1.23-1 OK
libserf0_1 0.7.1-1 OK
libserf1_0 1.0.0-1 OK
libsigsegv2 2.10-1 OK
libSM6 1.2.0-1 OK
libsqlite3_0 3.7.3-1 OK
libssh2_1 1.3.0-1 OK
libssp0 4.5.3-3 OK
libstdc++6 4.5.3-3 OK
libthai0 0.1.15-1 OK
libtiff5 3.9.4-1 OK
libuuid1 2.21-1 OK
libwrap0 7.6-21 OK
libX11_6 1.4.4-1 OK
libXau6 1.0.6-1 OK
libXaw3d7 1.5D-10 OK
libXaw7 1.0.9-1 OK
libxcb-render0 1.7-2 OK
libxcb-shm0 1.7-2 OK
libxcb1 1.7-2 OK
libXcomposite1 0.4.3-1 OK
libXcursor1 1.1.12-1 OK
libXdamage1 1.1.3-1 OK
libXdmcp6 1.1.0-1 OK
libXext6 1.3.0-1 OK
libXfixes3 5.0-1 OK
libXft2 2.2.0-1 OK
libXi6 1.4.5-1 OK
libXinerama1 1.1.1-1 OK
libxkbfile1 1.0.7-1 OK
libxml2 2.7.8-3 OK
libXmu6 1.1.0-1 OK
libXmuu1 1.1.0-1 OK
libXpm4 3.5.9-1 OK
libXrandr2 1.3.2-1 OK
libXrender1 0.9.6-1 OK
libXt6 1.1.1-1 OK
login 1.10-10 OK
luit 1.1.0-1 OK
man 1.6g-1 OK
mintty 1.0.3-1 OK
mkfontdir 1.0.6-1 OK
mkfontscale 1.0.9-1 OK
mlcscope 14.1.8-2 OK
openssh 5.9p1-1 OK
perl 5.10.1-5 OK
perl-Error 0.17016-1 OK
rebase 4.0.1-1 OK
rsync 3.0.9-1 OK
run 1.1.13-1 OK
sed 4.2.1-1 OK
shared-mime-info 1.0-1 OK
subversion 1.7.4-1 OK
subversion-perl 1.7.4-1 OK
tar 1.25-1 OK
terminfo 5.7_20091114-14 OK
terminfo0 5.5_20061104-12 OK
texinfo 4.13-4 OK
tzcode 2010j-1 OK
unzip 6.0-10 OK
util-linux 2.21-1 OK
which 2.20-2 OK
xauth 1.0.6-1 OK
xcursor-themes 1.0.3-1 OK
xemacs 21.4.22-1 OK
xemacs-emacs-common 21.4.22-1 OK
xemacs-tags 21.4.22-1 OK
xinit 1.3.2-1 OK
xkbcomp 1.2.3-1 OK
xkeyboard-config 2.5.1-1 OK
xmodmap 1.0.5-1 OK
xorg-server 1.11.4-5 OK
xrdb 1.0.9-1 OK
xterm 278-1 OK
xz 5.0.2_20110517-1 OK
zlib 1.2.5-1 OK
zlib-devel 1.2.5-1 OK
zlib0 1.2.5-1 OK
cygcheck -c from working 1.7.11-1 system
===============================
Cygwin Package Information
Package Version Status
_autorebase 000079-1 OK
_update-info-dir 01052-1 OK
alternatives 1.3.30c-10 OK
base-cygwin 3.1-1 OK
base-files 4.1-1 OK
bash 4.1.10-4 OK
bzip2 1.0.6-2 OK
ca-certificates 1.81-1 OK
coreutils 8.15-1 OK
cpio 2.11-2 OK
crypt 1.2-1 OK
csih 0.9.6-1 OK
cvs 1.12.13-10 OK
cvsps 2.2b1-1 OK
cygrunsrv 1.40-2 OK
cygutils 1.4.10-2 OK
cygwin 1.7.15-1 OK
cygwin-doc 1.7-1 OK
dash 0.5.7-1 OK
dbus 1.4.20-1 OK
diffutils 3.2-1 OK
dos2unix 6.0-1 OK
dri-drivers 7.11.2-1 OK
editrights 1.01-2 OK
emacs 23.4-2 OK
emacs-X11 23.4-2 OK
file 5.11-1 OK
findutils 4.5.9-2 OK
font-adobe-dpi75 1.0.2-1 OK
font-alias 1.0.3-1 OK
font-encodings 1.0.4-1 OK
font-misc-misc 1.1.1-1 OK
fontconfig 2.8.0-2 OK
gamin 0.1.10-11 OK
gawk 4.0.1-1 OK
gettext 0.18.1.1-2 OK
git 1.7.9-1 OK
git-svn 1.7.9-1 OK
gnome-icon-theme 3.4.0-1 OK
grep 2.6.3-1 OK
groff 1.21-2 OK
gsettings-desktop-schemas 3.4.2-1 OK
gzip 1.4-1 OK
hicolor-icon-theme 0.12-1 OK
ipc-utils 1.0-1 OK
less 444-1 OK
libapr1 1.4.6-1 OK
libaprutil1 1.4.1-1 OK
libasn1_8 1.5.2-2 OK
libatk1.0_0 2.4.0-1 OK
libattr1 2.4.46-1 OK
libaudio2 1.9.3-1 OK
libautotrace3 0.31.1-11 OK
libblkid1 2.21-1 OK
libbz2_1 1.0.6-2 OK
libcairo2 1.12.2-1 OK
libcom_err2 1.41.14-1 OK
libcompface0 1.5.2-11 OK
libcroco0.6_3 0.6.5-1 OK
libcurl4 7.24.0-3 OK
libdatrie1 0.2.4-1 OK
libdb4.5 4.5.20.2-3 OK
libdbus1_3 1.4.20-1 OK
libedit0 20120311-1 OK
libEMF1 1.0.4-1 OK
libexpat1 2.1.0-1 OK
libfam0 0.1.10-11 OK
libffi4 4.5.3-3 OK
libfftw3_3 3.3.2-1 OK
libfontconfig1 2.8.0-2 OK
libfontenc1 1.1.0-1 OK
libfpx1 1.3.1-1 OK
libfreetype6 2.4.9-2 OK
libgcc1 4.5.3-3 OK
libgcrypt11 1.4.6-1 OK
libgd2 2.0.36RC1-12 OK
libgdbm4 1.8.3-20 OK
libgdk_pixbuf2.0_0 2.26.1-1 OK
libgif4 4.1.6-10 OK
libglapi0 7.11.2-1 OK
libglib2.0_0 2.32.3-2 OK
libgmp3 4.3.2-1 OK
libgnutls26 2.12.14-1 OK
libgomp1 4.5.3-3 OK
libgpg-error0 1.10-1 OK
libgs9 9.04-1 OK
libgssapi3 1.5.2-2 OK
libgtk2.0_0 2.24.10-2 OK
libheimbase1 1.5.2-2 OK
libheimntlm0 1.5.2-2 OK
libhx509_5 1.5.2-2 OK
libICE6 1.0.7-1 OK
libiconv2 1.14-2 OK
libidn11 1.22-1 OK
libintl8 0.18.1.1-2 OK
libjasper1 1.900.1-12 OK
libjbig2 2.0-11 OK
libjpeg62 6b-21 OK
libjpeg7 7-10 OK
libjpeg8 8b-1 OK
libkafs0 1.5.2-2 OK
libkrb5_26 1.5.2-2 OK
liblcms2_2 2.2-1 OK
libllvm3.0 3.0-1 OK
libltdl7 2.4-1 OK
liblzma5 5.0.2_20110517-1 OK
liblzo2_2 2.06-1 OK
libMagickCore5 6.7.6.3-1 OK
libming1 0.4.4-1 OK
libncurses10 5.7-18 OK
libncurses8 5.5-10 OK
libncursesw10 5.7-18 OK
libneon27 0.29.6-2 OK
libopenldap2_3_0 2.3.43-3 OK
libopenssl098 0.9.8x-1 OK
libopenssl100 1.0.1c-1 OK
libpango1.0_0 1.30.1-1 OK
libpaper1 1.1.24-1 OK
libpcre0 8.21-2 OK
libpcre1 8.30-1 OK
libpixman1_0 0.24.4-1 OK
libplotter2 2.6-2 OK
libpng12 1.2.46-1 OK
libpng14 1.4.8-1 OK
libpopt0 1.6.4-4 OK
libpq5 8.2.11-1 OK
libproxy1 0.4.7-1 OK
libpstoedit0 3.60-2 OK
libreadline7 6.1.2-3 OK
libroken18 1.5.2-2 OK
librsvg2_2 2.36.1-1 OK
libsasl2 2.1.25-1 OK
libserf0_1 0.7.1-2 OK
libserf1_0 1.0.3-1 OK
libsigsegv2 2.10-1 OK
libSM6 1.2.0-1 OK
libsqlite3_0 3.7.12.1-1 OK
libssh2_1 1.4.2-1 OK
libssp0 4.5.3-3 OK
libstdc++6 4.5.3-3 OK
libtasn1_3 2.12-1 OK
libthai0 0.1.15-1 OK
libtiff5 3.9.4-1 OK
libuuid1 2.21-1 OK
libwind0 1.5.2-2 OK
libwrap0 7.6-21 OK
libX11_6 1.4.4-1 OK
libXau6 1.0.6-1 OK
libXaw3d7 1.5D-10 OK
libXaw7 1.0.9-1 OK
libxcb-render0 1.7-2 OK
libxcb-shm0 1.7-2 OK
libxcb1 1.7-2 OK
libXcomposite1 0.4.3-1 OK
libXcursor1 1.1.12-1 OK
libXdamage1 1.1.3-1 OK
libXdmcp6 1.1.0-1 OK
libXext6 1.3.0-1 OK
libXfixes3 5.0-1 OK
libXft2 2.2.0-1 OK
libXi6 1.4.5-1 OK
libXinerama1 1.1.1-1 OK
libxkbfile1 1.0.7-1 OK
libxml2 2.7.8-3 OK
libXmu6 1.1.0-1 OK
libXmuu1 1.1.0-1 OK
libXpm4 3.5.9-1 OK
libXrandr2 1.3.2-1 OK
libXrender1 0.9.6-1 OK
libXt6 1.1.1-1 OK
login 1.10-10 OK
luit 1.1.0-1 OK
man 1.6g-1 OK
mintty 1.1.1-1 OK
mkfontdir 1.0.6-1 OK
mkfontscale 1.0.9-1 OK
mlcscope 14.1.8-2 OK
openssh 6.0p1-2 OK
perl 5.10.1-5 OK
perl-Error 0.17016-1 OK
rebase 4.2.0-1 OK
rsync 3.0.9-1 OK
run 1.1.13-1 OK
sed 4.2.1-2 OK
shared-mime-info 1.0-1 OK
subversion 1.7.5-1 OK
subversion-perl 1.7.5-1 OK
tar 1.25-1 OK
terminfo 5.7_20091114-14 OK
terminfo0 5.5_20061104-12 OK
texinfo 4.13-4 OK
tzcode 2012b-1 OK
unzip 6.0-10 OK
util-linux 2.21-1 OK
which 2.20-2 OK
xauth 1.0.6-1 OK
xcursor-themes 1.0.3-1 OK
xemacs 21.4.22-1 OK
xemacs-emacs-common 21.4.22-1 OK
xemacs-tags 21.4.22-1 OK
xf86-video-dummy 0.3.5-1 OK
xf86-video-nested 0.1.0-1 OK
xinit 1.3.2-1 OK
xkbcomp 1.2.3-1 OK
xkeyboard-config 2.5.1-1 OK
xmodmap 1.0.5-1 OK
xorg-server 1.12.1-2 OK
xorg-server-common 1.12.1-2 OK
xrdb 1.0.9-1 OK
xterm 279-1 OK
xz 5.0.2_20110517-1 OK
zlib 1.2.7-1 OK
zlib-devel 1.2.7-1 OK
zlib0 1.2.7-1 OK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1
2012-06-20 16:27 stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1 Brian Cavagnolo
@ 2012-06-20 20:40 ` James Johnston
2012-06-22 19:11 ` Brian Cavagnolo
0 siblings, 1 reply; 4+ messages in thread
From: James Johnston @ 2012-06-20 20:40 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> Sent: Wednesday, June 20, 2012 16:27
> Subject: stdout not visible on some programs after upgrading from to
1.7.11-
> 1 to 1.7.15-1
>
> Hello,
>
> I use cygwin on a windows 7 machine to automate a Visual Studio 10 build
> from the command line. To do this, I invoke MSBuild.exe with a wrapper
> script called msbuild.sh (see below). Under cygwin 1.7.11-1, the stdout
from
> msbuild.exe appears on the console where I invoke msbuild.sh as expected.
> But after a recent upgrade to 1.7.15-1, the stdout stops appearing. By
> inspecting the running processes in the windows task manager, I see that
> msbuild.exe is launching the compiler, etc. Notably, if I replace the
> invocation of msbuild.exe with another program (e.g., dir), I do see the
> expected stdout.
> Further, if I execute the relevant commands in the native cmd shell, I do
see
> the msbuild.exe output. I considered tracking down the specific package
> that lead to this regression, but I didn't find a mirror with the older
packages.
> Below I've pasted the output of cygcheck -c for the working and failing
> systems. Can somebody advise me on a sensible next steps to recovering
> the stdout of msbuild.exe?
>
> Please CC me in responses.
>
> Thanks,
> Brian
<snip>
Try both of the following:
1. Update to latest development snapshot, should resolve the bug you are
primarily observing.
2. Set the CYGWIN environment variable to pipe_byte. Cygwin now uses
message pipes by default, which are not compatible with .NET Framework and
Visual C++ runtimes (not currently documented anywhere in Cygwin or MS
documentation).
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1
2012-06-20 20:40 ` James Johnston
@ 2012-06-22 19:11 ` Brian Cavagnolo
2012-06-25 13:54 ` James Johnston
0 siblings, 1 reply; 4+ messages in thread
From: Brian Cavagnolo @ 2012-06-22 19:11 UTC (permalink / raw)
To: cygwin
On Wed, Jun 20, 2012 at 1:39 PM, James Johnston <JamesJ@motionview3d.com> wrote:
>> -----Original Message-----
>> Sent: Wednesday, June 20, 2012 16:27
>> Subject: stdout not visible on some programs after upgrading from to
> 1.7.11-
>> 1 to 1.7.15-1
>>
>> Hello,
>>
>> I use cygwin on a windows 7 machine to automate a Visual Studio 10 build
>> from the command line. To do this, I invoke MSBuild.exe with a wrapper
>> script called msbuild.sh (see below). Under cygwin 1.7.11-1, the stdout
> from
>> msbuild.exe appears on the console where I invoke msbuild.sh as expected.
>> But after a recent upgrade to 1.7.15-1, the stdout stops appearing. By
>> inspecting the running processes in the windows task manager, I see that
>> msbuild.exe is launching the compiler, etc. Notably, if I replace the
>> invocation of msbuild.exe with another program (e.g., dir), I do see the
>> expected stdout.
>> Further, if I execute the relevant commands in the native cmd shell, I do
> see
>> the msbuild.exe output. I considered tracking down the specific package
>> that lead to this regression, but I didn't find a mirror with the older
> packages.
>> Below I've pasted the output of cygcheck -c for the working and failing
>> systems. Can somebody advise me on a sensible next steps to recovering
>> the stdout of msbuild.exe?
>>
>> Please CC me in responses.
>>
>> Thanks,
>> Brian
>
> <snip>
>
> Try both of the following:
>
> 1. Update to latest development snapshot, should resolve the bug you are
> primarily observing.
> 2. Set the CYGWIN environment variable to pipe_byte. Cygwin now uses
> message pipes by default, which are not compatible with .NET Framework and
> Visual C++ runtimes (not currently documented anywhere in Cygwin or MS
> documentation).
For kicks, I tried 2 by itself. This didn't change the behavior.
Next, I tried 1 by itself as described in [1]. This worked. Adding
in CYGWIN=pipe_byte did not cause anything to change. So I presume
this will be fixed in the next release. Thanks for your time.
Ciao,
Brian
[1] http://cygwin.com/faq-nochunks.html#faq.setup.snapshots
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1
2012-06-22 19:11 ` Brian Cavagnolo
@ 2012-06-25 13:54 ` James Johnston
0 siblings, 0 replies; 4+ messages in thread
From: James Johnston @ 2012-06-25 13:54 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> Sent: Friday, June 22, 2012 19:11
> Subject: Re: stdout not visible on some programs after upgrading from to
> 1.7.11-1 to 1.7.15-1
>
> >> I use cygwin on a windows 7 machine to automate a Visual Studio 10
> >> build from the command line. To do this, I invoke MSBuild.exe with a
> >> wrapper script called msbuild.sh (see below). Under cygwin 1.7.11-1,
> >> the stdout
> > from
> >> msbuild.exe appears on the console where I invoke msbuild.sh as
> expected.
> >> But after a recent upgrade to 1.7.15-1, the stdout stops appearing.
> >> By inspecting the running processes in the windows task manager, I
> >> see that msbuild.exe is launching the compiler, etc. Notably, if I
> >> replace the invocation of msbuild.exe with another program (e.g.,
> >> dir), I do see the expected stdout.
> >> Further, if I execute the relevant commands in the native cmd shell,
> >> I do
> > see
> >> the msbuild.exe output. I considered tracking down the specific
> >> package that lead to this regression, but I didn't find a mirror with
> >> the older
> > packages.
> >> Below I've pasted the output of cygcheck -c for the working and
> >> failing systems. Can somebody advise me on a sensible next steps to
> >> recovering the stdout of msbuild.exe?
> >>
> >> Please CC me in responses.
> >>
> >> Thanks,
> >> Brian
> >
> > <snip>
> >
> > Try both of the following:
> >
> > 1. Update to latest development snapshot, should resolve the bug you
> > are primarily observing.
> > 2. Set the CYGWIN environment variable to pipe_byte. Cygwin now uses
> > message pipes by default, which are not compatible with .NET Framework
> > and Visual C++ runtimes (not currently documented anywhere in Cygwin
> > or MS documentation).
>
> For kicks, I tried 2 by itself. This didn't change the behavior.
> Next, I tried 1 by itself as described in [1]. This worked. Adding in
> CYGWIN=pipe_byte did not cause anything to change. So I presume this will
> be fixed in the next release. Thanks for your time.
That's because "pipe_byte" won't fix the problem of a hang. What pipe_byte
will fix is allow all non-Cygwin programs to properly handle reading from
standard input. That's because unmanaged VC++ and managed .NET runtimes
dont support reading a message pipe standard input. This compatibility
issue with these common Microsoft runtimes isn't yet in the Cygwin
documentation as far as I know, which is why I'm pointing it out to you -
since you're obviously using non-Cygwin programs.
Read the past discussions about this issue and you'll see why it's
necessary, if you want the technical details. A message pipe might seem to
work 99% of the time, but then break.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-25 13:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-20 16:27 stdout not visible on some programs after upgrading from to 1.7.11-1 to 1.7.15-1 Brian Cavagnolo
2012-06-20 20:40 ` James Johnston
2012-06-22 19:11 ` Brian Cavagnolo
2012-06-25 13:54 ` James Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).