Building cygwin

smr xxxx smrxxxx@gmail.com
Wed Apr 16 08:09:00 GMT 2008


I'm trying to diagnose a problem with fstat and lseek not working as
expected with stdin on Vista Enterprise SP1.

Anyway, I've grabbed the src package via setup.exe, and am trying to
build, with no luck so far.  I've tried the instructions in the
included README (./configure ; make ; make install) and also those in
the FAQ (http://cygwin.com/faq/faq-nochunks.html#faq.programming.building-cygwin).
 Using the FAQ instructions I get an error about non-existence of c++,
so I tried "CXX=g++ /oss/src/configure" instead, and it gets me
further but fails on trying to find awk (at least I think the compile
error below is due to not having found awk in the prior step).  I've
tried AWK=gawk but it didn't help.

Can anyone offer any instructions on how to build cygwin?  All I'm
interested in doing right now is adding some printf's to fstat to work
out what's going wrong.



g++ -L/oss/build/i686-pc-cygwin/winsup
-L/oss/build/i686-pc-cygwin/winsup/cygwin
-L/oss/build/i686-pc-cygwin/winsup/w32api/lib -isystem /oss/src/winsup/include
-isystem /oss/src/winsup/cygwin/include -isystem /oss/src/winsup/w32api/include
-B/oss/build/i686-pc-cygwin/newlib/ -isystem
/oss/build/i686-pc-cygwin/newlib/ta
rg-include -isystem /oss/src/newlib/libc/include -c -nostdinc++
-DHAVE_CONFIG_H
 -O2 -g -O2  -MMD -fomit-frame-pointer -fmerge-constants -ftracer  -Wall -Wstri
ct-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0  -I.
-I/oss/src/winsup/cygwin  -I/oss/src/winsup/w32api/include -I/oss/src/winsup/cy
gwin/config/i386 -I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include -fno-rtti
-fno-exce
ptions -o ./cygtls.o /oss/src/winsup/cygwin/cygtls.cc
/bin/sh /oss/src/winsup/cygwin/cygmagic child_info_magic.h "gcc
-L/oss/build/i68
6-pc-cygwin/winsup -L/oss/build/i686-pc-cygwin/winsup/cygwin
-L/oss/build/i686-p
c-cygwin/winsup/w32api/lib -isystem /oss/src/winsup/include -isystem
/oss/src/wi
nsup/cygwin/include -isystem /oss/src/winsup/w32api/include
-B/oss/build/i686-pc
-cygwin/newlib/ -isystem /oss/build/i686-pc-cygwin/newlib/targ-include -isystem
/oss/src/newlib/libc/include -x c" /oss/src/winsup/cygwin/child_info.h
CHILD_INF
O_MAGIC 'class child_info'
/oss/src/winsup/cygwin/cygmagic: line 27: awk: command not found
*** WARNING WARNING WARNING WARNING WARNING ***
*** /oss/src/winsup/cygwin/child_info.h: magic number for
CHILD_INFO_MAGIC chang
ed old 0xc3a86a0bU != new
*** WARNING WARNING WARNING WARNING WARNING ***
g++ -L/oss/build/i686-pc-cygwin/winsup
-L/oss/build/i686-pc-cygwin/winsup/cygwin
-L/oss/build/i686-pc-cygwin/winsup/w32api/lib -isystem /oss/src/winsup/include
-isystem /oss/src/winsup/cygwin/include -isystem /oss/src/winsup/w32api/include
-B/oss/build/i686-pc-cygwin/newlib/ -isystem
/oss/build/i686-pc-cygwin/newlib/ta
rg-include -isystem /oss/src/newlib/libc/include -c -nostdinc++
-DHAVE_CONFIG_H
 -O2 -g -O2  -MMD  -fmerge-constants -ftracer  -Wall -Wstrict-aliasing -Wwrite-
strings -fno-common -pipe -fbuiltin -fmessage-length=0  -I.
-I/oss/src/winsup/c
ygwin  -I/oss/src/winsup/w32api/include
-I/oss/src/winsup/cygwin/config/i386 -I/
usr/lib/gcc/i686-pc-cygwin/3.4.4/include -fno-rtti -fno-exceptions -o ./dcrt0.o
/oss/src/winsup/cygwin/dcrt0.cc
/oss/src/winsup/cygwin/dcrt0.cc: In function `child_info*
get_cygwin_startup_inf
o()':
/oss/src/winsup/cygwin/dcrt0.cc:595: error: expected
primary-expression before '
)' token
make[3]: *** [dcrt0.o] Error 1
make[3]: Leaving directory `/oss/build/i686-pc-cygwin/winsup/cygwin'
make[2]: *** [cygwin] 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



More information about the Cygwin-developers mailing list