public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Syntax error from 'mingw' script while building cygwin DLL from source
@ 2011-06-14  9:38 Mark Geisert
  0 siblings, 0 replies; only message in thread
From: Mark Geisert @ 2011-06-14  9:38 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-14  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14  9:38 Syntax error from 'mingw' script while building cygwin DLL from source Mark Geisert

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