This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Fix libjava parallel make problems

Hi People,

The following patch attempts to remedy this bug
I introduced:

I was able to reproduce this problem thanks to Andrew's
-j10 tip:

The problem seems to be the parallel execution of these

all-recursive: libgcj-3.4.jar $(nat_headers) $(x_nat_headers)

$(ordinary_nat_headers) $(x_nat_headers): %.h: %.class

because libgcj-3.4.jar and java/lang/AbstractMethodError.h are
executed in parallel and I removed the rule to build classfiles
in my previous patch.

After applying the patch, the problem doesn't manifest
itself anymore, the build succeeds and I am able to run some
simple tests.

Okay to commit?

-- Mohan

2003-08-28  Mohan Embar  <>

	* Fixed problems with parallel makes.
	(all_java_class_files): Readded definition.
	(all_java_class_files): New target which depends on
	* Rebuilt

---	2003-08-28 14:27:51.000000000 -0500
+++	2003-08-28 13:22:58.000000000 -0500
@@ -338,4 +338,6 @@
+all_java_class_files = $(
 libgcj-@gcc_version@.jar: $(all_java_source_files)
 	-@rm -f libgcj-@gcc_version@.jar
@@ -348,4 +350,6 @@
 	  $(ZIP) cfM0E@ $@
+$(all_java_class_files): libgcj-@gcc_version@.jar
 MOSTLYCLEANFILES = $(javao_files) $(nat_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
 CLEANFILES = libgcj-@gcc_version@.jar

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