This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Solaris/x86 build.
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Solaris/x86 build.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 4 Apr 2000 08:33:58 -0700
- Reply-to: apbianco at redhat dot com
Richard Emberson has been trying to rebuild the latest and greatest
sourceware toolchain to confirm that the PR #155 is a thing of the
past as far as you use a recent toolchain (I should really extract the
necessary patch to address PR #189.)
With some configure changes in place (see
http://sourceware.cygnus.com/ml/java-patches/2000-q2/msg00006.html)
it's possible to build on Solaris/x86. However, Richard witnessed the
following situation:
-------------------------------------------------------------------------------
From: Richard Emberson <emberson@contact.com>
Sender: emberson@imap.contact.com
To: apbianco@redhat.com
...
> make
....
c++ -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -I../../../libjava
-Iinclude -I../../../libjava/include -I../../../libjava/../boehm-gc
-I./../boehm-gc -DSOLARIS_THREADS=1 -D_SOLARIS_PTHREADS=1 -DSILENT=1
-DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1
-I../../../libjava/libltdl
-I./libltdl -I../../../libjava/../compat-include -I../../../libjava/../zlib
-I../../../libjava/../libffi/include -I../libffi/include -fno-rtti
-fvtable-thunks -D__NO_MATH_INLINES -ffloat-store -W -Wall -D_GNU_SOURCE -g
-O2
-Wp,-MD,.deps/interpret.pp -c -fPIC -DPIC ../../../libjava/interpret.cc -o
.libs/interpret.lo
../../../libjava/interpret.cc:57: syntax error before `('
../../../libjava/interpret.cc: In method `void
../../../libjava/interpret.cc: _Jv_InterpMethod::continue1
../../../libjava/interpret.cc: (_Jv_InterpMethodInvocation *)':
../../../libjava/interpret.cc:690: no match for `_Jv_word & == int'
../../../libjava/interpret.cc:1460: implicit declaration of function
../../../libjava/interpret.cc:1460: `int __ieee754_fmod (...)'
../../../libjava/interpret.cc:2166: no match for `_Jv_word & == int'
../../../libjava/interpret.cc:2197: no match for `_Jv_word & == int'
make[2]: *** [interpret.lo] Error 1
make[2]: Leaving directory
`/home/emberson/src/gnu/libgcj-snapshot-2000-03-31/objdir/i386-pc-solaris2.7/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/emberson/src/gnu/libgcj-snapshot-2000-03-31/objdir/i386-pc-solaris2.7/libjava'
make: *** [all-target-libjava] Error 2
In libjava/interpret.cc
Change:
extern "C" double __ieee754_fmod __P((double,double));
To:
extern "C" double __ieee754_fmod (double,double);
Change:
NULLCHECK(sp[0]);
To:
NULLCHECK(&sp[0]);
> make
....
> make install
....
> gcj --main=HelloWorld -o HelloWorld HelloWorld.java
> Large stack limit(133464064): only scanning 8 MBHello
So it passed a simple test. I will try something bigger and let you know.
Thanks
Richard
-------------------------------------------------------------------------------
What do you guys think of his libjava/interpret.cc change?
./A