make-3.82.90-1-use-spawn-on-cygwin.diff

Pavel Fedin p.fedin@samsung.com
Fri Aug 2 07:41:00 GMT 2013


 Hello!

> The errors i obtain are as follows:
> /tmp/lcl/tmp/cygwin/cygwin-snapshot-20130731-1/winsup/c++wrap: line 2:
> use: command not found
> /tmp/lcl/tmp/cygwin/cygwin-snapshot-20130731-1/winsup/c++wrap: line 3:
> use: command not found
> /tmp/lcl/tmp/cygwin/cygwin-snapshot-20130731-1/winsup/c++wrap: c++wrap:
> line 4: syntax error near unexpected token `('
> /tmp/lcl/tmp/cygwin/cygwin-snapshot-20130731-1/winsup/c++wrap: c++wrap:
> line 4: `my $pgm = basename($0);'

 I took a look at c++wrap file. Very interesting phenomena.
 By the way, i apply this patch to existing Cygwin package, i didn't try newer make. Ok, i will try when i have more time.
 It looks like this is some system() or whatever issue. Perl script is not recognized as such, and executed via shell.

 Here is a proof (portion from my build log):
--- cut ---
c++wrap -O2 -g -fno-rtti -fno-exceptions -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -mcmodel=small -c -o advapi32.o ../../.././winsup/cygwin/advapi32.cc
c++wrap -O2 -g -fno-rtti -fno-exceptions -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -mcmodel=small -c -o arc4random.o ../../.././winsup/cygwin/libc/arc4random.cc
c++wrap -O2 -g -fno-rtti -fno-exceptions -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -mcmodel=small -c -o assert.o ../../.././winsup/cygwin/assert.cc
c++wrap -O2 -g -fno-rtti -fno-exceptions -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -mcmodel=small -c -o autoload.o ../../.././winsup/cygwin/autoload.cc
--- cut ---

 As you can see, works fine.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia



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