successful(?) build of libjava on mips-sgi-irix6.5

Alexandre Oliva
Fri Feb 8 18:45:00 GMT 2002

On Feb  8, 2002, Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> wrote:

> Philip Goisman <> writes:
>> Is there a solution to this error such that libgcj will get 
>> built on mips-sgi-irix6.5, or, is it still true that libgcj still
>> cannot be built on mips-sgi-irix6.5?

> I've documented a workaround in


> that allowed me to build libgcj on mips-sgi-irix6.[25].  Of course, the
> underlying problem should be fixed in libtool.

This could only be fixed in libtool if libtool got a chance to run.
Clearly, this is not the case, as it is make that is having trouble to
run a shell that would then invoke libtool.

Still, I wonder why the command line is so long.  It appears to me
that it shouldn't be.

Clearly, whoever arranged for libgcj.objectlist to be created in a way
that didn't require GNU make missed this fact and introduced the very
problem I was trying to avoid, that could only be avoided by this
unfortunate dependence on GNU make, or by some major reworkings of the

If you have no idea of what I'm talking about, compare the code in the
mainline, that I wrote: $(libgcj_la_OBJECTS) $(libgcj_la_DEPENDENCIES)
	@: $(shell echo Creating list of files to link...) $(shell rm -f libgcj.objectlist || :) $(shell touch libgcj.objectlist) $(foreach object,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),$(shell echo $(object) >> libgcj.objectlist))
	$(libgcj_la_LINK) -objectlist libgcj.objectlist \
	-rpath $(toolexeclibdir) $(libgcj_la_LDFLAGS) $(LIBS)

with what's in the branch: $(libgcj_la_OBJECTS) $(libgcj_la_DEPENDENCIES)
	@echo $(libgcj_la_OBJECTS) > libgcj.objectlist;
	@echo $(libgcj_la_LIBADD) >> libgcj.objectlist;
	$(libgcj_la_LINK) -objectlist libgcj.objectlist \
	../libffi/ \
	-rpath $(toolexeclibdir) $(libgcj_la_LDFLAGS) $(LIBS)

Nothing that libtool could possibly do will make the second @echo,
with its huge argument list, executable as a single shell command.  It
has to be broken up in multiple pieces, which is precisely what the
foreach construct with multiple shell commands does.  Unfortunately,
it depends on GNU make.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

More information about the Java mailing list