[kaffe] cygwin compile problems

Bjørn Wennberg bjornw at bouvet.no
Thu Jun 10 05:02:02 PDT 2004


Hi there.

OS: cygwin-1.5.10-3 (latest) with gcc-3.3.1

Thursday, june 10, cvs -q update -P -d
./configure
make

make[1]: Entering directory `/cygdrive/c/projects/kaffe/kaffe/kaffevm'
if /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include/kaffe  -I../../kaffe/kaffevm/systems/uni
x-jthreads -I../../kaffe/kaffevm/jit -I../../kaffe/kaffevm/jit -I../../libltdl -DTRANSLATOR -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../i
nclude -I/cygdrive/c/projects/kaffe/./kaffe/kaffevm -I/cygdrive/c/projects/kaffe/./kaffe/kaffevm/jit -I/cygdrive/c/projects/kaffe/./kaffe/kaf
fevm/systems/unix-jthreads -I../../config -I../../include  -DKAFFE_FEEDBACK  -g -O2 -Wno-import -Wchar-subscripts -Wcomment -Wformat=2 -Wimpl
icit-int -Wmain -Wmissing-braces -Wmultichar -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused-function -Wunused-lab
el -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -W -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad
-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototyp
es -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Wunreachable-code -Winli
ne -Wlong-long -Wdisabled-optimization -MT gc-mem.lo -MD -MP -MF ".deps/gc-mem.Tpo" -c -o gc-mem.lo gc-mem.c; \
then mv -f ".deps/gc-mem.Tpo" ".deps/gc-mem.Plo"; else rm -f ".deps/gc-mem.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include/kaffe -I../../kaffe/kaffevm/systems/unix-jthreads -I../../kaffe/kaffevm/jit -I../../kaffe/kaffevm/jit -I../../libltdl -DTRANSLATOR -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../include -I/cygdrive/c/projects/kaffe/./kaffe/kaffevm -I/cygdrive/c/projects/kaffe/./kaffe/kaffevm/jit -I/cygdrive/c/projects/kaffe/./kaffe/kaffevm/systems/unix-jthreads -I../../config -I../../include -DKAFFE_FEEDBACK -g -O2 -Wno-import -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wmissing-braces -Wmultichar -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -W -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization -MT gc-mem.lo -MD -MP -MF .deps/gc-mem.Tpo -c gc-mem.c  -DPIC -o .libs/gc-mem.o
In file included from gc-mem.c:1:
mem/gc-mem.c: In function `gc_heap_initialise':
mem/gc-mem.c:191: warning: comparison between signed and unsigned
In file included from gc-mem.c:1:
mem/gc-mem.c: In function `pagealloc':
mem/gc-mem.c:930: warning: passing arg 1 of `sbrk' as signed due to prototype
mem/gc-mem.c:942: warning: passing arg 1 of `sbrk' as signed due to prototype
mem/gc-mem.c:968: error: `PROT_READ' undeclared (first use in this function)
mem/gc-mem.c:968: error: (Each undeclared identifier is reported only once
mem/gc-mem.c:968: error: for each function it appears in.)
mem/gc-mem.c:968: error: `PROT_WRITE' undeclared (first use in this function)
mem/gc-mem.c:968: error: `PROT_EXEC' undeclared (first use in this function)
mem/gc-mem.c: In function `pagefree':
mem/gc-mem.c:978: warning: passing arg 1 of `sbrk' as signed due to prototype
mem/gc-mem.c: In function `gc_block_alloc':
mem/gc-mem.c:1004: warning: cast does not match function type
mem/gc-mem.c:1053: warning: cast does not match function type
make[1]: *** [gc-mem.lo] Error 1
make[1]: Leaving directory `/cygdrive/c/projects/kaffe/kaffe/kaffevm'
make: *** [all-recursive] Error 1


configure finds out that cygwins mmap is broken and does not include <sys/mmap.h>

configure finds out that cygwin supports mprotect and defines HAVE_MPROTECT and HAVE_COMPATIBLE_MPROTECT

The compilation breaks in kaffe/kaffe/kaffevm/mem/gc-mem.c complaining the PROT_READ, PROT_WRITE... defines doesn't exist

PROT_READ and friends are defined in <sys/mman.h> which are not included because mmap is broken according to configure.

bjornw>
Bjørn Wennberg 




More information about the kaffe mailing list