kaffe 1.0.6 on NetBSD 1.5.1

Ray Phillips r.phillips at mailbox.uq.edu.au
Mon Sep 3 02:21:15 PDT 2001


Dear Kaffe Users:

Would someone give me some guidance re getting kaffe to compile and install
under NetBSD version 1.5.1, please?

I've tried on two different platforms: i386 and alpha.  An error occurs
when running make.  These are the last few lines of make's output under
NetBSD/i386:

/usr/bin/ld -Bshareable  gc-mem.lo md.lo baseClasses.lo classMethod.lo
classPool
.lo methodCache.lo code-analyse.lo code.lo constants.lo debug.lo
exception.lo ex
ternal.lo findInJar.lo fp.lo gc.lo hashtab.lo inflate.lo itypes.lo jar.lo
jni.lo
 locks.lo lookup.lo object.lo readClass.lo sha-1.lo soft.lo stackTrace.lo
stats.
lo string.lo support.lo thread.lo utf8const.lo gcFuncs.lo gcRefs.lo
verify.lo -W
l,--whole-archive ../../libltdl/.libs/libltdlc.al jit3/.libs/libengine.al
system
s/unix-jthreads/.libs/libkthread.al -Wl,--no-whole-archive   -o
.libs/libkaffevm
-1.0.6.so.0.0
/usr/bin/ld: unrecognized option `-Wl,--whole-archive'
make[3]: *** [libkaffevm.la] Error 1
make[3]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe/
kaffevm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe/
kaffevm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe'
make: *** [all-recursive] Error 1

So NetBSD's ld doesn't like the -Wl option, which is true -- there's no
mention of it in the man page.

The error for NetBSD/alpha the problem is different for some reason.  I
wasn't sure how much of make's output to include in this message, so it's a
rather big chunk of text.  I'll put it at the end.

Sorry, I'm not much of a programmer, but I'll gladly try some experiments
and provide feedback under direction if anyone can suggest a cure.  I used
GNU make version 3.79.1.


Ray



Making all in jit
make[3]: Entering directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe
/kaffevm/jit'
/bin/sh ../../../config/regen-forward ../../../config/alpha/jit-icode.h icode.h
stamp-h01
source='basecode.c' object='basecode.lo' libtool=yes \
depfile='.deps/basecode.Plo' tmpdepfile='.deps/basecode.TPlo' \
depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../../c
onfig -I../../../include -I../../../kaffe/kaffevm/systems/unix-jthreads
-I.. -I.
/.. -DTRANSLATOR  -DKVER='"1.0.6"'
-I/usr/home/ray/installers/gnu/java/kaffe-1.0
.6/./kaffe/kaffevm
-I/usr/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffe
vm/systems/unix-jthreads -I../../../config -I../../../include
-I/usr/local/incl
ude  -g -O2 -Wall -Wstrict-prototypes -c -o basecode.lo basecode.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include
-I../../../kaff
e/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DKVER=\"1.0.6\"
-I/usr
/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm
-I/usr/home/ray/instal
lers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads
-I../../../confi
g -I../../../include -I/usr/local/include -g -O2 -Wall -Wstrict-prototypes
-c ba
secode.c -Wp,-MD,.deps/basecode.TPlo  -fPIC -DPIC -o basecode.lo
source='constpool.c' object='constpool.lo' libtool=yes \
depfile='.deps/constpool.Plo' tmpdepfile='.deps/constpool.TPlo' \
depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../../c
onfig -I../../../include -I../../../kaffe/kaffevm/systems/unix-jthreads
-I.. -I.
/.. -DTRANSLATOR  -DKVER='"1.0.6"'
-I/usr/home/ray/installers/gnu/java/kaffe-1.0
.6/./kaffe/kaffevm
-I/usr/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffe
vm/systems/unix-jthreads -I../../../config -I../../../include
-I/usr/local/incl
ude  -g -O2 -Wall -Wstrict-prototypes -c -o constpool.lo constpool.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include
-I../../../kaff
e/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DKVER=\"1.0.6\"
-I/usr
/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm
-I/usr/home/ray/instal
lers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads
-I../../../confi
g -I../../../include -I/usr/local/include -g -O2 -Wall -Wstrict-prototypes
-c co
nstpool.c -Wp,-MD,.deps/constpool.TPlo  -fPIC -DPIC -o constpool.lo
/bin/sh ../../../config/regen-forward ../../../config/alpha/jit-alpha.def
jit.de
f stamp-h02
/bin/sh ../../../config/regen-forward ../../../config/alpha/trampolines.c
trampo
lines.c stamp-h03
source='funcs.c' object='funcs.lo' libtool=yes \
depfile='.deps/funcs.Plo' tmpdepfile='.deps/funcs.TPlo' \
depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../../c
onfig -I../../../include -I../../../kaffe/kaffevm/systems/unix-jthreads
-I.. -I.
/.. -DTRANSLATOR  -DKVER='"1.0.6"'
-I/usr/home/ray/installers/gnu/java/kaffe-1.0
.6/./kaffe/kaffevm
-I/usr/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffe
vm/systems/unix-jthreads -I../../../config -I../../../include
-I/usr/local/incl
ude  -g -O2 -Wall -Wstrict-prototypes -c -o funcs.lo funcs.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include
-I../../../kaff
e/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DKVER=\"1.0.6\"
-I/usr
/home/ray/installers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm
-I/usr/home/ray/instal
lers/gnu/java/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads
-I../../../confi
g -I../../../include -I/usr/local/include -g -O2 -Wall -Wstrict-prototypes
-c fu
ncs.c -Wp,-MD,.deps/funcs.TPlo  -fPIC -DPIC -o funcs.lo
In file included from jit.def:1,
                 from funcs.c:44:
../../../config/alpha/jit-alpha.def:83: syntax error before `alpha_jit_info'
../../../config/alpha/jit-alpha.def:83: warning: type defaults to `int' in
decla
ration of `alpha_jit_info'
../../../config/alpha/jit-alpha.def:83: warning: data definition has no type or
storage class
../../../config/alpha/jit-alpha.def: In function `prologue_xxC':
../../../config/alpha/jit-alpha.def:849: request for member `sp_set' in
somethin
g not a structure or union
../../../config/alpha/jit-alpha.def:867: request for member `imask' in
something
 not a structure or union
../../../config/alpha/jit-alpha.def:868: request for member `fmask' in
something
 not a structure or union
../../../config/alpha/jit-alpha.def:873: request for member `rsa_size' in
someth
ing not a structure or union
../../../config/alpha/jit-alpha.def:877: `Lrsa' undeclared (first use in
this fu
nction)
../../../config/alpha/jit-alpha.def:877: (Each undeclared identifier is
reported
 only once
../../../config/alpha/jit-alpha.def:877: for each function it appears in.)
../../../config/alpha/jit-alpha.def:888: `SLOTSIZE' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def:900: request for member `entry_length'
in so
mething not a structure or union
../../../config/alpha/jit-alpha.def: In function `epilogue_xxx':
../../../config/alpha/jit-alpha.def:1079: `Lrsa' undeclared (first use in
this f
unction)
../../../config/alpha/jit-alpha.def:1090: `SLOTSIZE' undeclared (first use
in th
is function)
../../../config/alpha/jit-alpha.def: In function `mover_RxC':
../../../config/alpha/jit-alpha.def:1290: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `movel_RxC':
../../../config/alpha/jit-alpha.def:1303: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `move_RxL':
../../../config/alpha/jit-alpha.def:1312: `Llong16x16' undeclared (first use in
this function)
../../../config/alpha/jit-alpha.def: In function `movef_RxC':
../../../config/alpha/jit-alpha.def:1337: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `moved_RxC':
../../../config/alpha/jit-alpha.def:1358: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `alpha_division':
../../../config/alpha/jit-alpha.def:1760: `NR_REGISTERS' undeclared (first
use i
n this function)
../../../config/alpha/jit-alpha.def:1819: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `branch_xCC':
../../../config/alpha/jit-alpha.def:2541: `Llong21' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `alpha_cbranch':
../../../config/alpha/jit-alpha.def:2596: `Llong21' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `alpha_cbranch_const':
../../../config/alpha/jit-alpha.def:2683: `Llong21' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `call_xCC':
../../../config/alpha/jit-alpha.def:2754: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `alpha_pusharg_integer':
../../../config/alpha/jit-alpha.def:2826: warning: implicit declaration of
funct
ion `SLOT2PUSHOFFSET'
../../../config/alpha/jit-alpha.def: In function `alpha_pusharg_integer_const':
../../../config/alpha/jit-alpha.def:2870: `Llong16' undeclared (first use
in thi
s function)
../../../config/alpha/jit-alpha.def: In function `call_soft_xCC':
../../../config/alpha/jit-alpha.def:3078: `Llong16' undeclared (first use
in thi
s function)
make[3]: *** [funcs.lo] Error 1
make[3]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe/
kaffevm/jit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe/
kaffevm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/home/ray/installers/gnu/java/kaffe-1.0.6/kaffe'
make: *** [all-recursive] Error 1




More information about the kaffe mailing list