[kaffe] CLASSPATH in BUILD_ENVIRONMENT
Valentin Valchev
v_valchev@prosyst.bg
Fri May 23 10:10:01 2003
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C32168.157DFEC0
Content-Type: text/plain;
charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
I had the same problem on Linux/x86 because I used:
CFLAGS=3D"-Wall -O4 -fomit-frame-pointer \
-ffast-math -funroll-loops -fschedule-insns \
-fschedule-insns2 -fexpensive-optimizations" ./configure
Next time I compiled kaffe without these CFLAGS and everything was fine.
---------------------------------------------------------------
ProSyst Bulgaria Ltd. Valentin Valchev
48 Vladajska Str. Project Manager
Sofia 1606, Bulgaria Dept: mBedded Server/Broadband
http://www.prosyst.com/ Phone: +359 (2) 9523581-107
---------------------------------------------------------------
Leading Software Technology for Open Service Gateways
----- Original Message -----=20
From: Kiyo Inaba=20
To: kaffe@kaffe.org=20
Cc: inaba@src.ricoh.co.jp=20
Sent: 23 =CC=E0=E9 2003 =E3. 19:36
Subject: [kaffe] CLASSPATH in BUILD_ENVIRONMENT
Hi all,
For 03-05-22 version I downloaded from CVS, and configured on =
i386-NetBSD-1.6,
the compilation failed at creating rt.jar.
The error message is
=
CLASSPATH=3Dlib:../../../kaffe-snap-030522/libraries/javalib/Klasses.jar.=
bootstrap =
KAFFELIBRARYPATH=3D../../libraries/clib/native/:../../libraries/clib/io/:=
../../libraries/clib/zip/ ../../kaffe/kaffe/kaffe-bin =
kaffe.tools.jar.Jar -cvf rt.jar -C lib gnu java javax kaffe org
Couldn't find or load essential class `java/lang/Object' =
java.lang.NoClassDefFoundError java/lang/Object
gmake[1]: *** [rt.jar] Abort trap (core dumped)
If I copy some other rt.jar into correct place, regression test =
failed.
In this case the error message is
error compiling:
java.lang.ClassNotFoundException: at/dms/kjc/Main
at =
kaffe.lang.SystemClassLoader.findClass0(SystemClassLoader.java:native)
at =
kaffe.lang.SystemClassLoader.findClass(SystemClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:149)
at java.lang.Class.forName(Class.java:74)
at java.lang.Class.forName(Class.java:43)
Caused by: <null cause>
FAIL: HelloWorldApp.java
And it looks like modifying BUILD_ENVIRONMENT (by modifying =
kaffe/Makefile.am)
may cause this problem.
Is it NetBSD specific?
Kiyo
_______________________________________________
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
------=_NextPart_000_000A_01C32168.157DFEC0
Content-Type: text/html;
charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1251">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f1f0ef>
<DIV>
<DIV><FONT size=3D2>I had the same problem on Linux/x86 because I=20
used:</FONT></DIV>
<DIV><FONT size=3D2>CFLAGS=3D"-Wall -O4 -fomit-frame-pointer =
\</FONT></DIV>
<DIV><FONT size=3D2>-ffast-math -funroll-loops </FONT><FONT=20
size=3D2>-fschedule-insns \</FONT></DIV>
<DIV><FONT size=3D2>-fschedule-insns2 -fexpensive-optimizations"=20
./configure</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Next time I compiled kaffe without these CFLAGS and =
everything=20
was fine.</FONT></DIV></DIV>
<DIV><PRE>---------------------------------------------------------------=
ProSyst Bulgaria Ltd. Valentin Valchev
48 Vladajska Str. Project Manager
Sofia 1606, Bulgaria Dept: mBedded Server/Broadband
<A href=3D"http://www.prosyst.com/" =
target=3D_blank>http://www.prosyst.com/</A> Phone: +359 (2) =
9523581-107
---------------------------------------------------------------
Leading Software Technology for Open Service Gateways
</PRE></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dinaba@src.ricoh.co.jp =
href=3D"mailto:inaba@src.ricoh.co.jp">Kiyo=20
Inaba</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dkaffe@kaffe.org=20
href=3D"mailto:kaffe@kaffe.org">kaffe@kaffe.org</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Dinaba@src.ricoh.co.jp=20
href=3D"mailto:inaba@src.ricoh.co.jp">inaba@src.ricoh.co.jp</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> 23 =CC=E0=E9 2003 =E3. =
19:36</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [kaffe] CLASSPATH in=20
BUILD_ENVIRONMENT</DIV>
<DIV><BR></DIV>Hi all,<BR><BR>For 03-05-22 version I downloaded from =
CVS, and=20
configured on i386-NetBSD-1.6,<BR>the compilation failed at creating=20
rt.jar.<BR><BR>The error message=20
=
is<BR>CLASSPATH=3Dlib:../../../kaffe-snap-030522/libraries/javalib/Klasse=
s.jar.bootstrap=20
=
KAFFELIBRARYPATH=3D../../libraries/clib/native/:../../libraries/clib/io/:=
../../libraries/clib/zip/=20
../../kaffe/kaffe/kaffe-bin kaffe.tools.jar.Jar -cvf rt.jar -C lib gnu =
java=20
javax kaffe org<BR>Couldn't find or load essential class =
`java/lang/Object'=20
java.lang.NoClassDefFoundError java/lang/Object<BR>gmake[1]: *** =
[rt.jar]=20
Abort trap (core dumped)<BR><BR>If I copy some other rt.jar into =
correct=20
place, regression test failed.<BR>In this case the error message =
is<BR>error=20
compiling:<BR>java.lang.ClassNotFoundException:=20
at/dms/kjc/Main<BR> at=20
=
kaffe.lang.SystemClassLoader.findClass0(SystemClassLoader.java:native)<BR=
> =20
at=20
=
kaffe.lang.SystemClassLoader.findClass(SystemClassLoader.java:150)<BR>&nb=
sp; =20
at=20
=
java.lang.ClassLoader.loadClass(ClassLoader.java:149)<BR> &nbs=
p; =20
at=20
=
java.lang.Class.forName(Class.java:74)<BR> &=
nbsp; =20
at java.lang.Class.forName(Class.java:43)<BR>Caused by: <null=20
cause><BR>FAIL: HelloWorldApp.java<BR><BR>And it looks like =
modifying=20
BUILD_ENVIRONMENT (by modifying kaffe/Makefile.am)<BR>may cause this=20
problem.<BR><BR>Is it NetBSD=20
=
specific?<BR><BR>Kiyo<BR><BR><BR>________________________________________=
_______<BR>kaffe=20
mailing list<BR><A =
href=3D"mailto:kaffe@kaffe.org">kaffe@kaffe.org</A><BR><A=20
=
href=3D"http://kaffe.org/cgi-bin/mailman/listinfo/kaffe">http://kaffe.org=
/cgi-bin/mailman/listinfo/kaffe</A><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000A_01C32168.157DFEC0--