Syntax error from 'mingw' script while building cygwin DLL from source

Mark Geisert mark@maxrnd.com
Tue Jun 14 09:38:00 GMT 2011


I was compiling the cygwin DLL from the latest src package 1.7.9-1 following FAQ
6.18 as always.  After a lot of successful activity in the 'make' step, I see:
[...]
ar cru libautomode.a automode.o
ar cru libbinmode.a binmode.o
ar cru libtextmode.a textmode.o
ar cru libtextreadmode.a textreadmode.o
perl -p -e 'BEGIN{binmode(STDIN); binmode(STDOUT);}; s/cygwin1/cygwin0/g' < libc
ygwin.a > libcygwin0.a
make[3]: Leaving directory `/oss/build/i686-pc-cygwin/winsup/cygwin'
make[3]: Entering directory `/oss/build/i686-pc-cygwin/winsup/mingw'
/oss/src/winsup/utils/mingw gcc -c -D__CRTDLL__ -U__MSVCRT__ -pipe -g -O2 -march
=athlon-xp -I/oss/src/winsup/mingw/include -I/oss/src/winsup/mingw/../include -n
ostdinc -iwithprefixbefore include -I /oss/src/winsup/mingw/../w32api/include /o
ss/src/winsup/mingw/crt1.c -o crt1.o
/oss/src/winsup/utils/mingw: 38: Syntax error: "(" unexpected
make[3]: *** [crt1.o] Error 2
make[3]: Leaving directory `/oss/build/i686-pc-cygwin/winsup/mingw'
make[2]: *** [mingw] Error 1
make[2]: Leaving directory `/oss/build/i686-pc-cygwin/winsup'
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory `/oss/build'
make: *** [all] Error 2

Line 38 of /oss/src/winsup/utils/mingw has:
newargs=()

As a workaround I changed that script's shebang line to #!/bin/bash from the
existing #!/bin/sh and re-ran make.  It ran to completion.  I'm not sure what
the real fix should be.

..mark


--
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



More information about the Cygwin mailing list