Pavel Fedin
Fri Aug 2 07:41:00 GMT 2013


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

 As you can see, works fine.

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

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list