tatsh/xchain — Issue #1: Unable to build on cygwin
Author: vishal0123
Created: 2012-02-07 11:18:09+00:00
State: open

Here is what happens on building

$ make install
for c in ar as include libstuff libmacho ld man misc otool; do \
(cd $c && make install) || exit 1; \
done
make[1]: Entering directory `/cygdrive/d/cctools-806/ar'
gcc -Wall -Wno-long-double -Wno-import -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1 -DBINDIR="\"D:/sdk/usr/bin\"" -DRANLIBPROG="\"arm-apple-darwin-ranlib\"" -I. -I../include -I../include -include ../include/extern.h -I../include/foreign -m32 -fno-builtin-round -fno-builtin-trunc -c -o append.o append.c
gcc -Wall -Wno-long-double -Wno-import -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1 -DBINDIR="\"D:/sdk/usr/bin\"" -DRANLIBPROG="\"arm-apple-darwin-ranlib\"" -I. -I../include -I../include -include ../include/extern.h -I../include/foreign -m32 -fno-builtin-round -fno-builtin-trunc -c -o ar.o ar.c
gcc -Wall -Wno-long-double -Wno-import -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1 -DBINDIR="\"D:/sdk/usr/bin\"" -DRANLIBPROG="\"arm-apple-darwin-ranlib\"" -I. -I../include -I../include -include ../include/extern.h -I../include/foreign -m32 -fno-builtin-round -fno-builtin-trunc -c -o archive.o archive.c
In file included from ../include/mach-o/fat.h:45:0,
from archive.c:82:
../include/mach/machine.h:83:2: warning: #import is a deprecated GCC extension
In file included from ../include/mach/i386/vm_types.h:73:0,
from ../include/mach/machine/vm_types.h:33,
from ../include/mach/machine.h:83,
from ../include/mach-o/fat.h:45,
from archive.c:82:
../include/mach/i386/vm_param.h:98:0: warning: "PAGE_SIZE" redefined
/usr/include/limits.h:204:0: note: this is the location of the previous definition
In file included from ../include/mach/machine/vm_types.h:33:0,
from ../include/mach/machine.h:83,
from ../include/mach-o/fat.h:45,
from archive.c:82:
../include/mach/i386/vm_types.h:103:20: error: conflicting types for ‘vm_offset_t’
/usr/include/cygwin/types.h:134:23: note: previous declaration of ‘vm_offset_t’ was here
../include/mach/i386/vm_types.h:114:20: error: conflicting types for ‘vm_size_t’
/usr/include/cygwin/types.h:139:23: note: previous declaration of ‘vm_size_t’ was here
In file included from ../include/mach-o/fat.h:45:0,
from archive.c:82:
../include/mach/machine.h:84:2: warning: #import is a deprecated GCC extension
archive.c: In function ‘open_archive’:
archive.c:129:2: warning: implicit declaration of function ‘flock’
archive.c:129:16: error: ‘LOCK_EX’ undeclared (first use in this function)
archive.c:129:16: note: each undeclared identifier is reported only once for each function it appears in
archive.c:129:24: error: ‘LOCK_NB’ undeclared (first use in this function)
At top level:
cc1: warning: unrecognized command line option "-Wno-long-double"
make[1]: *** [archive.o] Error 1
make[1]: Leaving directory `/cygdrive/d/cctools-806/ar'
make: *** [install] Error 1