This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems building libgcj on irix 6.5


Hi,
	I've been trying for a couple weeks to test out the patch
for FileInputStream.available() always returning 0.  However,
I've run into several problems:

1)  libjava won't compile on IRIX at all, using recent egcs
compilers (I used the 8/30 snapshot).  Compiling, even with
--disable-threads, triggers an internal compiler error.  I've
filed a bug report on this to the egcs people.

2)  I went back to gcc-2.95.1, and compiled libjava with
--enable-threads=posix (same option as was used to build gcc).
In this case, when compiling the 9/3 libgcj shapshot, I get:

c++ -DHAVE_CONFIG_H -I. -I../../../libgcj-snapshot-1999-09-03/libjava -I./include -Iinclude -I../../../libgcj-snapshot-1999-09-03/libjava/include -I../../../libgcj-snapshot-1999-09-03/libjava/../boehm-gc -I./../boehm-gc -DIRIX_THREADS=1 -DNO_EXECUTE_PERMISSION=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I../../../libgcj-snapshot-1999-09-03/libjava/../compat-include -I../../../libgcj-snapshot-1999-09-03/libjava/../zlib -I../../../libgcj-snapshot-1999-09-03/libjava/../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks -W -Wall -g -O2 -Wp,-MD,.deps/prims.pp -c  -DPIC ../../../libgcj-snapshot-1999-09-03/libjava/prims.cc -o .libs/prims.lo
In file included from ../../../libgcj-snapshot-1999-09-03/libjava/java/lang/Object.h:18,
                 from ../../../libgcj-snapshot-1999-09-03/libjava/include/cni.h:16,
                 from ../../../libgcj-snapshot-1999-09-03/libjava/prims.cc:20:
include/java-threads.h: In function `void _Jv_MutexDestroy(_Jv_Mutex_t *)':
include/java-threads.h:195: cannot convert `_Jv_Mutex_t *' to `pthread_mutex_t *' for argument `1' to `pthread_mutex_destroy(pthread_mutex_t *)'
include/java-threads.h: In function `int _Jv_MutexLock(_Jv_Mutex_t *)':
include/java-threads.h:210: cannot convert `_Jv_Mutex_t *' to `pthread_mutex_t *' for argument `1' to `pthread_mutex_lock(pthread_mutex_t *)'
include/java-threads.h: In function `int _Jv_MutexUnlock(_Jv_Mutex_t *)':
include/java-threads.h:221: cannot convert `_Jv_Mutex_t *' to `pthread_mutex_t *' for argument `1' to `pthread_mutex_unlock(pthread_mutex_t *)'
../../../libgcj-snapshot-1999-09-03/libjava/prims.cc: In method `_Jv_PrimClass::_Jv_PrimClass(java::lang::Object *, __java_byte, __java_int)':
../../../libgcj-snapshot-1999-09-03/libjava/prims.cc:484: confused by earlier errors, bailing out

Note:  this is the same error I got when compiling with the 8/30
egcs snapshot and --enable-threads=posix.

3)  libgcj does compile successfully with --disable-threads and
gcc-2.95.1.  However, as expected, I can't link because I compiled
gcc with --enable-threads.  Compiling gcc takes all day on my machine,
so I haven't recompiled a version without threads.

4)  I tried getting a newer snapshot, hoping the error would already
be fixed, but the snapshots on sourceware.cygnus.com:/pub/java/snapshots
are corrupted.  Looks like the server ran out of disk space.  Can
somebody check this?  I guess I can use CVS if the problem continues
for a while, but snapshots are easier for me to deal with.

So, if anybody has gotten newer libgcj's to build on irix, with threads,
please give me advice.

Thanks,
JMC
-- 
John-Marc Chandonia (jmc@cmpharm.ucsf.edu)              We're everywhere...
Cohen Lab, University of California San Francisco       for your convenience.
http://yuri.harvard.edu/~jmc                                -- Psi Corps <*>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]