Mail Archives: cygwin/2004/08/20/17:22:52
--------------B3D2D96A993C2E900E7B0304
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
"Rajagopalan, Karthik" wrote:
[...]
> I am
> trying to compile a C program through "Makefile" from Cygwin. This C
> program has syntax errors which are supposed to be shown by Cygwin when
> running C compiler. It just indicates the following lines and stops :
>
> make: *** [/cygdrive/h/test.obj] Error 1
>
> If I run the C program without using "Makefile" from Cygwin, errors are
> properly indicated.
[...]
If you does invoke VC compile in Makefile like this:
> msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug"
then use this workarounds:
> msdev.com MakeTest.dsp /MAKE "MakeTest - Win32 Debug"
or that one:
> bash -c '{ msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug" | cat; [ "$${PIPESTATUS[0]}" = 0 ]; }'
This is probably issue somehow related to:
http://groups.yahoo.com/group/vimdev/message/33770
In case any Cygwin developer care to debug this problem, I've prepared
minimal test case. Attached MakeTest.tgz contains VC++ 6.0 project and
Makefile:
MakeTest/Makefile
MakeTest/MakeTest.cpp
MakeTest/MakeTest.dsp
MakeTest/MakeTest.dsw
There is intentional syntax error in MakeTest.cpp file.
Makefile does have two targets:
> all:
> msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug"
>
> betterall:
> bash -c '{ msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug" | cat; [ "$${PIPESTATUS[0]}" = 0 ]; }'
Steps to reproduce:
- Unpack attached tgz
- Make sure that directory with 'msdev.exe' from Visual C++ 6.0 is in
your PATH (usually
c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\)
- start bash in normal windows console (NOT rxvt)
- cd to MakeTest directory
- type 'make all'
Output will NOT contain messages from msdev:
> $ make all
> msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug"
> make: *** [all] Error 1
- type 'make betterall'
Output WILL contain messages from msdev:
> $ make betterall
> bash -c '{ msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug" | cat; [ "${PIPESTATUS[0]}" = 0 ]; }'
> --------------------Configuration: MakeTest - Win32 Debug--------------------
> Compiling...
> MakeTest.cpp
> d:\Sources\MakeTest\MakeTest.cpp(6) : error C2059: syntax error : '}'
> d:\Sources\MakeTest\MakeTest.cpp(6) : warning C4508: 'main' : function should return a value; 'void' return type assumed
> Error executing cl.exe.
>
> MakeTest.exe - 1 error(s), 1 warning(s)
I've encountered this problem long long time ago, so it's not some
recent regression.
Both invocations of msdev from Makefile display messages correctly under
rxvt console.
Win2kSP4, all updates, cygwin1.dll snapshot 20040720, make 3.80-1,
Visual C++ 6.0.
Regards,
Jacek.
BTW: Shouldn't Cygwin and/or bash give preference to *.com over *.exe as
windows' cmd does? Currently if you have t.exe and t.com in some
directory in your path and you'll type 't' in shell then cygwin will
start t.exe, and windows' cmd will start t.com.
--------------B3D2D96A993C2E900E7B0304
Content-Type: application/x-compressed;
name="MakeTest.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="MakeTest.tgz"
H4sIAJFqJkEAA+1Z+2/aSBDOr4fE/zCllZpULRjMo0fLSQQMh8pLmFyu7VVo
sTewF+O1/MhDufzvN+sHj0Kg7QXau/MokfcxO/t5dufz7NIhl3RIHTdztD+R
pLxUKpXwKWWxGDylrHhGcpSVstlsvliQpNyRlJVzcu4ICnvENBfPcYkNcFTV
Z8xkjmsTl9vOul6Xm/QQeA4snWj9ReGCGft4R7Ha29Y/VyqG61+QS/ki6udL
WfkIpD1gWZP/+fonE8kEMYxyMvHTzNHpVVrjM4g2RVp3LMh0qu8USEVt8ArO
mSnnoE7H3iQlxicTY+q61A7tjIkzhVcaPL+DbzIJf4FG3DfwEVLPnt31W31F
HVaHZ+pH6dN9Ciogwac3cP9czPu9vffvl5X49xdIs6xHnmNX/Ev5fBj/+UIh
J6N+IV8oxfF/CBFRxEwXZoSZxyfJxF0yASg2dT3bTCbu4yj7b8t6/CNBP/Ic
O+K/VJTlRfz73/9CQYq//weRp9Bhms0dfuHi5/eKGtyiNqi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O3qVGCBj6WP31qJlh1puTLwHcrNg424dyXg50w4Y
JmgJEuctCe+DKgvaCqyq3LM16p9mhWm1dzaoKZX0H8t3qkJbwYPUim7QFIEK
avPDwEHO/5vuf64feY4d9z94RF/c/8iS5N//FnPx/c8hZMtlzTm3Lx2LhJv1
wWua8+qg2+o2yyuXNb0B1JW2MsSs4teWCue9wTu1X60p0Gi1lSd+/D2uCJNh
5JQXEZtaDkLxy9PGKyscGTRW3hawend3l0zc39+vdOQ/69gD/KbBx0T8gvYl
eOT94/neWzOWWGKJJZZYYtmT/A0ee8m9ACgAAA==
--------------B3D2D96A993C2E900E7B0304
Content-Type: text/plain; charset=us-ascii
--
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/
--------------B3D2D96A993C2E900E7B0304--
- Raw text -