[kaffe] strange failure on OpenBSD/sparc
Riccardo
zuse at libero.it
Sat Apr 24 14:22:02 PDT 2004
Compiling on OpenbSD/Sparc the latest kaffe (it was not a clean build
though since the last one) I get this strange failure:
gcc -DHAVE_CONFIG_H -I. -I../../../kaffe/kaffe/kaffevm -I../../config -
I../../include/kaffe -I../../../kaffe/kaffe/kaffevm/systems/unix-
jthreads -I../../kaffe/kaffevm/jit -I../../../kaffe/kaffe/kaffevm/jit -I../../../
kaffe/libltdl -DTRANSLATOR -I../../../kaffe/kaffe/jvmpi -I../../../kaffe/
kaffe/xprof -I../../include -I/home/multix/kaffe-cvs/openbsd-sparc/../
kaffe/kaffe/kaffevm -I/home/multix/kaffe-cvs/openbsd-sparc/../kaffe/
kaffe/kaffevm/jit -I/home/multix/kaffe-cvs/openbsd-sparc/../kaffe/kaffe/
kaffevm/systems/unix-jthreads -I../../../kaffe/config -I../../../kaffe/
include -I/usr/local/include -DKAFFE_VMDEBUG -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-function-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 -c ../../../kaffe/kaffe/kaffevm/gc.c -Wp,-MD,.deps/
gc.TPlo -fPIC -DPIC -o .libs/gc.o
In file included from ../../config/../../kaffe/config/sparc/openbsd2/md.
h:15,
from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
./../../kaffe/config/sparc/common.h:28: warning: `NEED_
sysdepCallMethod' is not defined
In file included from ../../config/../../kaffe/config/sparc/openbsd2/md.
h:18,
from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
/usr/include/sys/resource.h:56: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:57: field `ru_stime' has incomplete type
In file included from ../../config/../../kaffe/config/sparc/openbsd2/md.
h:21,
from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
/usr/include/unistd.h:63: warning: redundant redeclaration of `cuserid'
in same scope
/usr/include/stdio.h:274: warning: previous declaration of `cuserid'
/usr/include/unistd.h:96: warning: redundant redeclaration of `lseek' in
same scope
/usr/include/sys/types.h:138: warning: previous declaration of `lseek'
In file included from ../../config/../../kaffe/config/sparc/openbsd2/md.
h:21,
from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
/usr/include/unistd.h:145: warning: redundant redeclaration of
`ftruncate' in same scope
/usr/include/sys/types.h:139: warning: previous declaration of
`ftruncate'
/usr/include/unistd.h:221: warning: redundant redeclaration of
`truncate' in same scope
/usr/include/sys/types.h:140: warning: previous declaration of
`truncate'
In file included from ../../../kaffe/config/sparc/jit.h:244,
from ../../config/../../kaffe/config/sparc/openbsd2/jit-
md.h:18,
from ../../config/../../kaffe/config/sparc/openbsd2/md.
h:37,
from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
/usr/include/sys/mman.h:113: warning: redundant redeclaration of `mmap'
in same scope
/usr/include/sys/mman.h:113: warning: previous declaration of `mmap'
/usr/include/sys/mman.h:114: warning: redundant redeclaration of
`mprotect' in same scope
/usr/include/sys/mman.h:114: warning: previous declaration of `mprotect'
/usr/include/sys/mman.h:115: warning: redundant redeclaration of
`munmap' in same scope
/usr/include/sys/mman.h:115: warning: previous declaration of `munmap'
/usr/include/sys/mman.h:116: warning: redundant redeclaration of `msync'
in same scope
/usr/include/sys/mman.h:116: warning: previous declaration of `msync'
/usr/include/sys/mman.h:117: warning: redundant redeclaration of `mlock'
in same scope
/usr/include/sys/mman.h:117: warning: previous declaration of `mlock'
/usr/include/sys/mman.h:118: warning: redundant redeclaration of
`munlock' in same scope
/usr/include/sys/mman.h:118: warning: previous declaration of `munlock'
/usr/include/sys/mman.h:119: warning: redundant redeclaration of
`mlockall' in same scope
/usr/include/sys/mman.h:119: warning: previous declaration of `mlockall'
/usr/include/sys/mman.h:120: warning: redundant redeclaration of
`munlockall' in same scope
/usr/include/sys/mman.h:120: warning: previous declaration of
`munlockall'
/usr/include/sys/mman.h:121: warning: redundant redeclaration of
`madvise' in same scope
/usr/include/sys/mman.h:121: warning: previous declaration of `madvise'
/usr/include/sys/mman.h:122: warning: redundant redeclaration of
`mincore' in same scope
/usr/include/sys/mman.h:122: warning: previous declaration of `mincore'
/usr/include/sys/mman.h:123: warning: redundant redeclaration of
`minherit' in same scope
/usr/include/sys/mman.h:123: warning: previous declaration of `minherit'
/usr/include/sys/mman.h:124: warning: redundant redeclaration of
`mquery' in same scope
/usr/include/sys/mman.h:124: warning: previous declaration of `mquery'
In file included from ../../config/md.h:1,
from ../../../kaffe/kaffe/kaffevm/mem/gc-mem.h:17,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
21,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
./../config/../../kaffe/config/sparc/openbsd2/md.h:44: warning:
function declaration isn't a prototype
./../config/../../kaffe/config/sparc/openbsd2/md.h: In function
`mdGetStackSize':
./../config/../../kaffe/config/sparc/openbsd2/md.h:48: warning:
negative integer implicitly converted to unsigned type
./../config/../../kaffe/config/sparc/openbsd2/md.h:50: warning:
comparison between signed and unsigned
In file included from ../../../kaffe/config/config-signal.h:14,
from ../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/
jthread.h:37,
from ../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/
thread-impl.h:16,
from ../../../kaffe/kaffe/kaffevm/locks.h:16,
from ../../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:
22,
from ../../../kaffe/kaffe/kaffevm/gc.c:15:
/usr/include/signal.h: At top level:
/usr/include/signal.h:46: warning: redundant redeclaration of `sys_
siglist' in same scope
/usr/include/unistd.h:172: warning: previous declaration of `sys_
siglist'
/usr/include/signal.h:111: warning: redundant redeclaration of `psignal'
in same scope
/usr/include/unistd.h:171: warning: previous declaration of `psignal'
In file included from ../../../kaffe/kaffe/kaffevm/gc.c:15:
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function `gc_heap_
isobject':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:231: warning: cast
increases required alignment of target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcMarkAddress':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:292: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:294: warning: passing
arg 3 of `markObjectDontCheck' as signed due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcMarkObject':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:305: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:308: warning: passing
arg 3 of `markObjectDontCheck' as signed due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcWalkConservative':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:318: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:324: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:324: warning: negative
integer implicitly converted to unsigned type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:325: warning: cast
increases required alignment of target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcGetObjectSize':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:341: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcGetObjectIndex':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:348: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcGetObjectBase':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:383: warning: cast
discards qualifiers from pointer target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:390: warning: cast
increases required alignment of target type
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function `gcMan':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:491: warning: passing
arg 2 of `locks_internal_waitCond' with different width due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`finaliserMan':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:852: warning: passing
arg 2 of `locks_internal_waitCond' with different width due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcInvokeGC':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:953: warning: passing
arg 2 of `locks_internal_waitCond' with different width due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`gcInvokeFinalizer':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:978: warning: passing
arg 2 of `locks_internal_waitCond' with different width due to prototype
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c: In function
`objectSizesAdd':
./../../kaffe/kaffe/kaffevm/mem/gc-incremental.c:1338: warning:
comparison between signed and unsigned
gmake[3]: *** [gc.lo] Error 1
gmake[3]: Leaving directory `/home/multix/kaffe-cvs/openbsd-sparc/kaffe/
kaffevm'
I wonder what is happening here. GCC problems? Linker ? something is
going crazy probably.
Of course the amount of warnings for a single file are amazing!
-Riccardo
More information about the kaffe
mailing list