Hi Kiyo,

Kiyo Inaba wrote:
I am updating my base for NetBSD/m68k to more recent version from CVS.
And I found recent addition of check for kaffe/kaffevm/mem/gc-mem.c
make it can not be compiled.

Error log is attached.

Kiyo
-------------------------------------------------------------------
 m68k--netbsdelf-gcc -DHAVE_CONFIG_H -I. -I../../../kaffe-snap-040610/kaffe/kaffevm 
-I../../config -I../../include/kaffe 
-I../../../kaffe-snap-040610/kaffe/kaffevm/systems/unix-jthreads 
-I../../kaffe/kaffevm/jit -I../../../kaffe-snap-040610/kaffe/kaffevm/jit 
-I../../../kaffe-snap-040610/libltdl -DTRANSLATOR 
-I../../../kaffe-snap-040610/kaffe/jvmpi -I../../../kaffe-snap-040610/kaffe/xprof 
-I../../include 
-I/proj/src/kaffe-snap-040610-m68k-netbsd-sssj/../kaffe-snap-040610/kaffe/kaffevm 
-I/proj/src/kaffe-snap-040610-m68k-netbsd-sssj/../kaffe-snap-040610/kaffe/kaffevm/jit 
-I/proj/src/kaffe-snap-040610-m68k-netbsd-sssj/../kaffe-snap-040610/kaffe/kaffevm/systems/unix-jthreads
 -I../../../kaffe-snap-040610/config -I../../../kaffe-snap-040610/include 
-DKAFFE_FEEDBACK -g -O2 -Wno-import -Wchar-subscripts -Wcomment -Wformat=2 
-Wimplicit-int -Wmain -Wmissing-braces -Wmultichar -Wparentheses -Wreturn-type 
-Wswitch -Wtrigraphs -Wuninitialized -W -Wundef -Wshadow -Wpointer-arith -Wbad-fun
c!
tion-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare 
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wmissing-noreturn -Wredundant-decls -Wnested-externs -Winline -Wlong-long -O0 
-fno-omit-frame-pointer -c gc-mem.c -Wp,-MD,.deps/gc-mem.TPlo
cc1: warning: -Wuninitialized is not supported without -O
In file included from gc-mem.c:1:
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function 
`gc_heap_initialise':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:191: warning: comparison between 
signed and unsigned
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `gc_heap_malloc':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:379: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `gc_small_block':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:522: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:522: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:526: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:529: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `gc_large_block':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:577: warning: cast increases 
required alignment of target type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `pagealloc':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:930: warning: passing arg 1 of 
`sbrk' as signed due to prototype
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:942: warning: passing arg 1 of 
`sbrk' as signed due to prototype
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:968: `PROT_READ' undeclared 
(first use in this function)
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:968: (Each undeclared identifier 
is reported only once
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:968: for each function it 
appears in.)
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:968: `PROT_WRITE' undeclared 
(first use in this function)
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:968: `PROT_EXEC' undeclared 
(first use in this function)
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `pagefree':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:978: warning: passing arg 1 of 
`sbrk' as signed due to prototype
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c: In function `gc_block_alloc':
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:1004: warning: cast does not 
match function type
../../../kaffe-snap-040610/kaffe/kaffevm/mem/gc-mem.c:1053: warning: cast does not 
match function type
gmake[3]: *** [gc-mem.lo] Error 1


Thanks for the bug report. That one rang a bell :)

In theory, there PROT_* values should be in <sys/mman.h>. Are they there on your system? Does configure find the include file in your config.log?

I've fixed a compilation problem on Cygwin on 13th june that dealt with a similar problem. Check out this thread:
http://thread.gmane.org/gmane.comp.java.vm.kaffe.general/5035


The ChangeLog entry was:
2004-06-13  Dalibor Topic  <[EMAIL PROTECTED]>,

        * configure.ac:
        Check for <sys/mman.h>.

        * config/config-mem.h:
        Include <sys/mman.h> if it is available.

        * configure,
        config/config.h.in:
        Regenerated.

        Reported by: Bj�rn Wennberg <[EMAIL PROTECTED]>

cheers,
dalibor topic

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to